Search Header Logo

Quiz 4: functions in C++

Authored by K vijina

University

Used 5+ times

Quiz 4: functions in C++
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

A function __________ contains the statements that make up the function.

prototype

definition

call

expression

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

function is executed when it is

defined

prototyped

declared

called

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A _________ variable is declared outside all functions.

local

global

floating-point

counter

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a complete correct function definition?

int funct();

int funct(int x){ x = x +1; return x; }

void funct(int){ printf( “Hello”);

void funct(x){ printf( “Hello”); }

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the return type of the function with prototype: "int func(char x, float v, double t);"?

char

int

float

double

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?