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
26 articles
C++-Inheritance
22 articles
Virtual Functions
16 articles
Programming Language
>
C++
>
C++ Quiz
C++ Quiz
140+ posts
Popular Articles
Recent Articles
Reversed Range-based for loop in C++ with Examples
Last Updated: 08 July 2020
Range-based for loops is an upgraded version of for loops. It is quite similar to for loops which is use in Python. Range-based for loop in
...read more
loop
Algorithms
Analysis of Algorithms
Searching
Advanced Data Structure
Competitive Programming
C++
C++ Quiz
C++ Programs
DSA
CamelCase Pattern Matching
Last Updated: 03 December 2024
Given a list of words where each word follows CamelCase notation, the task is to print all words in the list that matches the given pattern,
...read more
Arrays
Strings
Pattern Searching
Searching
Sorting
Hash
Competitive Programming
Computer Subject
C++
Data Structures
C++ Quiz
C++ Programs
DSA
C/C++ Puzzles
ungetc() in C/C++
Last Updated: 25 October 2018
The ungetc() function takes a single character and shoves it back onto an input stream. It is the opposite of the getc() function, which rea
...read more
Misc
Programming Language
C Language
C Quiz
C++ Quiz
C Programs
C++ Programs
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
26+ articles
C++-Inheritance
22+ articles
Virtual Functions
16+ articles
C++ | Exception Handling | Question 2
Last Updated: 22 September 2021
What is the advantage of exception handling ?Remove error-handling code from the software's main line of code.A method writer can choose to
...read more
Exception Handling
C++ Quiz
C++-Exception Handling
C++ | Exception Handling | Question 1
Last Updated: 28 June 2021
[sourcecode language="CPP"]#include iostreamusing namespace std;int main(){ int x = -1; try { cout Inside try \n; if (x 0)
...read more
Exception Handling
C Language
C++ Quiz
C++-Exception Handling
C++ | Virtual Functions | Question 4
Last Updated: 10 July 2021
Which of the following is true about pure virtual functions?1) Their implementation is not provided in a class where they are declared.2) If
...read more
C++ Quiz
C++-Virtual Functions
Virtual Functions
C++ | Virtual Functions | Question 1
Last Updated: 28 June 2021
Which of the following is true about virtual functions in C++.(A) Virtual functions are functions that can be overridden in derived class wi
...read more
C Language
C++ Quiz
C++-Virtual Functions
Virtual Functions
C++ | Inheritance | Question 3
Last Updated: 28 June 2021
Assume that an integer takes 4 bytes and there is no alignment in following classes, predict the output.[sourcecode language="C"]#includeios
...read more
C Language
C++ Quiz
C++-Inheritance
Inheritance
C++ | new and delete | Question 1
Last Updated: 29 July 2020
How to create a dynamic array of pointers (to integers) of size 10 using new in C++? Hint: We can create a non-dynamic array using int *arr
...read more
C++ Quiz
C++-new and delete
new and delete
C++ | Static Keyword | Question 1
Last Updated: 28 June 2021
Predict the output of following C++ program.[sourcecode language="CPP"]#include iostreamusing namespace std;class Test{ static int x;publ
...read more
C Language
C++ Quiz
C++-Static Keyword
Static Keyword
C++ | Function Overloading and Default Arguments | Question 5
Last Updated: 28 June 2021
Which of the following in Object Oriented Programming is supported by Function overloading and default arguments features of C++.(A) Inherit
...read more
C Language
C++ Quiz
C++-Function Overloading and Default Arguments
Function Overloading and Default Arguments
C++ | this pointer | Question 1
Last Updated: 28 June 2021
Which of the following is true about this pointer?(A) It is passed as a hidden argument to all function calls(B) It is passed as a hidden ar
...read more
C Language
C++ Quiz
C++-this pointer
this pointer
C++ | Class and Object | Question 4
Last Updated: 28 June 2021
Which of the following is true?(A) All objects of a class share all data members of class(B) Objects of a class do not share non-static memb
...read more
C Language
Class and Object
C++ Quiz
C++-Class and Object
C++ | Class and Object | Question 3
Last Updated: 28 June 2021
What is the difference between struct and class in C++?(A) All members of a structure are public and structures don't have constructors and
...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 is FALSE about references in C++(A) References cannot be NULL(B) A reference must be initialized when declared(C) On
...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
1
2
3
4
>>
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 !