Unit 12: Types of function

Unit 12: Types of function

University

6 Qs

quiz-placeholder

Similar activities

C++ Functions

C++ Functions

University

10 Qs

Quiz6

Quiz6

University

10 Qs

Quiz Pemrograman C++

Quiz Pemrograman C++

University

10 Qs

C++ function and type casting

C++ function and type casting

University

6 Qs

Function Quiz 3

Function Quiz 3

University

10 Qs

Python with DataScience

Python with DataScience

7th Grade - University

10 Qs

Topic 4 - Recursive

Topic 4 - Recursive

University

10 Qs

Understanding Procedures in Python

Understanding Procedures in Python

9th Grade - University

10 Qs

Unit 12: Types of function

Unit 12: Types of function

Assessment

Quiz

Computers

University

Easy

Created by

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