MCQOPTIONS
Saved Bookmarks
This section includes 657 Mcqs, each offering curated multiple-choice questions to sharpen your Testing Subject knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
For which of the following situation should the register storage class be used? |
| A. | For local variable in a function |
| B. | For loop counter |
| C. | For collecting values returned from a function |
| D. | For variables used in a recursive function |
| Answer» C. For collecting values returned from a function | |
| 2. |
What will be the output of the following code? #include< stdio.h> int main() { extern int a; static char j = ‘E’; printf(“%c %d”, ++j, ++a); return 0; } |
| A. | E 2 |
| B. | F 1 |
| C. | F Garbage |
| D. | F 0 |
| Answer» C. F Garbage | |
| 3. |
Where will the space be allocated for an automatic storage class variable? |
| A. | In CPU register |
| B. | In memory as well as in CPU register |
| C. | In memory |
| D. | On disk. |
| Answer» D. On disk. | |
| 4. |
In case of a conflict between the names of a local and global variable what happens? |
| A. | The global variable is given a priority. |
| B. | The local variable is given a priority. |
| C. | Which one will get a priority depends upon which one is defined first. |
| D. | The compiler reports an error. |
| Answer» C. Which one will get a priority depends upon which one is defined first. | |
| 5. |
What will be the output of the following code? static int I = 5; main() { int sum = 0 do { sum + = (1/i); }while(0 < I - -); printf(“sum of the series is %d”, sum); } |
| A. | It will print the sum of the series 1/5+1/4+…+1/1. |
| B. | It will produce a compilation error |
| C. | It will produce a run time error. |
| D. | None. |
| Answer» D. None. | |
| 6. |
What will be the storage class of variable I in the code written below? #include< stdio.h> int main() { int I = 10; printf(“%d”, i); return 0; } |
| A. | Automatic storage class |
| B. | Extern storage class |
| C. | Static storage class |
| D. | Register storage class |
| Answer» B. Extern storage class | |
| 7. |
What will be the output of the following program? #include < stdio.h> static int y = 1; int main() { static int z; printf(“%d %d”, y, z); return 0; } |
| A. | Garbage value |
| B. | 0 0 |
| C. | 1 0 |
| D. | 1 1 |
| Answer» D. 1 1 | |
| 8. |
What will be the output of the following program? #include< stdio.h> void fun() { fun(); Return 0; } void fun() { auto int I = 1; register char a = ‘D’; static int p = 0; printf(“%d %d %ld”, I, a, p); } |
| A. | 1 D 0 |
| B. | 1 0 0 |
| C. | 0 D 1 |
| D. | 1 68 0 |
| Answer» E. | |
| 9. |
Which of the following statement are correct? (iii) The maximum value a variable can hold depends upon its storage class. (iv) By default all variables enjoy a static storage class. |
| A. | Only I is correct |
| B. | Only II is correct |
| C. | Both I & II are correct |
| D. | Both I & II are incorrect |
| Answer» E. | |
| 10. |
What is the output of the following program? #include< stdio.h> int main() { static int a = 3; printf(“%d”, a --); return 0; } |
| A. | 0 |
| B. | 1 |
| C. | 2 |
| D. | 3 |
| Answer» E. | |
| 11. |
Which of the following statement are correct? (i) The value stored in the CPU register can always be accessed faster than that stored in memory. (ii) A register storage class variable will always be stored in a CPU register. |
| A. | Only I is correct |
| B. | Only II is correct |
| C. | Both I & II are correct |
| D. | Both I & II are incorrect |
| Answer» B. Only II is correct | |
| 12. |
extern int s; int t; static int u; main() { } Which of s, t and u are available to a function present in another file? |
| A. | Only s |
| B. | S & u |
| C. | S, t, u |
| D. | None |
| Answer» B. S & u | |
| 13. |
Which is not a storage class? |
| A. | Auto |
| B. | Struct |
| C. | Typedef |
| D. | Static |
| Answer» C. Typedef | |
| 14. |
Longevity of a variable refers to |
| A. | The duration for which the variable retains a given value during the execution of a program. |
| B. | The portion of a program in which the variable may be visible. |
| C. | Internal linkage of a variable. |
| D. | External linkage of a variable. |
| Answer» B. The portion of a program in which the variable may be visible. | |
| 15. |
Which data structure allows deleting data elements from and inserting at rear? |
| A. | Stacks |
| B. | Queues |
| C. | Dequeues |
| D. | Binary search tree |
| Answer» C. Dequeues | |
| 16. |
Which one of the following is not a real time operating system? |
| A. | Vx Works |
| B. | Windows CE |
| C. | RT Linux |
| D. | Palm OS |
| Answer» E. | |
| 17. |
What does a VLAN do? |
| A. | Acts as the fastest port to all servers. |
| B. | Provides multiple collision domains on one switch port. |
| C. | Breaks up broadcast domains in a layer 2 switch internet work. |
| D. | Provides multiple broadcast domains within a single collision domain |
| Answer» D. Provides multiple broadcast domains within a single collision domain | |
| 18. |
Which of the following is not the part of ADT description? |
| A. | Data |
| B. | Operations |
| C. | Both of the above |
| D. | None of the above |
| Answer» E. | |
| 19. |
What protocol does PPP use to identify the Network layer protocol? |
| A. | NCP |
| B. | ISDN |
| C. | HDLC |
| D. | LCP |
| Answer» B. ISDN | |
| 20. |
Which if the following is/are the levels of implementation of data structure |
| A. | Abstract level |
| B. | Application level |
| C. | Implementation level |
| D. | All of the above |
| Answer» E. | |
| 21. |
Which of the following commands is used to compare files in Unix ? |
| A. | Comp |
| B. | cmp |
| C. | ccp |
| D. | None of these |
| Answer» E. | |
| 22. |
Which of the following is not command of DML section of SQL ? |
| A. | SELECT/FROM/WHERE |
| B. | INSERT INTO/VALUES |
| C. | UPDATE/SET/WHERE |
| D. | All of these |
| Answer» E. | |
| 23. |
What is the use of cat command in Unix ? |
| A. | It is used to delete files |
| B. | It is used to display and create files |
| C. | It is used to change or modify files |
| D. | none of these |
| Answer» C. It is used to change or modify files | |
| 24. |
Which of the following command drops commands and tables from RDBMS ? |
| A. | DROP |
| B. | LEAVE |
| C. | EXCLUDE |
| D. | STOP |
| Answer» B. LEAVE | |
| 25. |
What is the output of the following code fragment? int n= 4; cout> > n++; cout > > n; |
| A. | 55 |
| B. | 44 |
| C. | 45 |
| D. | None of these |
| Answer» D. None of these | |
| 26. |
Which of the following is not true about C++? |
| A. | It has write once, run anywhere language. |
| B. | It is object oriented and generic programming language. |
| C. | It supports native unsigned arithmetic |
| D. | None of th above |
| Answer» B. It is object oriented and generic programming language. | |
| 27. |
When two elements of a pair have surface contact when in motion, it is said to be : |
| A. | Higher pair |
| B. | Lower pair |
| C. | Rolling pair |
| D. | None of these |
| Answer» C. Rolling pair | |
| 28. |
The cutting angle , for drilling stainless steel should be: |
| A. | 90° |
| B. | 150° |
| C. | 180° |
| D. | 135° |
| Answer» E. | |
| 29. |
What should be the increase in length of the pendulum, in order to triple the period of swing? |
| A. | Increased by 8-fold |
| B. | Incraesed by 9-fold |
| C. | Increased by 7-fold |
| D. | No change |
| Answer» C. Increased by 7-fold | |
| 30. |
Charles' Law states that |
| A. | p/T= constant (v is kept constant) |
| B. | p.v= constant (T is kept constant) |
| C. | v/T = constant (p is kept constant) |
| D. | None of these |
| Answer» D. None of these | |
| 31. |
When a body is in motion, the type of friction exeprienced by the body is: |
| A. | Rolling friction |
| B. | Limiting friction |
| C. | Dynamic friction |
| D. | Static friction |
| Answer» D. Static friction | |
| 32. |
Which of the following is undefined sizes of the floating point types? |
| A. | short float |
| B. | float |
| C. | long double |
| D. | double |
| Answer» B. float | |
| 33. |
Which operator is having the highest precedence? |
| A. | postfix |
| B. | unary |
| C. | shift |
| D. | summation |
| Answer» B. unary | |
| 34. |
Which of the following layer has encryption of the information done ? |
| A. | Data Link Layer |
| B. | Transport Layer |
| C. | Presentation Layer |
| D. | Application Layer |
| Answer» D. Application Layer | |
| 35. |
What does a escape code represent? |
| A. | alert |
| B. | backslash |
| C. | tab |
| D. | Space |
| Answer» B. backslash | |
| 36. |
What is the value of the following 8-bit integer after all statements are executed? int x = 1; x = x << 7; x = x >> 7; |
| A. | 1 |
| B. | -1 |
| C. | 127 |
| D. | Implementation defined |
| Answer» E. | |
| 37. |
FDM is applied when: |
| A. | The bandwidth of the link( in hertz) is greater than the combined bandwidth of the signal to be transmitted. |
| B. | The bandwidth of the link(in hertz) is equal to the combined bandwidth of the signal to be transmitted. |
| C. | The bandwidth of the link(in hertz) is lesser than the combined bandwidth of the signal to be transmitted. |
| D. | The bandwidth of the link(in hertz) is equal to the bandwidth of the signal to be transmitted. |
| Answer» B. The bandwidth of the link(in hertz) is equal to the combined bandwidth of the signal to be transmitted. | |
| 38. |
An electric motor with 'constant output power' will have a torque-speed characteristic in the form o a |
| A. | straight line through a origin |
| B. | straight line parallel to speed axis |
| C. | circle about origin |
| D. | rectangular hyperbola |
| Answer» E. | |
| 39. |
The passive 2-port network is in a steady state. Compared to its input, the steady state output can never offer |
| A. | higher voltage |
| B. | lower impedance |
| C. | greater power |
| D. | better regulation |
| Answer» D. better regulation | |
| 40. |
The ratio of resistances of a 110 W, 220 V lamp to that of a 55 W, 110 V lamp will be at the respective voltagesa |
| A. | 1 |
| B. | 2 |
| C. | 4 |
| D. | 8 |
| Answer» C. 4 | |
| 41. |
A feasibility document should contain all of the following except |
| A. | Project name |
| B. | Problem descriptions |
| C. | Feasible alternative |
| D. | Data flow diagrams |
| Answer» E. | |
| 42. |
A shift register can be used for |
| A. | Parallel to serial conversion |
| B. | Serial to parallel conversion |
| C. | Digital delay line |
| D. | All the above |
| Answer» E. | |
| 43. |
Which of the following are the two main dealings for the efficiency of an algorithm? |
| A. | Processor and memory |
| B. | Complexity and capacity |
| C. | Time and space |
| D. | Data and space |
| Answer» D. Data and space | |
| 44. |
Which of the following is not fundamental process involved for loader? |
| A. | Allocation |
| B. | Linking |
| C. | Compiling |
| D. | Reallocation |
| Answer» D. Reallocation | |
| 45. |
Which of the following the worst case in linear search algorithm? |
| A. | Item is somewhere in the middle of the array |
| B. | Item is not in the array at all |
| C. | Item is the last element in the array |
| D. | Item is the last element in the array or item is not there at all |
| Answer» E. | |
| 46. |
What is significance of round robin scheduling? |
| A. | To faster the process but has less accuracy |
| B. | To slower the process but more accuracy |
| C. | To allocate fixed amount of time |
| D. | None of the above |
| Answer» D. None of the above | |