Search Header Logo

Long Quiz

Authored by ZPPSU VLs

Computers

University

Used 3+ times

Long Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main purpose of a function in programming?

To create loops

To make programs slower

To reuse and organize code

To remove variables

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of function is provided by the C++ library?

User-defined

Built-in

Custom

Manual

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct term for data sent to a function?

Parameters

Arguments

Pointers

Conditions

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the return type in a function indicate?

Number of arguments

Code inside the function

Type of value the function returns

How many times the function runs

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What part of the function contains the actual code to execute?

Declaration

Parameter list

Body

Return type

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a user-defined function?

main()

sqrt()

displayMessage()

cout

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct order of a function definition?

functionName, returnType, parameters

returnType, parameters, functionName

returnType, functionName, parameters

parameters, returnType, functionName

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?