Search Header Logo

c++ functions

Authored by Lakshmi B

Computers

University

c++ functions
AI

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

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers