
Fundamentals of Computing Quiz

Quiz
•
Professional Development
•
Professional Development
•
Hard
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
Similar Resources on Wayground
12 questions
google docs

Quiz
•
Professional Development
10 questions
A.C CIRCUIT

Quiz
•
Professional Development
10 questions
NDP Training - Quiz 3

Quiz
•
Professional Development
6 questions
ABC is Easy as 123

Quiz
•
Professional Development
10 questions
Introduction to Underwriting

Quiz
•
Professional Development
10 questions
Power BI week 6

Quiz
•
Professional Development
10 questions
Introduction to TRIZ (Eng)

Quiz
•
Professional Development
11 questions
Total Rewards: Compensation and Benefits Quiz

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade