Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
Python
C
C++
Java
Courses
Machine Learning
DevOps
Web Development
System Design
Aptitude
Projects
Sign In
▲
Similar Topics
DSA
22.3k+ articles
C++
4k+ articles
C++ Programs
2.5k+ articles
C Language
1.8k+ articles
Constructors
37 articles
Inheritance
32 articles
C++-Constructors
29 articles
C++-Virtual Functions
25 articles
C++-Inheritance
22 articles
Virtual Functions
16 articles
Programming Language
>
C++
>
C++ Quiz
C++ Quiz
140+ posts
Popular Articles
Recent Articles
Generation Google Scholarship (APAC) Online Challenge Experience
Last Updated: 26 April 2021
I had applied for an APAC scholarship in March 2021 through their Google Career Page and I got a mail that there will be an Online Challenge
...read more
Articles
Google
Interview Experiences
Aptitude
Computer Science Quizzes
C Quiz
C++ Quiz
DSA Quiz
Experiences
Check if all occurrences of a character appear together
Last Updated: 12 August 2022
Given a string s and a character c, find if all occurrences of c appear together in s or not. If the character c does not appear in the stri
...read more
Algorithms
Competitive Programming
C Language
C++
Data Structures
School Programming
C++ Quiz
DSA Quiz
C Programs
C++ Programs
DSA
C/C++ Puzzles
C++ | Misc C++ | Question 6
Last Updated: 28 June 2021
Would destructor be called, if yes, then due to which vector?[sourcecode language="C"]#include iostream#include vectorusing namespace std;cl
...read more
C Language
C++ Quiz
C++-Misc C++
Misc C++
Similar Topics
DSA
22.3k+ articles
C++
4k+ articles
C++ Programs
2.5k+ articles
C Language
1.8k+ articles
Constructors
37+ articles
Inheritance
32+ articles
C++-Constructors
29+ articles
C++-Virtual Functions
25+ articles
C++-Inheritance
22+ articles
Virtual Functions
16+ articles
C++ | Exception Handling | Question 10
Last Updated: 28 June 2021
Which of the following is true about exception handling in C++?1) There is a standard exception class like Exception class in Java.2) All ex
...read more
Exception Handling
C Language
C++ Quiz
C++-Exception Handling
C++ | Exception Handling | Question 5
Last Updated: 28 June 2021
[sourcecode language="C"]#include iostreamusing namespace std;int main(){ try { throw 'a'; } catch (int param) {
...read more
Exception Handling
C Language
C++ Quiz
C++-Exception Handling
C++ | Inheritance | Question 8
Last Updated: 28 June 2021
[tabby title="C"][sourcecode language="c"]#includeusing namespace std;class Base{public: int fun() { cout << \"Base::fun() called\"; }
...read more
C Language
C++ Quiz
C++-Inheritance
Inheritance
C++ | Operator Overloading | Question 10
Last Updated: 23 November 2021
Which of the following operator functions cannot be global, i.e., must be a member function.(A) new (B) delete(C) Conversion Operator(D) All
...read more
C Language
C++ Quiz
C++-Operator Overloading
Operator Overloading
cpp-overloading
C++ | Operator Overloading | Question 4
Last Updated: 28 June 2021
Which of the following operators should be preferred to overload as a global function rather than a member method?(A) Postfix ++(B) Comparis
...read more
C Language
C++ Quiz
C++-Operator Overloading
Operator Overloading
C++ | const keyword | Question 2
Last Updated: 28 June 2021
In C++, const qualifier can be applied to1) Member functions of a class2) Function arguments3) To a class data member which is declared as s
...read more
C Language
C++ Quiz
C++-const keyword
const keyword
C++ | Class and Object | Question 5
Last Updated: 28 June 2021
Assume that an integer and a pointer each takes 4 bytes. Also, assume that there is no alignment in objects.Predict the output following pr
...read more
C Language
Class and Object
C++ Quiz
C++-Class and Object
C++ | Misc C++ | Question 5
Last Updated: 28 June 2021
How can we make a C++ class such that objects of it can only be created using new operator? If user tries to create an object directly, the
...read more
C Language
C++ Quiz
C++-Misc C++
Misc C++
C++ | Static Keyword | Question 2
Last Updated: 28 June 2021
[sourcecode language="C"]#include iostreamusing namespace std;class Player{private: int id; static int next_id;public: int getID()
...read more
C Language
C++ Quiz
C++-Static Keyword
Static Keyword
C++ | Constructors | Question 3
Last Updated: 02 December 2021
Output of following program?[tabby title="C++"][sourcecode language="cpp"]#include using namespace std;class Point { Point()
...read more
C++-Constructors
Constructors
C++ Quiz
C++ | Class and Object | Question 2
Last Updated: 28 June 2021
Predict the output of following C++ program[sourcecode language="CPP"]#includeiostreamusing namespace std; class Empty {}; int main(){ cout
...read more
C Language
Class and Object
C++ Quiz
C++-Class and Object
C++ | References | Question 6
Last Updated: 28 June 2021
Which of the following functions must use reference.(A) Assignment operator function(B) Copy Constructor(C) Destructor(D) Parameterized cons
...read more
C Language
C++ Quiz
C++-References
References
First
1
2
3
4
5
6
7
8
>>
Last
First
1
2
3
4
5
6
>>
Last
First
3
4
5
6
>>
Last
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !