Classes, Objects & Functions

Classes, Objects & Functions

University

15 Qs

quiz-placeholder

Similar activities

NAT-Q

NAT-Q

9th Grade - University

11 Qs

PHP OOP Quiz

PHP OOP Quiz

University

20 Qs

TechStackChallenge

TechStackChallenge

University

15 Qs

Windows Server Installation with DHCP, DNS, and AD

Windows Server Installation with DHCP, DNS, and AD

University

18 Qs

PPL 223 - (QUIZ 3) Data Types and Structures

PPL 223 - (QUIZ 3) Data Types and Structures

University

15 Qs

Data Structures and Algorithms Quiz

Data Structures and Algorithms Quiz

University

14 Qs

CHAPTER 2: SYSTEM ANALYSIS AND DESIGN

CHAPTER 2: SYSTEM ANALYSIS AND DESIGN

University

10 Qs

DSA (QUIZ 3) - Recursion

DSA (QUIZ 3) - Recursion

University

15 Qs

Classes, Objects & Functions

Classes, Objects & Functions

Assessment

Quiz

Information Technology (IT)

University

Medium

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?