Fundamentals of Computing Quiz

Fundamentals of Computing Quiz

Professional Development

8 Qs

quiz-placeholder

Similar activities

google docs

google docs

Professional Development

12 Qs

A.C CIRCUIT

A.C CIRCUIT

Professional Development

10 Qs

Power BI week 6

Power BI week 6

Professional Development

10 Qs

SQL ka "खिड़की" function ;D

SQL ka "खिड़की" function ;D

Professional Development

12 Qs

Introduction to TRIZ (Eng)

Introduction to TRIZ (Eng)

Professional Development

10 Qs

Total Rewards: Compensation and Benefits Quiz

Total Rewards: Compensation and Benefits Quiz

Professional Development

11 Qs

Office T&T

Office T&T

Professional Development

12 Qs

Fundamentals of Computing Quiz

Fundamentals of Computing Quiz

Assessment

Quiz

Professional Development

Professional Development

Hard

Created by

NURUL JAMAL

FREE Resource

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a function in programming?

A method of error handling

A set of instructions to perform a specific task

A type of variable

A data structure

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of a function signature?

To define the function's return type and name

To execute the function

To declare global variables

To create a loop

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the 'return' statement do in a function?

Ends the program

Returns a value to the calling function

Declares a variable

Prints output to the console

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In C++, what is a user-defined function?

A function created by the programmer

A function that only returns void

A function that cannot be modified

A function that is built into the language

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to call a function named 'calculate'?

calculate();

execute calculate;

calculate;

call calculate();

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the following code output?

int x = 5; cout << x;

x

5

Error

None

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the scope of a local variable?

In all functions

Only in the main function

Only within the function it is defined

Throughout the entire program

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of function prototypes?

To define the function's body

To declare the function before it is called

To execute the function

To create global variables