Unit 5: call by value

Unit 5: call by value

University

7 Qs

quiz-placeholder

Similar activities

ICT450-TOPIC 1

ICT450-TOPIC 1

University

12 Qs

CID421 Introduction to 3D CAD SOLIDWORK

CID421 Introduction to 3D CAD SOLIDWORK

University

12 Qs

OCS752_CP_MODEL 1_PART B (16.10.2020)

OCS752_CP_MODEL 1_PART B (16.10.2020)

University

10 Qs

Initial Assessment

Initial Assessment

12th Grade - University

10 Qs

Make DevOps, not DevUps

Make DevOps, not DevUps

University

10 Qs

E-R model

E-R model

University

10 Qs

CSE205-DCN-QUIZ-UNIT-5

CSE205-DCN-QUIZ-UNIT-5

University

10 Qs

OS QUIZ(UNIT-III)

OS QUIZ(UNIT-III)

University

10 Qs

Unit 5: call by value

Unit 5: call by value

Assessment

Quiz

Computers

University

Practice Problem

Easy

Created by

Abhishek Pandey

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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?