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
To use either an input or output file, the program must include the _____ header file
Options
A. filestream.h
B. fstream.h
C. instream.h
D. inoutstream.h
E. iostream.h
Correct Answer
fstream.h
Object Oriented Programming Using C++ problems
Search Results
1. Paying attention to the important properties while ignoring inessential details is known as________
Options
A. selectiveness
B. polymorphism
C. abstraction
D. summarizing
Show Answer
Scratch Pad
Discuss
Correct Answer: abstraction
2. You define a structure type globally because _____
Options
A. you save many lines of code by not rewriting an identical structure definition in each function that uses it
B. you will never change its definition
C. it is required in C++
D. All of the above
Show Answer
Scratch Pad
Discuss
Correct Answer: you save many lines of code by not rewriting an identical structure definition in each function that uses it
3. The use of the break statement in a switch statement is
Options
A. optional
B. compulsory
C. not allowed. It gives an error message
D. to check an error
E. None of the above
Show Answer
Scratch Pad
Discuss
Correct Answer: optional
4. What does C++ append to the end of a string literal constant?
Options
A. a space
B. a number sign (#)
C. an asterisk (*)
D. a null character
Show Answer
Scratch Pad
Discuss
Correct Answer: a null character
5. A widget is to the blueprint for a widget as an object is to
Options
A. a member function
B. a class
C. an operator
D. a data item
Show Answer
Scratch Pad
Discuss
Correct Answer: a class
6. To expose a data member to the program, you must declare the data member in the _____ section of the class
Options
A. common
B. exposed
C. public
D. unrestricted
E. user
Show Answer
Scratch Pad
Discuss
Correct Answer: public
7. An array name is a _____
Options
A. subscript
B. formal parameter
C. memory address
D. prototype
Show Answer
Scratch Pad
Discuss
Correct Answer: memory address
8. 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 (|)
9. 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
10. 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
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