C++ Functions

C++ Functions

6th - 8th Grade

11 Qs

quiz-placeholder

Similar activities

C# lesson10

C# lesson10

1st - 10th Grade

10 Qs

C++ Arrays

C++ Arrays

8th - 12th Grade

12 Qs

C++ Coding Problems

C++ Coding Problems

4th Grade - Professional Development

10 Qs

Programming

Programming

1st - 10th Grade

10 Qs

C++

C++

7th - 8th Grade

10 Qs

Variables in C++

Variables in C++

6th Grade

10 Qs

Recursivitate 2

Recursivitate 2

1st - 12th Grade

9 Qs

Reference and Pointers in C++

Reference and Pointers in C++

6th - 8th Grade

10 Qs

C++ Functions

C++ Functions

Assessment

Quiz

Science, Computers

6th - 8th Grade

Medium

Created by

Natalia Fumero

Used 611+ times

FREE Resource

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

A function can have _____ inside the parenthesis

loops

Arguments/Parameters

Braces

Types

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

A function that has no return type starts with:

int

void

Arguments

Braces

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

A function that returns a whole number starts with the word

int

void

string

{ }

4.

MULTIPLE CHOICE QUESTION

1 min • 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

5.

MULTIPLE CHOICE QUESTION

1 min • 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

6.

MULTIPLE CHOICE QUESTION

1 min • 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

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

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

True

False

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?