OOP2023_P1_B9A_March28

Quiz
•
Computers
•
University
•
Hard
MR ARORA
Used 1+ times
FREE Resource
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following is a limitation of using friend functions in C++?
They can access private members of the class
They can be called from anywhere in the program
They cannot be overloaded
They can lead to less secure code if used improperly.
2.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What is the purpose of constructors in C++?
To allocate memory for objects
To initialize the data members of objects
To deallocate memory for objects
To create new objects
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following is true about constant objects in C++?
The member functions of a constant object can modify the object.
A constant object cannot be used as an argument to a non-const member function.
The data members of a constant object can be modified.
A constant object can be created only with a parameterized constructor.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Default Constructor
Parameterized Constructor: 10
Destructor
Parameterized Constructor: 5
Destructor
Default Constructor
Parameterized Constructor: 10
Destructor
Destructor
Parameterized Constructor: 5
Destructor
Default Constructor
Parameterized Constructor: 10
Parameterized Constructor: 5
Destructor
Destructor
Destructor
Default Constructor
Parameterized Constructor: 10
Destructor
Parameterized Constructor: 5
Destructor
Destructor
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following is a disadvantage of using friend functions in C++?
It violates encapsulation
It makes the code difficult to read
It makes the code less efficient
None of the above
Similar Resources on Wayground
10 questions
Conceptos Básicos de internet y redes

Quiz
•
9th Grade - Professio...
7 questions
AZ-204_basics

Quiz
•
University
10 questions
Spring and Spring boot

Quiz
•
University
10 questions
Rappj2

Quiz
•
University
10 questions
CompTIA A+ 220-1001

Quiz
•
University
10 questions
Apps Script Quiz - Day 4 Lesson

Quiz
•
University
10 questions
Q4 - Comp Vision

Quiz
•
University
9 questions
Module 7-DHCPv4

Quiz
•
9th Grade - University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University