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
Of the three ways to pass arguments to functions, only passing by _____ and passing by _____ allow the function to modify the argument in the calling program
Options
A. reference, pointer
B. array, location
C. array, pointer
D. None of the above
Correct Answer
reference, pointer
Object Oriented Programming Using C++ problems
Search Results
1. A base class may also be called a
Options
A. child class
B. subclass
C. derived class
D. parent class
Show Answer
Scratch Pad
Discuss
Correct Answer: parent class
2. Redirection redirects
Options
A. a stream from a file to the screen
B. a file from a device to a stream
C. a device from the screen to a file
D. the screen from a device to a stream
Show Answer
Scratch Pad
Discuss
Correct Answer: a stream from a file to the screen
3. Some Streams work with input, and some with output
Options
A. True
B. False
Show Answer
Scratch Pad
Discuss
Correct Answer: True
4. The step-by-step instructions that solve a problem are called _____
Options
A. an algorithm
B. a list
C. a plan
D. a sequential structure
Show Answer
Scratch Pad
Discuss
Correct Answer: an algorithm
5. You mark the beginning of a function's block of code with the _____
Options
A. /
B. *
C. {
D. }
E. either (c) or (d) can be used
Show Answer
Scratch Pad
Discuss
Correct Answer: {
6. The generic type in a template function
Options
A. must be T
B. can be T
C. cannot be T for functions you create, but may be for C++'s built-in functions
D. cannot be T
Show Answer
Scratch Pad
Discuss
Correct Answer: can be T
7. Which of the following statements is false?
Options
A. A function is a block of code that performs a specific task
B. Functions allow programmers to break large and complex problems into small and manageable tasks
C. Functions allow programmers to use existing code to perform common tasks
D. Functions can be called, or invoked, only once in a program
E. Programmer-defined functions can be either value-returning or void
Show Answer
Scratch Pad
Discuss
Correct Answer: Functions can be called, or invoked, only once in a program
8. A default catch block catches
Options
A. all thrown objects
B. no thrown objects
C. any thrown object that has not been caught by an earlier catch block
D. all thrown objects that have been caught by an earlier catch block
Show Answer
Scratch Pad
Discuss
Correct Answer: any thrown object that has not been caught by an earlier catch block
9. Using the wardrobe structure within the ShopList structure is an example of a good programming principle, known as _____
Options
A. reusability
B. polymorphism
C. redundancy
D. recursion
Show Answer
Scratch Pad
Discuss
Correct Answer: reusability
10. A function that changes the state of the cout object is called a(n) _____
Options
A. member
B. adjuster
C. manipulator
D. operator
Show Answer
Scratch Pad
Discuss
Correct Answer: manipulator
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