C++ Functions 2022

C++ Functions 2022

1st Grade

20 Qs

quiz-placeholder

Similar activities

The Mouse

The Mouse

KG - 3rd Grade

20 Qs

computers

computers

KG - Professional Development

15 Qs

Trắc nghiệm excel - 1

Trắc nghiệm excel - 1

KG - University

20 Qs

ĐỀ KIỂM TRA HỌC KÌ 2 - TIN HỌC 5 - LÝ THUYẾT

ĐỀ KIỂM TRA HỌC KÌ 2 - TIN HỌC 5 - LÝ THUYẾT

1st - 5th Grade

20 Qs

Word Processing Lessons 3 and 4 Review

Word Processing Lessons 3 and 4 Review

KG - University

20 Qs

Kuiz Materi HTML Dasar

Kuiz Materi HTML Dasar

1st - 3rd Grade

20 Qs

Robotics 1 & 2 Review

Robotics 1 & 2 Review

KG - University

20 Qs

MS OFFICE

MS OFFICE

1st - 5th Grade

22 Qs

C++ Functions 2022

C++ Functions 2022

Assessment

Quiz

Computers

1st Grade

Hard

Created by

SATHYANARAYANA B

Used 4+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?