Functions in C++

Functions in C++

9th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

INTRO TO CSS QUIZ

INTRO TO CSS QUIZ

9th Grade

15 Qs

Tin học 9-Bài 15

Tin học 9-Bài 15

9th Grade

10 Qs

فيجوال بيسك

فيجوال بيسك

10th Grade

11 Qs

TIN 11 - PYTHON - PHÉP TOÁN - BIỂU THỨC - CÂU LỆNH GÁN

TIN 11 - PYTHON - PHÉP TOÁN - BIỂU THỨC - CÂU LỆNH GÁN

11th Grade

10 Qs

Ulangan harian 1 Algoritma dan Pemrograman

Ulangan harian 1 Algoritma dan Pemrograman

12th Grade - University

13 Qs

QBASIC Programming

QBASIC Programming

5th - 10th Grade

10 Qs

Latihan Soal PTS Kelas 6 Semester 1

Latihan Soal PTS Kelas 6 Semester 1

10th Grade

10 Qs

Parcial 2 - Robótica

Parcial 2 - Robótica

11th Grade

10 Qs

Functions in C++

Functions in C++

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Medium

Created by

Robert B.A

Used 8+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A block of code that performs a ____ purpose is known as a function

Specific

General

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

XX functionName (parameter1, parameter2,...) { // function body } what does XX represents?

function type

function call

return type

function

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

void greet() {

cout << "Hello World";

}

From the above code, what is the function name?

void

greet

cout

greet() { cout << "Hello World"; }

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

void greet() {

cout << "Hello World";

}

From the given block of code, what is the return type of this function?

void

greet

greet()

No return type

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int main() {

greet();

}

What does the given block of codes represents

function definition

return type

function call

Just a function

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are two types of functions in C++?

User-defined and Built in

User defined and Function definition

Built-in function and function prototype

function with return and int function

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

function is executed when it is

defined

called

declared

prototyped

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

Already have an account?