Exam 3: C++ Programming Concepts

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

In object oriented programming the focus is on ….......

Free
(Multiple Choice)
4.8/5
(37)
Correct Answer:
Verified

A

In procedural programming the focus in on …...........

Free
(Multiple Choice)
4.8/5
(41)
Correct Answer:
Verified

C

Which of the following is true about inline functions and macros.

Free
(Multiple Choice)
4.8/5
(31)
Correct Answer:
Verified

D

Which of the following is true about constructors. 1) They cannot be virtual. 2) They cannot be private. 3) They are automatically called by new operator

(Multiple Choice)
4.9/5
(36)

Which type is best suited to represent the logical values?

(Multiple Choice)
4.9/5
(41)

What will be the values of x, m and n after execution of the following statements? Int x, m, n;m=10; n=15;x= ++m + n++;

(Multiple Choice)
4.7/5
(31)

C++ programmers concentrate on creating , which contain data members and the member functions that manipulate those data members and provide services to clients.

(Multiple Choice)
4.9/5
(42)

In C++, const qualifier can be applied to?Member functions of a class?Function arguments?To a class data member which is declared as static?Reference variables

(Multiple Choice)
4.8/5
(41)

Which of the following feature of procedure oriented program is false?

(Multiple Choice)
4.8/5
(35)

Which of the following functions are performed by a constructor?

(Multiple Choice)
4.9/5
(37)

Which of the following control expressions are valid for an if statement?

(Multiple Choice)
4.7/5
(47)

Which of the following is the correct class of the object cout?

(Multiple Choice)
4.8/5
(41)

Which of the following operators are overloaded by default by the compiler? 1) Comparison Operator ( == ) 2) Assignment Operator ( = )

(Multiple Choice)
4.9/5
(42)

Which of the following ways are legal to access a class data member using this pointer?

(Multiple Choice)
5.0/5
(37)

The following is the C++ style comment

(Multiple Choice)
4.8/5
(30)

Which of the following is FALSE about references in C++

(Multiple Choice)
4.7/5
(39)

Which of the following feature of object oriented program is false?

(Multiple Choice)
4.8/5
(31)

Which operator is having right to left associativity in the following?

(Multiple Choice)
5.0/5
(33)

What will be the output of following program?#include <iostream> using namespace std;class Test{public:Test() { cout <<"Hello from Test() "; }} a;int main(){cout <<"Main Started "; return 0;}

(Multiple Choice)
4.8/5
(31)

Which of the following approach is adapted by C++?

(Multiple Choice)
4.9/5
(37)
Showing 1 - 20 of 25
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)