CuriousTab
Search
CuriousTab
Home
Aptitude
Computer
C Programming
C# Programming
C++ Programming
Database
Java Programming
Networking
Engineering
Biochemical Engineering
Biochemistry
Biotechnology
Chemical Engineering
Civil Engineering
Computer Science
Digital Electronics
Electrical Engineering
Electronics
Electronics and Communication Engineering
Mechanical Engineering
Microbiology
Technical Drawing
GK
Current Affairs
General Knowledge
Reasoning
Data Interpretation
Logical Reasoning
Non Verbal Reasoning
Verbal Ability
Verbal Reasoning
Exams
AIEEE
Bank Exams
CAT
GATE
IIT JEE
TOEFL
Jobs
Analyst
Bank PO
Database Administrator
IT Trainer
Network Engineer
Project Manager
Software Architect
Discussion
Home
‣
Computer Science
‣
Object Oriented Programming Using C++
Comments
Question
When you pass a variable _____, C++ passes only the contents of the variable to the receiving function
Options
A. by reference
B. by value
C. globally
D. locally
Correct Answer
by value
Object Oriented Programming Using C++ problems
Search Results
1. A function that is called automatically each time an object is destroyed is a
Options
A. constructor
B. destructor
C. destroyer
D. terminator
Show Answer
Scratch Pad
Discuss
Correct Answer: destructor
2. If container classes are carefully constructed, then these tools are available to work with structures that are not ______
Options
A. valid without container classes
B. programmer-defined
C. type-specific
D. public
Show Answer
Scratch Pad
Discuss
Correct Answer: type-specific
3. You can use C++ as a procedural, as well as an object-oriented, language
Options
A. True
B. False
Show Answer
Scratch Pad
Discuss
Correct Answer: True
4. Adding a derived class to a base class requires fundamental changes to the base class
Options
A. True
B. False
Show Answer
Scratch Pad
Discuss
Correct Answer: False
5. Format flags may be combined using
Options
A. the bitwise OR operator (|)
B. the logical OR operator (||)
C. the bitwise AND operator (&)
D. the logical AND operator (&&)
Show Answer
Scratch Pad
Discuss
Correct Answer: the bitwise OR operator (|)
6. When the compiler cannot differentiate between two overloaded constructors, they are called
Options
A. overloaded
B. destructed
C. ambiguous
D. dubious
Show Answer
Scratch Pad
Discuss
Correct Answer: ambiguous
7. If you create an instantiation of a class template with an int, and then create a second instantiation with a double, then
Options
A. you must precede each function call with the word int or double
B. once a function is used as one type, it becomes unavailable for use with the other type
C. there is no difference in the procedure to call a member function
D. you cannot perform this operation in C++
Show Answer
Scratch Pad
Discuss
Correct Answer: you must precede each function call with the word int or double
8. The best form of coupling is _____
Options
A. complete
B. tight
C. loose
D. free
Show Answer
Scratch Pad
Discuss
Correct Answer: loose
9. Sending a copy of data to a program module is called _______
Options
A. passing a value
B. making a reference
C. recursion
D. setting a condition
Show Answer
Scratch Pad
Discuss
Correct Answer: passing a value
10. Which of the following are valid characters for a numeric literal constant?
Options
A. a comma
B. a dollar sign ($)
C. a percent sign (%)
D. a space
E. None of the above
Show Answer
Scratch Pad
Discuss
Correct Answer: None of the above
Comments
There are no comments.
Enter a new Comment
Save
More in Computer Science:
Artificial Intelligence
Automation System
Computer Fundamentals
Computer Hardware
Database Systems
Digital Computer Electronics
Disk Operating System (DOS)
Electronic Principles
Language Processors
Linux
Management Information Systems
Networking
Object Oriented Programming Using C++
Operating Systems Concepts
System Analysis and Design
Unix
Windows 2000 Server
Windows NT