stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
class1 Flashcards | StudBud
Explore
/
class1
class1
7 terms
·
StudBud Administration
·
31 plays
Imported from external platform
Flashcards
7 cards
F
Practice quiz
P
Host live
L
Questions
7
Answers
1
Which of the following is NOT a feature of OOP?
Encapsulation
Procedural programming
Inheritance
Polymorphism
2
What is a constructor in C++?
A special function that is automatically called when an object is created
A function that is called manually
A function used for mathematical operations
A function that returns an integer
3
What is Object-Oriented Programming (OOP)?
A non-modular programming approach
A structured programming method
A programming paradigm based on functions
A programming paradigm based on objects and classes
4
What is a class in C++?
A built-in function
A template for creating objects
A variable type
A preprocessor directive
5
What will be the output of this C++ code?
Compilation fails
No output
Error
Car class
6
Which of the following best describes function overloading?
Functions that have no parameters
Functions with the same name but different parameters
Functions that return multiple values
Functions that call themselves
7
What is an object in C++?
A function inside a class
A variable of a class type
A variable of type void
A pointer variable