Home » C++ » MCQs for Practitioners
Showing 76 - 100 of 124
Question: 76
(A) Initialize a Vector with 5 int & all default value is 0
(B) Initialize a Vector with 5 int
(C) Initialize a Vector with 5 int & all default values will be garbage
(D) Initialize a Vector with 5 int & All default value with be -1
Question: 77
Question: 78
Question: 79
Question: 80
(A) Initialize vect to 5 string with value "Hi"
(B) Initialize vect's first element to a string with value "Hi" & prints them
(C) Initialize vect to 1 string with value "Hi" & prints only one
(D) Initialize vect to 5 string with value "Hi" & prints them
Question: 81
(A) file.open(“c:filename.txt”);
(B) open(afile) = link(anObject);
(C) linkstream(“filenemae.txt”)
(D) link(open(filename.txt);
Question: 82
Question: 83
(A) At the end of the file
(B) At the beginning of the file
(C) Nonexistent until the program declares it
(D) There is no read position
Question: 84
(A) The programs runs with no output
(B) 77
(C) Hello!
(D) Hello!
Question: 85
Question: 86
(A) #include
(B) #guard
(C) #ifndef
(D) endif
Question: 87
Question: 88
(A) re-assigned
(B) reformatted
(C) constructed
(D) overloaded
Question: 89
Question: 90
Question: 91
(A) static
(B) auto
(C) exterb
(D) register
Question: 92
(A) Static function
(B) constructor
(C) destructor
(D) friend
Question: 93
(A) Any time you read or write to the file
(B) Never
(C) Only when reading from the file
(D) When opening the file stream
Question: 94
Question: 95
Question: 96
Question: 97
(A) Polymorphism
(B) Inheritance
(C) Function overloading
(D) None of these
Question: 98
(A) virtual
(B) private
(C) public
(D) protected
Question: 99
Question: 100
C++ Online Test
Compile C++ code here