Search Header Logo

Unit 5: call by value

Authored by Abhishek Pandey

Computers

University

Used 2+ times

Unit 5: call by value
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?