Unit 5: call by value

Quiz
•
Computers
•
University
•
Easy
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
Similar Resources on Wayground
12 questions
Python Functions and Docstrings Quiz

Quiz
•
University
10 questions
Compiler Parsing Techniques

Quiz
•
University
11 questions
Revision C class

Quiz
•
University
11 questions
Programming Techniques in C++ Final Review

Quiz
•
University
10 questions
Recursion Function Usage

Quiz
•
University
10 questions
Recursion Practice, Recursion Practice, Recursion Practice...

Quiz
•
10th Grade - University
10 questions
FCP Series 4

Quiz
•
University
10 questions
Functions C

Quiz
•
University
Popular Resources on Wayground
12 questions
Unit Zero lesson 2 cafeteria

Lesson
•
9th - 12th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
20 questions
Lab Safety and Equipment

Quiz
•
8th Grade
13 questions
25-26 Behavior Expectations Matrix

Quiz
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
15 questions
Let's Take a Poll...

Quiz
•
9th Grade - University
2 questions
Pronouncing Names Correctly

Quiz
•
University
12 questions
Civil War

Quiz
•
8th Grade - University
18 questions
Parent Functions

Quiz
•
9th Grade - University
21 questions
Mapa países hispanohablantes

Quiz
•
1st Grade - University
19 questions
Primary v. Secondary Sources

Quiz
•
6th Grade - University
25 questions
Identifying Parts of Speech

Quiz
•
8th Grade - University
20 questions
Disney Trivia

Quiz
•
University