
Classes, Objects & Functions

Quiz
•
Information Technology (IT)
•
University
•
Medium
Dr.Jeyanthi P
Used 5+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following best describes function overloading in C++?
Defining functions with the same name and same parameters
Defining multiple functions with the same name but different parameter lists
Defining functions with the same name but different return types only
Using functions without return types
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is required for function overloading to occur?
Same function name but different parameter list
Different function names with same parameter list
Same function name and same parameter list
Functions having same return type
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you define a member function outside a class?
Using @ symbol
Using the scope resolution operator (::)
Using arrow operator (->)
Using dot operator (.)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to define a static data member?
const
register
static
extern
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements about static data members is true?
Each object has its own copy of static data members
Static members can only be used within constructors
Static members cannot be initialized
Static data members are shared among all objects of the class
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can a static member function be called?
Only through an object
Through an inherited class only
Using class name and scope resolution operator
Using 'this' pointer
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following cannot be accessed by a static member function?
Static data members
Global variables
Non-static data members
Static member functions
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
C# Quiz Time

Quiz
•
University
20 questions
Prototyping Model in SDLC Quiz -SLT

Quiz
•
University
20 questions
MS Excel

Quiz
•
11th Grade - University
10 questions
Экзамин

Quiz
•
University
20 questions
DSA (QUIZ 6) Hashing, Graphs, Advanced Graph Algorithms, and DP

Quiz
•
University
10 questions
FO Dasar - Quiz

Quiz
•
11th Grade - University
20 questions
RIDDLE_IT_OUT

Quiz
•
University
11 questions
Arduino Basics: Inputs and Outputs Quiz

Quiz
•
12th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University