Functions

Functions

University

20 Qs

quiz-placeholder

Similar activities

TEST1.PY

TEST1.PY

10th Grade - University

20 Qs

Excel Quiz

Excel Quiz

KG - University

15 Qs

ICT Short Quiz

ICT Short Quiz

University

20 Qs

QUIZ 2

QUIZ 2

University

20 Qs

C Programming Unit-1 Test-2

C Programming Unit-1 Test-2

University

20 Qs

Java Quiz 1

Java Quiz 1

University

20 Qs

quiz pertemuan 2 asik ddp

quiz pertemuan 2 asik ddp

University

15 Qs

QUIZ 1: REVIEW ON C

QUIZ 1: REVIEW ON C

University

15 Qs

Functions

Functions

Assessment

Quiz

Computers

University

Hard

Created by

Kasey Nguyen

Used 39+ 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 SELECT QUESTION

1 min • 1 pt

Select the correction function prototype from the following options. Select 2 correct answers.

void first();

void first()

void myFunction():

void myFunction();

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Fill in the blank: Function prototypes are also known as ____

function declarations

function assignments

function operations

function definitions

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Select a correct function call.

myValue(int 7);

myValue(7);

myValue(double, 7000);

myValue (4.2)

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Select the correct syntax for a function header that contains a parameter list.

void showTotal (int num1, int num2, num3)

void showTotal (int num1, num2, num3)

void showTotal (int num1, int num2, int num3)

void showTotal (num1, num2, num3)

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What type of statement will force the function to end immediately?

end;

terminate;

quit;

return;

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Fill in the blank:

Data can be returned from a function, back to the statement that called it, which is known as ____.

data-passing function

value-returning function

value-assignment function

data-populating function

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following function will return a value?

int sum (int val1, int val2)

{

return val1+val2;

}

void sum (int val1, int val2)

{

return sum;

}

void sum (int val1, int val2)

{

return val1+val2;

}

int sum (val1, val2)

{

return sum;

}

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?