Unit 5: call by value

Unit 5: call by value

University

7 Qs

quiz-placeholder

Similar activities

TPG Basics of web3 and programming

TPG Basics of web3 and programming

University

10 Qs

Unit6-Revision3-W3C & WAI

Unit6-Revision3-W3C & WAI

University

12 Qs

FST Class 2023- Quiz 2

FST Class 2023- Quiz 2

University

10 Qs

Understanding Internet Protocol

Understanding Internet Protocol

KG - University

10 Qs

CSNP 04103 C++ Midterm preparation

CSNP 04103 C++ Midterm preparation

University - Professional Development

11 Qs

Google Aptitude Test

Google Aptitude Test

KG - University

10 Qs

Revision R Programming

Revision R Programming

University

10 Qs

PMBOK Quiz

PMBOK Quiz

KG - 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?