MCQOPTIONS
Saved Bookmarks
This section includes 50 Mcqs, each offering curated multiple-choice questions to sharpen your Adobe knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
An array elements are always stored in _________ memory locations. |
| A. | Sequential |
| B. | Random |
| C. | Sequential and Random |
| D. | None of the above |
| Answer» B. Random | |
| 2. |
What is the right way to access value of structure variable book{ price, page }? |
| A. | printf("%d%d", book.price, book.page); |
| B. | printf("%d%d", price.book, page.book); |
| C. | printf("%d%d", price::book, page::book); |
| D. | printf("%d%d", price->book, page->book); |
| Answer» B. printf("%d%d", price.book, page.book); | |
| 3. |
C Language developed at _____? |
| A. | AT & Ts Bell Laboratories of USA in 1972 |
| B. | AT & Ts Bell Laboratories of USA in 1970 |
| C. | Sun Microsystems in 1973 |
| D. | Cambridge University in 1972 |
| Answer» B. AT & Ts Bell Laboratories of USA in 1970 | |
| 4. |
For 16-bit compiler allowable range for integer constants is ______ ? |
| A. | -3.4e38 to 3.4e38 |
| B. | -32767 to 32768 |
| C. | -32768 to 32767 |
| D. | -32668 to 32667 |
| Answer» D. -32668 to 32667 | |
| 5. |
perror( ) function used to ? |
| A. | Work same as printf() |
| B. | prints the error message specified by the compiler |
| C. | prints the garbage value assigned by the compiler |
| D. | None of the above |
| Answer» C. prints the garbage value assigned by the compiler | |
| 6. |
Bitwise operators can operate upon? |
| A. | double and chars |
| B. | floats and doubles |
| C. | ints and floats |
| D. | ints and chars |
| Answer» E. | |
| 7. |
What is C Tokens? |
| A. | The smallest individual units of c program |
| B. | The basic element recognized by the compiler |
| C. | The largest individual units of program |
| D. | A & B Both |
| Answer» E. | |
| 8. |
What is Keywords? |
| A. | Keywords have some predefine meanings and these meanings can be changed. |
| B. | Keywords have some unknown meanings and these meanings cannot be changed. |
| C. | Keywords have some predefine meanings and these meanings cannot be changed. |
| D. | None of the above |
| Answer» D. None of the above | |
| 9. |
What is constant? |
| A. | Constants have fixed values that do not change during the execution of a program |
| B. | Constants have fixed values that change during the execution of a program |
| C. | Constants have unknown values that may be change during the execution of a program |
| D. | None of the above |
| Answer» B. Constants have fixed values that change during the execution of a program | |
| 10. |
Which is the right way to declare constant in C? |
| A. | int constant var =10; |
| B. | int const var = 10; |
| C. | const int var = 10; |
| D. | B & C Both |
| Answer» E. | |
| 11. |
Which operators are known as Ternary Operator? |
| A. | ::, ? |
| B. | ?, : |
| C. | ?, ;; |
| D. | None of the avobe |
| Answer» C. ?, ;; | |
| 12. |
What is the work of break keyword? |
| A. | Halt execution of program |
| B. | Restart execution of program |
| C. | Exit from loop or switch statement |
| D. | None of the avobe |
| Answer» D. None of the avobe | |
| 13. |
What is function? |
| A. | Function is a block of statements that perform some specific task |
| B. | Function is the fundamental modular unit. A function is usually designed to perform a specific task. |
| C. | Function is a block of code that performs a specific task. It has a name and it is reusable |
| D. | All the above |
| Answer» E. | |
| 14. |
Which one of the following sentences is true ? |
| A. | The body of a while loop is executed at least once. |
| B. | The body of a do ... while loop is executed at least once. |
| C. | The body of a do ... while loop is executed zero or more times. |
| D. | A for loop can never be used in place of a while loop. |
| Answer» C. The body of a do ... while loop is executed zero or more times. | |
| 15. |
A binary tree with 27 nodes has _______ null branches. |
| A. | 54 |
| B. | 27 |
| C. | 26 |
| D. | None of the above |
| Answer» E. | |
| 16. |
Which one of the following is not a linear data structure? |
| A. | Array |
| B. | Binary Tree |
| C. | Queue |
| D. | Stack |
| Answer» C. Queue | |
| 17. |
Recursive functions are executed in a? |
| A. | First In First Out Order |
| B. | Load Balancing |
| C. | Parallel Fashion |
| D. | Last In First Out Order |
| Answer» E. | |
| 18. |
Queue is a _____________ list. |
| A. | LIFO |
| B. | LILO |
| C. | FILO |
| D. | FIFO |
| Answer» E. | |
| 19. |
The statement print f ("%d", 10 ? 0 ? 5 : 1 : 12); will print? |
| A. | 10 |
| B. | 0 |
| C. | 12 |
| D. | 1 |
| Answer» E. | |
| 20. |
The Default Parameter Passing Mechanism is called as |
| A. | Call by Value |
| B. | Call by Reference |
| C. | Call by Address |
| D. | Call by Name |
| Answer» B. Call by Reference | |
| 21. |
What is Dequeue? |
| A. | Elements can be added from front |
| B. | Elements can be added to or removed from either the front or rear |
| C. | Elements can be added from rear |
| D. | None of the above |
| Answer» C. Elements can be added from rear | |
| 22. |
In which linked list last node address is null? |
| A. | Doubly linked list |
| B. | Circular list |
| C. | Singly linked list |
| D. | None of the above |
| Answer» D. None of the above | |
| 23. |
Which is the correct syntax to declare constant pointer? |
| A. | int *const constPtr; |
| B. | *int constant constPtr; |
| C. | const int *constPtr; |
| D. | A and C both |
| Answer» E. | |
| 24. |
Every C Program must have one function called? |
| A. | switch() |
| B. | main() |
| C. | struct() |
| D. | for() |
| Answer» C. struct() | |
| 25. |
The keywords are also called |
| A. | Safe words |
| B. | Static words |
| C. | Reserved words |
| D. | Reused words |
| Answer» D. Reused words | |
| 26. |
Which of the following is correct set of keywords? |
| A. | unsigned, external, typedef, signed |
| B. | unsigned, volatile, typedef, every |
| C. | unsigned, volatile, typedef, sizeof |
| D. | None of the above |
| Answer» D. None of the above | |
| 27. |
What is %f, %d, %s and %c? |
| A. | Number Specifier |
| B. | Format Specifier |
| C. | Access Specifier |
| D. | None of the above |
| Answer» C. Access Specifier | |
| 28. |
What will be the output of 5.0 / 2? |
| A. | 2 |
| B. | 3 |
| C. | 0 |
| D. | 2.5 |
| Answer» E. | |
| 29. |
Which of the following is a Compound assignment operators? |
| A. | += |
| B. | *= |
| C. | /= |
| D. | All the above |
| Answer» E. | |
| 30. |
The largest element of an array index is called its |
| A. | Lower bound |
| B. | Upper bound |
| C. | Range |
| D. | All of the above |
| Answer» C. Range | |
| 31. |
Which of the following search algorithm requires a sorted array? |
| A. | Linear search |
| B. | Hash search |
| C. | Binary search |
| D. | All of these |
| Answer» D. All of these | |
| 32. |
Representation of data structure in memory is known as |
| A. | Recursive |
| B. | Abstract data type |
| C. | Storage structure |
| D. | File structure |
| Answer» C. Storage structure | |
| 33. |
What is default storage class of variables in C language? |
| A. | extern |
| B. | local |
| C. | auto |
| D. | global |
| Answer» D. global | |
| 34. |
Which of the following has compilation error in C? |
| A. | int n = 32; |
| B. | char ch = 65; |
| C. | float f = (float) 3.2; |
| D. | None of the above |
| Answer» E. | |
| 35. |
The correct way to round off a floating number x to an integer value is |
| A. | y = int (x + 0.5) |
| B. | y = (int) (x + 0.5) |
| C. | y = (int) x + 0.5 |
| D. | y = (int) ((int)x + 0.5) |
| Answer» C. y = (int) x + 0.5 | |
| 36. |
What does the following declaration mean? int (*ptr) [10]; |
| A. | ptr is an array of pointers of 10 integers. |
| B. | ptr is a pointer to an array of 10 integers. |
| C. | ptr is an array of 10 integers. |
| D. | None of the above |
| Answer» C. ptr is an array of 10 integers. | |
| 37. |
How to make an infinity loop in C? |
| A. | loop: ..... goto loop; |
| B. | for(;;) { } |
| C. | while(1) { } |
| D. | All of the above |
| Answer» E. | |
| 38. |
myarr[5] is equivalent of? |
| A. | &(myarr + 5) |
| B. | *(myarr + 5) |
| C. | (*myarr + 5) |
| D. | None of the above |
| Answer» C. (*myarr + 5) | |
| 39. |
Type of data and its value is described dy |
| A. | Constants |
| B. | Variables |
| C. | Data Type |
| D. | None of the above |
| Answer» C. Data Type | |
| 40. |
The Case keyword is followed by? |
| A. | Float values |
| B. | Character values |
| C. | Integer values |
| D. | Both b&c |
| Answer» E. | |
| 41. |
A full binary tree with n leaves contains |
| A. | n nodes |
| B. | 2n - 1 nodes |
| C. | log2 n nodes |
| D. | 2n nodes |
| Answer» C. log2 n nodes | |
| 42. |
Which of the following storage classes have global visibility in C? |
| A. | Auto |
| B. | Static |
| C. | Extern |
| D. | Register |
| Answer» D. Register | |
| 43. |
How many times is a do while loop guaranteed to loop? |
| A. | 0 |
| B. | Variable |
| C. | 1 |
| D. | Infinitely |
| Answer» D. Infinitely | |
| 44. |
Which of the following sorting algorithms does NOT have a worst-case running time of O(n2)? |
| A. | Insertion sort |
| B. | Merge sort |
| C. | Quicksort |
| D. | Bubble sort |
| Answer» C. Quicksort | |
| 45. |
Which data structure type is NOT linear from the following? |
| A. | Doubly Link List |
| B. | 2D Array |
| C. | Binary Search Tree |
| D. | Queue |
| Answer» D. Queue | |
| 46. |
What is the purpose of getc()? |
| A. | read a character from STDIN |
| B. | read a character from a file |
| C. | read all file |
| D. | read file randomly |
| Answer» C. read all file | |
| 47. |
Which of the following is not an iterative statement? |
| A. | while |
| B. | do while |
| C. | switch |
| D. | for |
| Answer» D. for | |
| 48. |
Which is an invalid name of identifier? |
| A. | world |
| B. | addition23 |
| C. | test-name |
| D. | factorial |
| Answer» D. factorial | |
| 49. |
Which of these assignments is invalid? |
| A. | short s = 48; |
| B. | float f = 4.3; |
| C. | double d = 4.3; |
| D. | int I = `1`; |
| Answer» E. | |
| 50. |
The do...while looping statement |
| A. | is executed only once if the condition is true. |
| B. | is also known as entry-controlled loop. |
| C. | is executed at least once if the condition is false. |
| D. | is unconditional looping statement.. |
| Answer» D. is unconditional looping statement.. | |