Unit 5: call by value

Unit 5: call by value

University

7 Qs

quiz-placeholder

Similar activities

programming

programming

University

10 Qs

Enumeration and Recursion

Enumeration and Recursion

11th Grade - University

12 Qs

Recursion Initiation

Recursion Initiation

11th Grade - Professional Development

10 Qs

Q3 - Comp Vision

Q3 - Comp Vision

University

10 Qs

AP Computer Science A Recursive

AP Computer Science A Recursive

10th Grade - University

10 Qs

Class 12 Recursion

Class 12 Recursion

12th Grade - University

10 Qs

Latihan Rekursif

Latihan Rekursif

University

12 Qs

Recurssion unit 5

Recurssion unit 5

University

3 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