1/20/2018 MCQ Test: C++ MCQ Test - 2
More Next Blog» Create Blog Sign In
MCQ Test
Monday, June 24, 2013 Followers
C++ MCQ Test - 2 Followers (21)
Que.1 . What is shallow copy?
A: A shallow copy creates a copy of the dynamically allocated objects too.
Follow
B: A shallow copy just copies the values of the data as they are.
C: A shallow copy creates a copy of the statically allocated objects too
Blog Archive
D: Both b and c above
▼ 2013 (46)
► December (2)
► September (2)
Right Answer: B
► August (6)
► July (11)
▼ June (8)
Que.2 . An abstract class can be instantiated.
► Jun 26 (2)
▼ Jun 24 (2)
C++ MCQ Test - 2
A: True
C MCQ Test - 2
B: False ► Jun 21 (2)
► Jun 03 (2)
► May (17)
Right Answer: B
Popular Posts
Que.3 . Which of the following below can perform conversions between pointers to related classes?
Software Testing MCQ Test – 1
Que.1. Defects are less costly if detected in
which of the following phases A. Coding B.
Design C. Requirements Gathering D. Im...
A: cast_static
CSS MCQ Test – 1
B: dynamic_cast Que.1. A navigation bar needs standard HTML
as a base A. True B. False Right Answer: A
C: static_cast Que.2. The ____________ selector is used to
sp...
D: cast_dynamic JavaScript MCQ Test - 1
Que.1. What is the purpose of <noscript> tag in
Java Script? A. Prevents scripts on the page
from executing. B. Enclo...
Right Answer: C Software Engineering MCQ Test – 1
Que.1. What are KPAs and how many KPAs
should be satisfied for a company to achieve
CMMLs A. Key project areas,17 B. Key
Que.4 . Can #define accept parameters? project area...
Data Structure MCQ Test – 1
Que.1. Can linked list be implemented using
arrays? A. Yes B. No Right Answer: A
A: Yes Que.2. On which principle does stack work?
A. FIL...
https://mcqtestanswers.blogspot.com/2013/06/c-mcq-test-2.html 1/6
1/20/2018 MCQ Test: C++ MCQ Test - 2
SQL Server MCQ Test – 1
B: No
Que.1. Can you use the UPDATE and SELECT
clauses in one SQL statement? A. You can if
you use nested SQL statement B. You can’t
C. ...
Right Answer: A
Java MCQ Test – 1
Que.1. Which of the following statements is
false about objects? A. An instance of a
class is an object B. Object can ac...
Que.5 . What is the difference between overloaded functions and overridden functions?
MySQL MCQ Test – 1
Que.1. BLOB data type can have default
column value. A. True B. False Right
Answer: B Que.2. User() function retur...
A: Overloading is a dynamic or run-time binding and Overriding is static or compile-time
binding LINUX MCQ Test – 1
Que.1. Which of the following below are true
B: Redefining a function in a friend class is called function overriding while Redefining a functionalities of shell? A. Authenticates user
B. Interprets commands C. Allocates t...
function in a derived class is called a overloaded fucntion.
ORACLE MCQ Test – 1
C: Overloading is a static or compile-time binding and Overriding is dynamic or run-time Que.1. To determine the tome zone under
binding which a database was operating A. select
DBTIOMEZONE from root B. select
D: Redefining a function in a friend class is called function overloading while Redefining a TIMEZONE_DB from dua...
function in a derived class is called as overridden fucnion.
Total Pageviews
Right Answer: C 158,821
Google+ Followers
Que.6 . How do we define a destructor?
Vyas Hemal
Add to circles
A: X~() {}
B: X() {}~
C: X() ~{}
D: ~X() {}
Right Answer: D
54 have me in circles View all
Que.7 . Which classes allow primitive types to be accessed as objects?
A: Storage
B: Virtual About Me
C: Friend
Vyas Hemal
Follow 54
D: Wrapper
View my complete profile
Right Answer: D
Que.8 . Can constructors be overloaded?
https://mcqtestanswers.blogspot.com/2013/06/c-mcq-test-2.html 2/6
1/20/2018 MCQ Test: C++ MCQ Test - 2
A: No
B: Yes
Right Answer: B
Que.9 . #if or #elif can be used to evaluate
A: Constant expressions
B: Macro expressions
C: Both a and b
D: All expressions
Right Answer: C
Que.10 . The default access level assigned to members of a class is ___________
A: Private
B: Public
C: Protected
D: Needs to be assigned
Right Answer: A
Que.11 . Which type of casting can be used only with pointers and references to objects?
A: Dynamic_cast
B: cast
C: Static_cast
D: Pointer_Cast
Right Answer: A
Que.12 . Which of the following below is /are a valid iterator type?
A: Input Iterator
B: Backward Iterator
https://mcqtestanswers.blogspot.com/2013/06/c-mcq-test-2.html 3/6
1/20/2018 MCQ Test: C++ MCQ Test - 2
C: Forward Iterator
D: Both a and c above
Right Answer: D
Que.13 . Which of the following is not a standard exception built in C++.
A: std::bad_creat
B: std::bad_alloc
C: std::bad_cast
D: std::bad_typeid
Right Answer: A
Que.14 . Every class has at least one constructor function, even when none is declared.
A: True
B: False
Right Answer: A
Que.15 . Which of the following is not a valid conditional inclusions in preprocessor directives
A: #ifdef
B: #ifundef
C: #endif
D: #elif
Right Answer: B
Que.16 . In C++ two different functions can have the same name if their parameter types are same.
A: True
B: False
Right Answer: B
Que.17 . Which of the following operators below allow to define the member functions of a class
outside the class?
A: ::
B: ?
C: :?
D: %
https://mcqtestanswers.blogspot.com/2013/06/c-mcq-test-2.html 4/6
1/20/2018 MCQ Test: C++ MCQ Test - 2
Right Answer: A
Que.18 . Inline functions are invoked at the time of
A: Run time
B: Compile time
C: Depends on how it is invoked
D: Both b and c above
Right Answer: B
Que.19 . For which type of class private and protected members of the class can be accessed from
outside the same class in which they are declared
A: No such class exist
B: Friend
C: Static
D: Virtual
Right Answer: B
Que.20 . What is reinterpret_cast used for?
A: converts integer pointer type to any other integer pointer type
B: Converts any pointer type to any other pointer type
C: converts any pointer type to only integer pointer type
D: Both a and b
Right Answer: D
Posted by Vyas Hemal at 5:26 AM
No comments:
Post a Comment
https://mcqtestanswers.blogspot.com/2013/06/c-mcq-test-2.html 5/6
1/20/2018 MCQ Test: C++ MCQ Test - 2
Enter your comment...
Comment as: Unknown (Goo Sign out
Publish Preview Notify me
Newer Post Home Older Post
Subscribe to: Post Comments (Atom)
Ethereal theme. Powered by Blogger.
https://mcqtestanswers.blogspot.com/2013/06/c-mcq-test-2.html 6/6