
Contructors
Quiz
•
Engineering
•
Professional Development
•
Medium
SrinivasaRao SrinivasaRao
Used 5+ times
FREE Resource
Student preview

30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the output of the given program?
Object will be created Successfully
Compile Time Error
Successfully Compiled, but no output
None
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the output?
Sample
Compile Time error
Successfully comiled, but nothing will be printed
None
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the output?
Compile Time error
Sample
Nothing will be printed
Run Time error
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the output?
Compile Time error
During object creation virtual Default constructor will be created
Run Time error
None
5.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What is a Constructor _________
Constructor is a Special Operator
Constructor is a Special keyword
Constructor is a Special Method
Constructor is a Special variable
6.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What is the Syntax of the Constructor?
return_type Name()
{
}
data_type Name()
{
}
modifier Name()
{
}
none
7.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
When the constructor will be called/invoked?
It will not invoke directly, we need to call it explicitly
It will be invoked automatically during the object creation
It will be invoked during the main() method execution
None
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple

Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade