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
3040
times
Last played on Dec 07, 2016. 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
Copy Constructor
Parameterized Constructor
Destructor
Question 2
What will be the result of following:
char*a=NULL; char& p = *a;
Syntax Error.
The result is undefined.
P will show the NULL vale.
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
None of above
Memory Leak
Auto Pointer
1,2
Question 4
What of the following can be added to a derived class?
New friends
All of above
New member functions
New constructors and destructor
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 a function returns an object of that class by value
When compiler generates a temporary object
when the object of that class is passed by value as an argument to a function
when you construct an object based on another object of the same class
All of above
Question 7
What is a friend 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.
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.
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.