Unit 12: Types of function

Quiz
•
Computers
•
University
•
Easy
Abhishek Pandey
Used 1+ times
FREE Resource
6 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct syntax for declaring a function in C?
return_type function_name();
function_name return_type();
function_name();
return_type function_name;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the return type of a function that does not return any value?
float
void
char
int
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a function prototype?
Declaration of a function
Definition of a function
Execution of a function
function call possibly
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax to call a function named sum?
sum();
sum;
call sum;
sum[];
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an advantage of "call by address"?
Faster execution
Ability to modify the actual arguments
No need for pointers
Less memory usage
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In call by value, changes made inside the function definition
Do not affect the original variables
Modify the memory address of variables
Are reflected in the caller function
Always result in compilation errors
Similar Resources on Wayground
8 questions
C++ pointers

Quiz
•
University
10 questions
DEBUG THE CODE

Quiz
•
University
7 questions
Sec-B Quiz-3

Quiz
•
University
10 questions
Exploring Python: Input and Output Essentials

Quiz
•
9th Grade - University
10 questions
Methods

Quiz
•
University
10 questions
Basic C++ Program Structures

Quiz
•
University
10 questions
Python

Quiz
•
University
10 questions
C Viva

Quiz
•
University
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade