Explore topic-wise MCQs in Technical MCQs.

This section includes 15 Mcqs, each offering curated multiple-choice questions to sharpen your Technical MCQs knowledge and support exam preparation. Choose a topic below to get started.

1.

What type of method is used to place a method onto the top of the Stack.

A. pop()
B. push()
C. Evaluation()
D. Create()
E.
Answer» C. Evaluation()
2.

How can a call to an overloaded function be ambiguous ?

A. By misspelling the name
B. There might be two or more functions with the same name
C. There might be two or more functions with equally appropriate signatures
D. None of these
Answer» C. There might be two or more functions with equally appropriate signatures
3.

What argv means in command line argument ?

A. Array of pointers
B. pointer to a character array
C. Array of character pointers
D. Array of Strings
Answer» D. Array of Strings
4.

The following code ‘for(;;)’ represents an infinite loop. It can be terminated by.

A. break
B. exit(0)
C. abort()
D. all of the mentioned
Answer» B. exit(0)
5.

An array is also known as ___________ ?

A. Subscripted variable
B. Collective array
C. Ordinary variable
D. Similar Quantites variable
Answer» B. Collective array
6.

A mode which is used to open an existing file for both reading and writing ______

A. "W"
B. "W+"
C. "R+"
D. "A+"
Answer» D. "A+"
7.

Which of the following accessibility modes can be the specifier of a top level class’ ?

A. only private
B. protected and private
C. public and no modifier
D. only no modifer
Answer» D. only no modifer
8.

Tricha wants to store a list of binary data.Which of following data types should she use?

A. Boolean
B. Integer
C. Character
D. Floating
Answer» B. Integer
9.

Which of the following is not a valid type of polymorphism ?

A. imperative polymorphism
B. adhoc polymorphism
C. predicative polymorphism
D. inclusion polymorphism
Answer» B. adhoc polymorphism
10.

How can we insert different type of data in the stack.

A. Not possible
B. By implementing union
C. Structure data type
D. Both B and C
Answer» E.
11.

#include void main(){   static int i;   printf(""i is %d"", i);}
7.Which of this is used to skip one iteration?

A. break
B. goto
C. continue
D. return
Answer» D. return
12.

An array is also known as ___________ ?

A. Subscripted variable
B. Ordinary variable
C. Similar Quantities variable
D. Collective array
Answer» B. Ordinary variable
13.

int main() {     int a=5,b=7     switch(a)     {        case 5 :printf(""I am 5"");                break        case 7: printf(""I am not 5"");                break;        default:printf(""I am different"");     }return 0; }
4.The value of EOF is _____

A. 0
B. -1
C. 1
D. infinite
Answer» C. 1
14.

What is the difference between a function and a method?

A. Function is a named code unlike method which is a part of an object
B. Function cannot change variables outside its scope unlike method
C. There is no difference between the two
D. Function contained in an object is called a method
Answer» B. Function cannot change variables outside its scope unlike method
15.

A data type is stored as a 6 bit signed integer. Which of the following cannot be represented by this data type?

A. -12
B. 5
C. 25
D. 32
Answer» E.