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. |
Q41 ⇒ One way pointers are useful is to refer to a memory address that has no _____ name [other wrong options] [Discuss in forum] constant location field |
Q42 ⇒ The two operators && an || are logical operators [other wrong options] [Discuss in forum] arithmetic operators equality operators relational operators |
Q43 ⇒ Which of the following tells C++ to display numbers with zero decimal places? setprecision(0) [other wrong options] [Discuss in forum] setiosflags(0) setiosflags(zero) setprecision(zero) |
Q44 ⇒ Another drawback to returning an error code from a function is that any error code returned by the function must be of the same type as return type of the function [other wrong options] [Discuss in forum] must not be a character cannot be checked in a main() program can have multiple meanings |
Q45 ⇒ A function's purpose is to print customer data. Which of the following is the best name for this function? printCustomer(). It states the function's purpose and is easy to read [other wrong options] [Discuss in forum] pcd(). It's short for "print customer data" and takes few keystrokes Printcustomerdata(). It states everything the function will do lastFunction(). It is the final function called in most programs, and this name identifies the function's timing |
Q46 ⇒ Private data can be accessed by class member functions [other wrong options] [Discuss in forum] functions in derived classes both (a) and (b) neither (a) nor (b) |
Q47 ⇒ When a class serves as a base class to others, _____ all of its members are inherited, except for any private members [other wrong options] [Discuss in forum] all of its members are inherited all of its members are inherited, except for any protected members None of its members is inherited unless specifically "listed |
Q48 ⇒ The arguments that determine the state of the cout object are called _____ format flags [other wrong options] [Discuss in forum] classes manipulators state controllers |
Q49 ⇒ Any #include files may contain All of the above [other wrong options] [Discuss in forum] constants variables functions |
Q50 ⇒ A default exception block must be placed _____ last among the catch blocks [other wrong options] [Discuss in forum] first among the catch blocks globally, at the top of the file at the end of all code in the program |
Q51 ⇒ A constructor initialization list is preceded by _____ a colon [other wrong options] [Discuss in forum] a semicolon two colons a space |
Q52 ⇒ The statement i*=3 is equivalent to i = i * 3 [other wrong options] [Discuss in forum] i = 3* i = 3 i* = 3 |
Q53 ⇒ Storing a class definition in a separate file is an example of implementation hiding [other wrong options] [Discuss in forum] polymorphism name mangling inheritance |
Q54 ⇒ An address is a _____ , while a pointer is a _____ variable, location [other wrong options] [Discuss in forum] array, variable constant, variable variable, position |
Q55 ⇒ You define a structure type globally because you save many lines of code by not rewriting an identical structure definition in each function that uses it [other wrong options] [Discuss in forum] you will never change its definition it is required in C++ all of the above |
Q56 ⇒ Which of the following is false? None of the preceding statements are false [other wrong options] [Discuss in forum] Data stored in an array can be accessed faster than data stored in a disk file Data stored in an array needs to be entered only once, typically at the beginning of the program Arrays allow the programmer to store information in the computer's internal memory |
Q57 ⇒ Which of the following tells C++ to display numbers in fixed notation? setiosflags(ios::fixed) [other wrong options] [Discuss in forum] setiosflags(fixed) setiosflags(fixed: :is) setiosflags(ios, fixed) |
Q58 ⇒ The complement operator is represented by the symbol ~ [other wrong options] [Discuss in forum] ^ i < |
Q59 ⇒ The statement double total = 0.0; performs _____ initialization [other wrong options] [Discuss in forum] assignment rationalization polymorphism |
Q60 ⇒ The body of a C++ function is surrounded by _____ curly brackets [other wrong options] [Discuss in forum] parentheses angle brackets square brackets |
Or |