QuizMagic

Now available on:
QuizMagic on Google Play QuizMagic Windows 8 App QuizMagic on Amazon Store QuizMagic on Firefox Marketplace
Chityala Bharath Reddy
Last hour Chityala Bharath Reddy 181 points
Chityala Bharath Reddy
24 hours Chityala Bharath Reddy 181 points
24 * 7
Linta Elizabeth
sangeeta d
Thriyanka Tara
Heena Kouser
Chityala Bharath Reddy
Vedaant Chopra
 
 
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
3119
times
Last played on May 27, 2017. 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?
Default Constructor
Destructor
Copy Constructor
Parameterized Constructor
Question 2
What will be the result of following:
char*a=NULL; char& p = *a;
P will show the NULL vale.
The result is undefined.
Syntax Error.
P will show the address of a.
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:
Dangling pointer
Memory Leak
None of above
Auto Pointer
1,2
Question 4
What of the following can be added to a derived class?
New constructors and destructor
New friends
New member functions
All of above
New data members
Question 5
Which of the following is true:
Structures are reference types and classes are value types.
Both classes and structures are reference types.
Both classes and structures 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 the object of that class is passed by value as an argument to a function
When compiler generates a temporary object
All of above
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.
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.
None of above.
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.