QuizMagic

Now available on:
QuizMagic on Google Play QuizMagic Windows 8 App QuizMagic on Amazon Store QuizMagic on Firefox Marketplace
Create you own quizzes

C++ Quiz (Set 2)

C++ Quiz (Set 2)
Created by Quizmagic Team on May 04, 2013 02:44 PM
Another simple C++ quiz with 15 random questions related to classes, operators, constructors, destructors or other C++ syntax. Take this quiz to test your basic C++ concepts.
Top 5 Scores
Sravani Reddy
89
00:46
Anonymous
88
00:38
Anonymous
88
00:42
Anonymous
88
00:45
Anonymous
87
00:53
Questions
15
Minutes
2.5
High Score
89
00:46
Quiz Played
3253
times
Last played on Jul 20, 2023. View comments
Congratulation!

You are in top 5 scorers.
0
0
0
0
N/A
Answering this correctly will make the indicated neighbouring questions be automatically treated as having been answered correctly.
Answering this incorrectly will make the indicated neighbouring questions be automatically treated as having been answered incorrectly.
Answering this correctly will earn you some extra points.
Answering this incorrectly will cause you to lose some points.
Answering this correctly will increase the total time available to you.
Answering this incorrectly will reduce the total time available to you.
Rate this quiz
Embed this quiz on your blog or websiteShare this quiz

Copy this HTML code and paste in your website code to run this quiz on your site.

Size:
Size:
comments powered by Disqus

Sample Questions

Question 1
A constructor with no arguments or all the arguments has default values known as?
Destructor
Default Constructor
Copy Constructor
Parameterized Constructor
Question 2
What will be the result of following:
char*a=NULL; char& p = *a;
P will show the address of a.
Syntax Error.
The result is undefined.
P will show the NULL vale.
Question 3
Memory which has no pointer pointing to it and there is no way to delete or reuse this memory(object) is known as:
None of above
Memory Leak
1,2
Auto Pointer
Dangling pointer
Question 4
What of the following can be added to a derived class?
New constructors and destructor
New member functions
New friends
All of above
New data members
Question 5
Which of the following is true:
Both classes and structures are reference types.
Both classes and structures are value types.
Structures are reference types and classes are value types.
Structures are value types and classes are reference types.
Question 6
When copy constructor is called?
when you construct an object based on another object of the same class
when a function returns an object of that class by value
When compiler generates a temporary object
All of above
when the object of that class is passed by value as an argument to a function
Question 7
What is a friend function?
A friend function is a function that is not a member of a class and has access of only the public members of class.
None of above.
A friend function is a member function.
A friend function is a function that is not a member of a class but has access to the class's private and protected members.
X
Other recommended quiz for you
Connect with Facebook
OR
Connect with Google
Connecting...Back

Existing users, click here to login



By registering with us, you are agreeing to TERMS AND CONDITIONS of using our products/services.