Which of the following is not correct for virtual function in C++ ?

DAY-2 DSA BOOTCAMP

Quiz
•
Computers
•
University
•
Hard
ATHARVA GALNE
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Must be declared in public section of class.
Virtual function can be static.
Virtual function should be accessed using pointers.
Virtual function is defined in base class
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Identify the scope resolution operator.
:
;
: :
| |
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following is not the member of class?
Static function
Friend function
Const function
Virtual function
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
How many instances of an abstract class can be created?
0
Equal to number of class objects created
Abstract Value
Infinite
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Why reference is not same as a pointer?
A reference can never be null.
A reference once established cannot be changed.
Reference doesn't need an explicit dereferencing mechanism.
All of the above.
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Can we declare an array size as negative?
Yes, you can declare an array size as negative in certain programming languages.
No, you cannot declare an array size as negative in any programming language.
It depends on the programming language, some allow negative array sizes while others do not.
Negative array sizes are only allowed in advanced data structures, not in regular arrays.
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Pccoe_Pune
GFGPCCOE
PGcFcGoPeC_CPOuEne
Pccoe_PuneGFGPCCOE
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
C++ Array Quiz

Quiz
•
University
10 questions
Reshaping & vStack&hstack( )

Quiz
•
9th Grade - University
15 questions
Python Skills

Quiz
•
1st Grade - Professio...
10 questions
DS UNIT-2 TEST-1

Quiz
•
University
15 questions
Computer Science Quiz

Quiz
•
University
10 questions
Quiz 8: Arrays&Vector

Quiz
•
University
12 questions
Android App Development

Quiz
•
University
15 questions
ReactJS Quiz

Quiz
•
University
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade