Search Header Logo

C++ Functions 2022

Authored by SATHYANARAYANA B

Computers

1st Grade

Used 4+ times

C++ Functions 2022
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A function can have _____ inside the parenthesis

loops

Arguments/Parameters

Braces

Types

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A function that has no return type starts with:

int

void

Arguments

Braces

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Fill in the blank to have this function work properly


_____ function ( ) {


int a = 4;

int b = 5;


cout<<a*b;


}

string

int

void

variable

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Fill in the blank to have this function work properly


_____ function ( ) {


string greeting = "Welcome to my game";


return greeting;


}

string

void

int

variable

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Fill in the blank to have this function work properly


_____ function ( ) {


int a;

cin >> a;


cout<<"You chose " << a <<endl;


}

string

void

int

variable

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

True or False. We can call functions inside of other functions.

True

False

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

True or False. A function that returns a string starts with the word void.

True

False

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?