Users Also Read
Read MCQ's/Objective questions
MCQ's Search Engine
Important Question
ASP.NET
Basic Computer Knowledge
Basic of Linux/Unix
C Language
C# Programming
Computer Graphics
Computer Hardware
Computer Networking
Computer Security - Cyber crime & Laws
Data Structures & Algorithms
Database Management System
Digital Computer Electronics
HTML
Important File Extensions
Imp. Shortcut Keys used in Computer
Internet, Web & Email
Java - Concepts and Its Programming
Language Processors
Management Information System (MIS)
MS Access
MS Excel
MS Word
Operating System
Oracle, SQL & PL/SQL
PHP Basic
Power Point
Programming Languages
Software Engineering
System Analysis and Design (SAD)
System software & compiler design
Tally
VB.NET
Visual Basic
Home⇒ Computer Engineering⇒ C plus plus programming
1-Dont try to cram or spend more time here just read it fast and cover syllabus then practice MCQ's cheptor of same topic to check your progress. . |
2-Wrong options are also given but dont concentrate there, Right answer is in bold format. |
Q1 ⇒ Which of the following statements will display the word "Hello" on the computer screen? cout << "Hello"; [other wrong options] [Discuss in forum] cin << "Hello"; cin >> "Hello"; cout >> "Hello"; |
Q2 ⇒ Using new may result in less _____ memory than using an array wasted [other wrong options] [Discuss in forum] used RAM ROM |
Q3 ⇒ The most common operation used in constructors is assignment [other wrong options] [Discuss in forum] addition overloading polymorphism |
Q4 ⇒ Which of the following is the fourth problem-solving step? code the algorithm [other wrong options] [Discuss in forum] analyze the problem evaluate and modify (if necessary) the program plan the algorithm |
Q5 ⇒ The C++ _____ function generates random numbers srand [other wrong options] [Discuss in forum] generate() genRand rand |
Q6 ⇒ 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 int [other wrong options] [Discuss in forum] double either (a) or (b) neither (a) nor (b) |
Q7 ⇒ A major advantage of inheritance is reducing the time it takes to create new objects [other wrong options] [Discuss in forum] not having to think about how objects will be used reducing the amount of memory required to execute a progrma enabling people who have not studied programming to create useful applications |
Q8 ⇒ When a variable exists or is accessible, it is said to be _____ in scope [other wrong options] [Discuss in forum] immediate in the path available |
Q9 ⇒ When a function performs tasks based on a decision, it has _____ logical cohesion [other wrong options] [Discuss in forum] functional cohesion coincidental cohesion no cohesion |
Q10 ⇒ When a new class is derived from an existing class, the derived class member functions _____ have names that differ from base class function names may [other wrong options] [Discuss in forum] may if the two classes have the same name must must not |
Q11 ⇒ To use a template class member function, use the ________ with the instantiation dot operator [other wrong options] [Discuss in forum] scope resolution operator class definition keword template |
Q12 ⇒ The set of instructions for how to tie a bow is an example of the _____ structure sequence [other wrong options] [Discuss in forum] control repetition selection |
Q13 ⇒ If no exception is thrown ________ any catch blocks coded with be bypassed [other wrong options] [Discuss in forum] a catch block will cause an error the first catch block coded will execute the last catch block coded with execute |
Q14 ⇒ To send output to a file, you need to include the _____ header file in your program fstream.h [other wrong options] [Discuss in forum] file.h iomanip.h iostream.h |
Q15 ⇒ A class named Student must have a constructor whose name is Student [other wrong options] [Discuss in forum] ~Student constructor any legal C++ name |
Q16 ⇒ Functions that returns information about an object's state can be classified as ________ inspector functions [other wrong options] [Discuss in forum] mutator functions auxiliary functions manager functions |
Q17 ⇒ A member function uses the correct object when you call it because the address of the object is passed to the function [other wrong options] [Discuss in forum] a copy of the object is passed to the function the address of the function is passed to another function the address of the object is returned from the function |
Q18 ⇒ Two access specifiers in C++ are public and private [other wrong options] [Discuss in forum] int and double formal and informal void and free |
Q19 ⇒ 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 _____ either (a) or (b) [other wrong options] [Discuss in forum] const int & int & neither (a) nor (b) |
Q20 ⇒ Which of the following pairs of identifier name(s) are(is) considered to be identical? smith, johnsmith [other wrong options] [Discuss in forum] name, names name, names identifier 1, identifier_2 |
Or |