Object Oriented Programming c++ Exam Questions and Answers pdf - Set 33 - ObjectiveBooks
Hello everybody! You can translate the content of this page by selecting a language in the select box.

Object Oriented Programming c++ Exam Questions and Answers pdf - Set 33

Practice Test: Question Set - 33


1. One way in which a structure differs from an array is that ________
    (A) A structure may have members of more than one type
    (B) A structure must have members that; are all the same type
    (C) Art array may have members of more than one type
    (D) There is no difference between a structure and an array

2. The outline or the definition of a function is called its
    (A) Beta test
    (B) Forerunner
    (C) Outline
    (D) Prototype

3. It is sometimes useful to specify a class from which no objects will ever be created
    (A) True
    (B) False

4. The end of string is recognized by
    (A) The null character
    (B) The newline character
    (C) The $ sign
    (D) The / sign

5. Which of the following declares and initializes an Integer variable named numltems?
    (A) int numltems = 0;
    (B) int numltems = '0';
    (C) integer numltems = 0;
    (D) numltems int = 0;

6. The C++ expression p --> val means the same thing as
    (A) *p.val
    (B) *(p.val)
    (C) (*p).vai
    (D) p.val

7. When you declare a pointer, you must give it a ________
    (A) Type
    (B) Type and name
    (C) Type, name, and value
    (D) Name and value

8. You ________overload function templates
    (A) May, as long as each version has the same arguments
    (B) May, as long as each version has different arguments
    (C) Must
    (D) Must not

9. The most efficient data type for a variable that the number 20000 is the _______ data type
    (A) Character
    (B) Long Integer
    (C) Float
    (D) Short Integer

10. The while loop is referred to as a(n) _______ loop because the loop condition is tested at the beginning of the loop
    (A) Beginning
    (B) Initial
    (C) Pretest
    (D) Priming

11. In the C language, the character type of constant is delimited by using
    (A) Single quotes
    (B) Double quotes
    (C) Parenthesis
    (D) #

12. Which of the following is a C++ object?
    (A) >>
    (B) read()
    (C) cin
    (D) iostream

13. A class named student must have a constructor whose name is
    (A) Student
    (B) ~student
    (C) Constructor
    (D) Any legal C++ name

14. A C++ _______ is a program that runs in a DOS window
    (A) Algorithm
    (B) Cast application
    (C) Console application
    (D) Source application

15. The rules to any programming language are its _______
    (A) Syntax
    (B) Interpretation
    (C) Logic
    (D) Customs

Show and hide multiple DIV using JavaScript View All Answers

 Next Tests:

    Blogger Comment
    Facebook Comment