MCQ Bank
The bit manipulators operator ________ is used to check whether a specific bit is set or not.
- A)
- B)
- C)
- D)
in C++, which operator is used while accessing through the pointer to structure?
- A)
- B)
- C)
- D)
Function seekg() and seekp() require an argument of type ________ to let them know how many bytes to move forward backward.
- A)
- B)
- C)
- D)
Macro is defined by ________ preprocessor directive.
- A)
- B)
- C)
- D)
In C++, when accessing files randomly, which function is used to get current pointer position inside a file?
- A)
- B)
- C)
- D)
Which is not a preprocessor directive of C-Language?
- A)
- B)
- C)
- D)
The statement char arr[10]; is an example of a type of ________ memory allocation
- A)
- B)
- C)
- D)
What would be the output of the following statement? C=13%2;
- A)
- B)
- C)
- D)
Which of the following two array are copy-able?
- A)
- B)
- C)
- D)
A variable declared inside a code block becomes the ________ variable for that block.
- A)
- B)
- C)
- D)
Which type of arrays are used while dealing with sentences?
- A)
- B)
- C)
- D)
In the call by reference method, which operator is used to get the address of a variable?
- A)
- B)
- C)
- D)
Which of the following is the correct method to declare an array?
- A)
- B)
- C)
- D)
char name[] = "Hello World"; In the above statement, a memory of ________ characters will be allocated to the array name.
- A)
- B)
- C)
- D)
In C++, what is the correct syntax for accessing the fifth element of an array?
- A)
- B)
- C)
- D)
Which of the following shows the memory address of the first element in an array?
- A)
- B)
- C)
- D)
In C++, the precise way to declare a pointer is,
- A)
- B)
- C)
- D)
Identify the invalid option.
- A)
- B)
- C)
- D)
________ character is used to terminate a string.
- A)
- B)
- C)
- D)
which of the following is an example of repetition structure?
- A)
- B)
- C)
- D)