
OOP2023_P1_B9A_March28
Authored by MR ARORA
Computers
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
Access all questions and much more by creating a free account
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
Already have an account?
Similar Resources on Wayground
10 questions
Round 3 - Emergin
Quiz
•
University
10 questions
HOW TECHNOLOGY WILL SHAPE THE FUTURE OF THE WORKPLACE
Quiz
•
University
10 questions
Data analytics basics
Quiz
•
University
10 questions
Session 1
Quiz
•
University
10 questions
SPRING INTRODUCTION
Quiz
•
University
10 questions
Computational Thinking - AQA A Level Computer Science
Quiz
•
10th Grade - University
10 questions
Web environments
Quiz
•
University
10 questions
ICC1 - Ada AZ-900 - Azure Fundamentals quiz 4
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
7 questions
Fragments, Run-ons, and Complete Sentences
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
10 questions
DNA Structure and Replication: Crash Course Biology
Interactive video
•
11th Grade - University
5 questions
Inherited and Acquired Traits of Animals
Interactive video
•
4th Grade - University
5 questions
Examining Theme
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University