De so 2

901 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
901
On SlideShare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

De so 2

  1. 1. CÂU TRẢ LỜI MÀU ĐỎ CÓ KHẢ NĂNG PHẦN LỚNLÀ ĐÚNG. HY VỌNG LÀ ĐÚNG HẾT THẬT ^^1Keywords can be used as variables names.FalseTrue2The keywords in C are case-sensitive.FalseTrue3The relational operators > >= < <= have the same precedence.FalseTrue4The Repeat?Until loop exits when the condition evaluates to _________.FalseTrue5We cannot use nested if statements in a Pseudocode.FalseTrue6"default" statement in Cs switch case is similar to the _______________ the statement in a pseudocode.ENDEND CASEOTHERWISE7What will be the output of the following code?
  2. 2. main(){int a=13, b=20;if( i=15 || b > 30)printf("Hello");elseprintf("Sorry");}HelloSorrySyntax Error8main(){int i=5;while(i=2)printf("Global Corporation");} What will be the output?GlobalGlobal CorporationRuntime ErrorSyntax Error9main(){int s1=2;while(s1==2){x=x-1;printf("%d",x);}} What will be the output:12Runtime Error10main(){int i=1;while(i<=5);
  3. 3. {printf("%d",i);i++;}} what will be the output?Logical ErrorRuntime ErrorSyntax Error11main(){int s1=1;for( ;s1; )printf("A");} What will be the output?ARuntime ErrorSyntax Error12Which of the following is/are the tool/s for debugging?Break pointCheck pointError TracingSimulatorTrace routines13The keyword/s used to take user input in a Pseudocode is/areAcceptInputPromptReadTake14The Logical operators are:AndFalseNotOr
  4. 4. True15Identify the methods used for debugging.Dry RunIndependent InspectionStructured walk throughTestingTracing16Which of the following are the delimiters used in programming languages?()< >[]{}Tracing17Which of the following will generate a Logical error?avg=a+b c (c=0)IF (A< >0 AND A< >1) Then??.Infinite loopRead Abc.doc (abc.doc does not exist)Tracing18Which of the following statements are true?The # symbol may not be used as the first character of a variableThe $ symbol may not be used as the first character of a variableThe % is used to calculate a percentage thus: 10 % 20=50The / operator is used to divide one value by another19Which of the following statements with respect to Program Bug are True?A bug is a semantic error in a program.The program with a bug will compile and run but produces incorrect or unexpected results.The program with a bug will fail to compile.To find a bug, you can use the method of tracing through the program by hand, step-by-step.You can use a special program called a debugger, which will help you find bugs.20
  5. 5. A flowchart can have more than one START & one STOP.FalseTrue21When the loop encounters a break statement, it immediately exits the program.FalseTrue22The subprogram in a pseudocode can be further divided into smaller programs.FalseTrue

×