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
Overloaded functions are required to
Options
A. have the same return type
B. have the same number of parameters
C. perform the same basic functions
D. None of the above
Correct Answer
None of the above
Object Oriented Programming Using C++ problems
Search Results
1. C++ allows you to define the same functions more than once in the same program _____
Options
A. if the definitions are identical
B. if the definitions are included in two separate #include files
C. if the definitions are located in a single #include file that is included more than once
D. C++ does not allow you to define the same functions more than once in the same program
Show Answer
Scratch Pad
Discuss
Correct Answer: C++ does not allow you to define the same functions more than once in the same program
2. Which of the following is(are) invalid string constant(s)?
Options
A. '7.15 pm'
B. "i like e"
C. "7.3el2"
D. "1234el2"
E. None of the above
Show Answer
Scratch Pad
Discuss
Correct Answer: '7.15 pm'
3. 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
4. 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
5. The best form of coupling is _____
Options
A. complete
B. tight
C. loose
D. free
Show Answer
Scratch Pad
Discuss
Correct Answer: loose
6. Which of the following statements allows the user to enter data at the keyboard?
Options
A. cin << currentPay;
B. cin >> currentPay;
C. cout << currentPay;
D. cout >> currentPay;
E. None of the above
Show Answer
Scratch Pad
Discuss
Correct Answer: cin >> currentPay;
7. To enter a comment in a C++ program, you begin the comment with _____
Options
A. **
B. &&
C. \\
D. @
E. //
Show Answer
Scratch Pad
Discuss
Correct Answer: //
8. A function that returns no values to the program that calls it is _____
Options
A. not allowed in C++
B. type void
C. type empty
D. type barren
Show Answer
Scratch Pad
Discuss
Correct Answer: type void
9. Evaluate the following expression: 3 >6&&7>4
Options
A. True
B. False
Show Answer
Scratch Pad
Discuss
Correct Answer: False
10. Header files often have the file extension _____
Options
A. .H
B. .HE
C. .HEA
D. .HEAD
Show Answer
Scratch Pad
Discuss
Correct Answer: .H
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