Sr. # | Questions | Answers Choice |
---|---|---|
1 | A two -dimensional table of data is called a | Group Set Declaration Relation |
2 | A relation is analogous to a | File Field Record Row |
3 | A relation is also known as | Table Tuple Relationship Attribute |
4 | Which of the following loop is available in C language? | While Do-while For All |
5 | One execution of a loop is known as a(n): | Cycle Duration Iteration Test |
6 | The keyword 'break' cannot be used within: | Do-while If-else For While |
7 | If n=3, what will be the value of n after executing the following code? do n*=2 while (n<48); |
24 32 48 96 |
8 | What is the value of "a" after the execution of the following code? int a 25; for(int c=0; c<4;c++) a=a-1; a=1+3; |
23 24 25 20 |
9 | What is the value of "a" after execution the following code segment: int a=2; int b=0; while(b<5) { a=a*2; b=b+1; } a=a+1; |
64 65 66 67 |
10 | What is the final value of x after executing the following code: For (int x=0; x<10; X++) |
10 9 0 1 |
11 | When does the code block following while (x<100) execute? | When x is less then one hundred When x is greater then one hundred When x is equal to one hundred None |
12 | The body of for loop with single statement ends with: | Right bracket ] Right brace } Comma , Semi colon ; |
13 | The body of while loop with multiple statements ends with: | Right bracket ] Right brace } Comma , Semi colon ; |
14 | When is while loop more appropriate then for loop? | The terminating condition occurs unexpectedly The body of loop will be executed at least once The program will be executed at least once The number times the loop will be executed is known before the loop executes |
15 | When is for loop more appropriate then while loop? | The termination condition is known in advance The number of iterations is not known in advance The loop should be executed only once The loop should be executed at least once |
16 | Which of the following is a loop statement? | If If-else Switch None |
17 | Semicolon is placed at the end of condition in: | While loop Do-while loop For loop All |