Long Quiz

Long Quiz

University

30 Qs

quiz-placeholder

Similar activities

Kelas IoT_

Kelas IoT_

University

25 Qs

World Computer Literacy Day Quizz

World Computer Literacy Day Quizz

University

25 Qs

Python Module 1

Python Module 1

University

25 Qs

PYTHON CONTEST

PYTHON CONTEST

University

25 Qs

SQL MIDTERM EXAM

SQL MIDTERM EXAM

University

25 Qs

HCI 323 - MIDTERM EXAM

HCI 323 - MIDTERM EXAM

University

31 Qs

PreAssessment_Computer Basics

PreAssessment_Computer Basics

University

25 Qs

TechZoom24-BugBash_Prelims

TechZoom24-BugBash_Prelims

University

25 Qs

Long Quiz

Long Quiz

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

ZPPSU VLs

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

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

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?