CODOLYMPICS

CODOLYMPICS: Test Your C++ Knowledge
Welcome to CODOLYMPICS, the ultimate C++ quiz designed to challenge and enhance your programming skills. Whether you're a beginner or an experienced developer, this quiz will help you master key concepts and improve your understanding of C++.
Take the challenge and discover:
- 25 engaging multiple-choice questions
- In-depth coverage of C++ topics
- Immediate feedback on your answers
Which concept is used to implement late binding?
Virtual functions
Operator functions
Constant functions
Static functions
How compile-time polymorphisms are implemented in C++
Using Inheritance
Using Virtual functions
Using Templates
Using Inheritance and Virtual functions
Which of the following approach is used by C++?
Top-down
Bottom-up
Left-right
Right-left
Which of the following is correct
C++ allows static type checking
C++ allows dynamic type checking
C++ allows static member function to be of type const
C++ allows both static and dynamic type checking
Which of the following is the correct difference between cin and scanf()?
Both are the same
cin is a stream object whereas scanf() is a fun ction
Scanf() is a stream object whereas cin is a function
Cin is used for printing whereas scanf() is used for reading input
Which of the following is not true about the pre processor derivatives
They begin with a hash symbol
They are processed by preprocessor
They are an integral part of the code
They end with semi colon
Which of the following is not a file operation
Appending
Repositioning
truncating
None of the above
Delaration a pointer more than once may cause __
Error
Abort
Trap
Null
Which function is used to allocate space for array in memory
Malloc()
Realloc()
Alloc()
Calloc()
Which of the following is correct?
) Base class pointer object cannot point to a derived class object
Derived class pointer object cannot point to a base class object
A derived class cannot have pointer objects
A base class cannot have pointer objects
Why references are different from pointers
A reference cannot be made null
A reference cannot be changed once initialized
No extra operator is needed for dereferencing of a reference
All of the mentioned
What is the difference between delete and delete[] in C++?
Delete is used to delete normal objects whereas delete[] is used to pointer objects
Delete is a keyword whereas delete[] is an identifier
Delete is used to delete single object whereas delete[] is used to multiple(array/pointer of) objects
Delete is syntactically correct but delete[] is wrong and hence will give an error if used in any case
What happens if a class does not have a name
It will not have a constructor
It will not have a destructor
It is not allowed
It will neither have a constructor or destructor
What is name mangling in C++?
The process of adding more information to a function name so that it can be distinguished from other functions by the compiler
The process of making common names for all the function of C++ program for better use
The process of changing the names of variable
The process of declaring variables of different types
Which of the following is correct about this pointer in C++?
This pointer is passed as a hidden argument in all the functions of a class
This pointer is passed as a hidden argument in all non-static functions of a class
This pointer is passed as a hidden argument in all static functions of a class
This pointer is passed as a hidden argument in all static variables of a class
Which of the following is Memory Leak detection tool?
GC++
KDevelop
GIT
Valgrind
What's wrong?when ((i<10)&&(i>24))
The logical operator && cannot be used in a test condition
The while loop is an exit condition loop
The test condition is always true
The test condition is always false
Which of the following true about FILE *fp?
FILE is a keyword in C for representing files and fp is a variable of FILE type.
FILE is a structure and fp is a pointer to the structure of FILE type
FILE is a stream
) FILE is a buffered stream
Which of the following is not a storage class supported by c++?
Register
Auto
Mutual
Dynamic
Which of the following operator cannot be overloaded?
#name
==(equality operator)
(row operator)
::(Scope resolution operator)
What does modularity mean?
Hiding part of program
Subdividing program into small independent parts
Overriding parts of program
Wrapping things into single unit

What will be the output of the C++ code?
Garbage value
0
99
Error

Compilation error
Run time error
10
Infinite loop

Constructing Base , Constructing Derived, Destructing Base
Constructing Base , Constructing Derived , Destructing Derived, Destructing Base
Constructing Base , Constructing Derived , Destructing Base, Destructing Derived.
Constructing Derived , Constructing Base, Destructing Base, Destructing Derived.

2 4 6
Compilation error
Garbage value
No output
{"name":"CODOLYMPICS", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Welcome to CODOLYMPICS, the ultimate C++ quiz designed to challenge and enhance your programming skills. Whether you're a beginner or an experienced developer, this quiz will help you master key concepts and improve your understanding of C++.Take the challenge and discover:25 engaging multiple-choice questionsIn-depth coverage of C++ topicsImmediate feedback on your answers","img":"https:/images/course8.png"}