Online Computer Science Test - Object Oriented Programming Test 1
Instruction:
- This is a FREE online test. Beware of scammers who ask for money to attend this test.
- Total number of questions: 20.
- Time allotted: 30 minutes.
- Each question carries 1 mark; there are no negative marks.
- DO NOT refresh the page.
- All the best!
Marks : 2/20
Total number of questions
20
Number of answered questions
0
Number of unanswered questions
20
Test Review : View answers and explanation for this test.
1.
If you design a class that needs special initialization tasks, you will want to design a(n) _____
Your Answer: Option
(Not Answered)
Correct Answer: Option
Discuss about this problem : Discuss in Forum
Learn more problems on : Object Oriented Programming Using C++
2.
Redirection redirects
Your Answer: Option
(Not Answered)
Correct Answer: Option
Discuss about this problem : Discuss in Forum
Learn more problems on : Object Oriented Programming Using C++
3.
If you declare two objects as Customer firstCust, secondCust; which of the following must be true?
Your Answer: Option
(Not Answered)
Correct Answer: Option
Discuss about this problem : Discuss in Forum
Learn more problems on : Object Oriented Programming Using C++
4.
A compound statement does not consist of
Your Answer: Option
(Not Answered)
Correct Answer: Option
Discuss about this problem : Discuss in Forum
Learn more problems on : Object Oriented Programming Using C++
5.
Which of the following while clause will stop the loop when the value in the age variable is less than the number 0?
Your Answer: Option
(Not Answered)
Correct Answer: Option
Discuss about this problem : Discuss in Forum
Learn more problems on : Object Oriented Programming Using C++
6.
Which of the following statements will display the word "Hello" on the computer screen?
Your Answer: Option
(Not Answered)
Correct Answer: Option
Discuss about this problem : Discuss in Forum
Learn more problems on : Object Oriented Programming Using C++
7.
The continue statement should be written only
Your Answer: Option
(Not Answered)
Correct Answer: Option
Discuss about this problem : Discuss in Forum
Learn more problems on : Object Oriented Programming Using C++
8.
The most common operation used in constructors is _____
Your Answer: Option
(Not Answered)
Correct Answer: Option
Discuss about this problem : Discuss in Forum
Learn more problems on : Object Oriented Programming Using C++
9.
If an integer object is thrown with a throw statement, then a subsequent catch block has a usable match if the type of the catch argument is _____
Your Answer: Option
(Not Answered)
Correct Answer: Option
Discuss about this problem : Discuss in Forum
Learn more problems on : Object Oriented Programming Using C++
10.
The statement int num[2][3]={ {3,8,6}, {9,4,7}};
Your Answer: Option
(Not Answered)
Correct Answer: Option
Discuss about this problem : Discuss in Forum
Learn more problems on : Object Oriented Programming Using C++
11.
The end of string is recognized by
Your Answer: Option
(Not Answered)
Correct Answer: Option
Discuss about this problem : Discuss in Forum
Learn more problems on : Object Oriented Programming Using C++
12.
Which of the following C++ expressions will find the square root of the number 16?
Your Answer: Option
(Not Answered)
Correct Answer: Option
Discuss about this problem : Discuss in Forum
Learn more problems on : Object Oriented Programming Using C++
13.
The arguments that determine the state of the cout object are called _____
Your Answer: Option
(Not Answered)
Correct Answer: Option
Discuss about this problem : Discuss in Forum
Learn more problems on : Object Oriented Programming Using C++
14.
Making class members inaccessible to nonmember functions is an example of
Your Answer: Option
(Not Answered)
Correct Answer: Option
Discuss about this problem : Discuss in Forum
Learn more problems on : Object Oriented Programming Using C++
15.
Assume that your version of C++ can recognize only the first 8 characters of an identifier name, through identifier names may be arbitrarily long. Which of the following identifier names is not distinct:
Your Answer: Option
(Not Answered)
Correct Answer: Option
Discuss about this problem : Discuss in Forum
Learn more problems on : Object Oriented Programming Using C++
16.
The string HELLO WORLD needs
Your Answer: Option
(Not Answered)
Correct Answer: Option
Discuss about this problem : Discuss in Forum
Learn more problems on : Object Oriented Programming Using C++
17.
The null character is represented by
Your Answer: Option
(Not Answered)
Correct Answer: Option
Discuss about this problem : Discuss in Forum
Learn more problems on : Object Oriented Programming Using C++
18.
The C++ keyword for declaring a variable that contains a decimal point is _____
Your Answer: Option
(Not Answered)
Correct Answer: Option
Discuss about this problem : Discuss in Forum
Learn more problems on : Object Oriented Programming Using C++
19.
Which is a good guideline for creating function names?
Your Answer: Option
(Not Answered)
Correct Answer: Option
Discuss about this problem : Discuss in Forum
Learn more problems on : Object Oriented Programming Using C++
20.
To write data that contains variables of type float, to an object of type ofstream, you should use
Your Answer: Option
(Not Answered)
Correct Answer: Option
Discuss about this problem : Discuss in Forum
Learn more problems on : Object Oriented Programming Using C++
*** END OF THE TEST ***
Time Left: 00:29:56
Post your test result / feedback here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers