Unit 12: Types of function

Unit 12: Types of function

University

6 Qs

quiz-placeholder

Similar activities

SUMIFs and COUNTIFs Functions Quiz

SUMIFs and COUNTIFs Functions Quiz

9th Grade - University

10 Qs

FCP Series 4

FCP Series 4

University

10 Qs

Functions in Python

Functions in Python

University

10 Qs

DBMS Lab-Model Exam-Viva

DBMS Lab-Model Exam-Viva

University

10 Qs

CSNP-04103 Chapter 6 - Functions

CSNP-04103 Chapter 6 - Functions

University

10 Qs

programming

programming

University

10 Qs

ECE-C Quiz _3

ECE-C Quiz _3

University

10 Qs

C++ function and type casting

C++ function and type casting

University

6 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