
C++ Classes and Objects Quiz

Quiz
•
Engineering
•
University
•
Easy
vinjamuri Kamesh
Used 2+ times
FREE Resource
60 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to declare an object of a class `Student`?
Student s1;
Student();
object Student;
s1 Student;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If `class Car{ };`, how many objects are created with `Car c1, c2, c3;`?
1
2
3
0
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Objects are instances of a:
Function
Class
Variable
Array
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
An object is created in:
Runtime only
Compile time only
Both runtime and compile time
Neither
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is required to declare an object?
object
instance
None, only class name is needed
declare
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Multiple objects of the same class share:
Different member functions
Same member functions
Both different and same
None
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is true about object declaration?
Must use new keyword
May be declared like variables
Must always be initialized
None
Create a free account and access millions of resources
Similar Resources on Wayground
61 questions
Antennas

Quiz
•
University
62 questions
BIM-02

Quiz
•
University
55 questions
8.1.1 - Principles of Mechanical Engineering

Quiz
•
10th Grade - University
60 questions
Introduction to CSS Quiz

Quiz
•
University
58 questions
Ideal Gas Cycle and Marine Diesel Engines Quiz

Quiz
•
University
55 questions
PRESSURE CHANGE MEASUREMENT TESTING METHOD I

Quiz
•
7th Grade - University
59 questions
ELCTIVE

Quiz
•
University
Popular Resources on Wayground
12 questions
Unit Zero lesson 2 cafeteria

Lesson
•
9th - 12th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
20 questions
Lab Safety and Equipment

Quiz
•
8th Grade
13 questions
25-26 Behavior Expectations Matrix

Quiz
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Engineering
15 questions
Let's Take a Poll...

Quiz
•
9th Grade - University
2 questions
Pronouncing Names Correctly

Quiz
•
University
12 questions
Civil War

Quiz
•
8th Grade - University
18 questions
Parent Functions

Quiz
•
9th Grade - University
21 questions
Mapa países hispanohablantes

Quiz
•
1st Grade - University
19 questions
Primary v. Secondary Sources

Quiz
•
6th Grade - University
25 questions
Identifying Parts of Speech

Quiz
•
8th Grade - University
20 questions
Disney Trivia

Quiz
•
University