Unit 5: call by value

Unit 5: call by value

University

7 Qs

quiz-placeholder

Similar activities

C MCQ's for Interview

C MCQ's for Interview

University

10 Qs

predefined functions

predefined functions

University

10 Qs

Function -1

Function -1

5th Grade - Professional Development

12 Qs

Moringa JavaScript Iteration

Moringa JavaScript Iteration

9th Grade - Professional Development

10 Qs

Lesson 6 Part 1: Functions

Lesson 6 Part 1: Functions

University

7 Qs

Techno India University Python Quiz Contest

Techno India University Python Quiz Contest

University

10 Qs

Unit 12: Types of function

Unit 12: Types of function

University

6 Qs

Unit 5: call by value

Unit 5: call by value

Assessment

Quiz

Computers

University

Easy

Created by

Abhishek Pandey

Used 2+ times

FREE Resource

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default method of passing arguments in C?

Call by Address

Call by Value

calling itself

recursion

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Call by Value, changes made to parameters in the function:

Affect the original arguments

Do not affect the original arguments

Change the data type

Cause a runtime error

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used to access the address of a variable?

^

*

$

&

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method allows modifying the actual arguments?

Call by Address

Call by Value

Call by Print

self call

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Every recursive function must have:

Loop

Exit condition (base case)

Pointer

Global variable

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens if a recursive function has no base case?

Infinite recursion leading to stack overflow

Compiles but gives a warning

Run once

Gives segmentation fault at compile time

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is recursion?

A loop inside a function

A function calling another function

A function not returning a value

A function calling itself