
Unit 4 : Function 2
Quiz
•
Computers
•
University
•
Practice Problem
•
Medium
Norhamimi Hamdan
Used 1+ times
FREE Resource
Enhance your content in a minute
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the 'main' function in a C program?
To execute loops
To define global variables
To serve as the entry point of the program
To declare functions
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to call a function named 'first'?
first{}
call first;
execute first;
first();
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax for defining a function in C?
return_type function_name(parameters) { // body }
function_name(parameters) { // body }
function_name return_type(parameters) { // body }
function_name(parameters) return_type { // body }
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between function arguments and parameters?
Arguments are always integers, parameters can be any type
There is no difference
Parameters are declared in the definition function, arguments are passed to it
Arguments are declared in the function, parameters are passed to it
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type of variable can be accessed by all functions in a program?
Dynamic variable
Static variable
Global variable
Local variable
6.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Determine local variable?
declare outside the functions
declare inside the function body
All function can use
the variable only can be use inside the function body.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a recursive function?
A function that is defined inside another function
A function that cannot return a value
A function that calls itself
A function that calls another function
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Programacion Orientada a Objetos
Quiz
•
12th Grade - University
10 questions
Quiz Modul 10 - User Forms (1110)
Quiz
•
University
10 questions
Web-II-Loop and Function
Quiz
•
University
11 questions
Workshop_1
Quiz
•
University
10 questions
Neural Networks Quiz
Quiz
•
University
10 questions
Vocational English for Game Design
Quiz
•
University
10 questions
Funciones y Procedimientos Almacenados SQL
Quiz
•
University
10 questions
Programación II Parte 4
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
