c++ functions

c++ functions

University

5 Qs

quiz-placeholder

Similar activities

Quiz 3

Quiz 3

University

10 Qs

C++ Chapter 6

C++ Chapter 6

University

10 Qs

FIND THE KEY

FIND THE KEY

University

10 Qs

Weekly Contest #8 - TechXNinjas

Weekly Contest #8 - TechXNinjas

University

10 Qs

C Program Array and strings

C Program Array and strings

University

10 Qs

Unit -1 Assignment -2

Unit -1 Assignment -2

University

10 Qs

Functions C

Functions C

University

10 Qs

Java Methods and Constructors

Java Methods and Constructors

University

10 Qs

c++ functions

c++ functions

Assessment

Quiz

Computers

University

Hard

Created by

Lakshmi B

FREE Resource

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the default return value of functions in C++?

char
float
int
void

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the 'void' keyword in C++ functions?

To indicate that the function does not return a value

To specify the return type as an integer

To define a function that takes no arguments

To declare a function as private

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

From which function the execution of a C++ program starts?

init() function

start() function

main() function

begin() function

4.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which of the following is important in a function?

Return Type

Function Name

parameter list

all of these

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When do we define the default values for a function?

In the function declaration

In the function call
After the function execution
During the function testing