Call by Reference Vs Call by Value

Call by Reference Vs Call by Value

11th Grade

30 Qs

quiz-placeholder

Similar activities

MID TEST MATERI DEKSTOP DAN WEB APPLICATIONS

MID TEST MATERI DEKSTOP DAN WEB APPLICATIONS

11th Grade

25 Qs

функция рус

функция рус

11th Grade

30 Qs

Code HS Computer SCi 114.1.1 JavaScript Final Exam Pt. 1

Code HS Computer SCi 114.1.1 JavaScript Final Exam Pt. 1

9th - 12th Grade

25 Qs

Perkakas Analisis Data dan Web Scraping

Perkakas Analisis Data dan Web Scraping

10th Grade - University

30 Qs

KELAS 6 Analisis Data B. Langkah-Langkah Analisis Data

KELAS 6 Analisis Data B. Langkah-Langkah Analisis Data

6th Grade - University

25 Qs

Y9 Python Review

Y9 Python Review

9th Grade - University

30 Qs

Review Python_G8

Review Python_G8

8th Grade - University

28 Qs

QUIZ TIK EXCEL

QUIZ TIK EXCEL

10th Grade - University

25 Qs

Call by Reference Vs Call by Value

Call by Reference Vs Call by Value

Assessment

Quiz

Information Technology (IT)

11th Grade

Hard

Created by

Krishna Sekhar

FREE Resource

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How does Python pass primitive data types to a function?
By reference
By value
By pointer
By memory address

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens when an integer is passed to a function?
The original value can be changed
The value remains unchanged
The value is deleted
The value is multiplied

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does "pass by reference" mean in Python?
Copying the entire data
Passing a reference to mutable data types
Passing data by memory location
Deleting the original data

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data types are passed by value in Python?
Lists and dictionaries
Tuples and strings
Integers and booleans
Sets and lists

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the .copy() method?
To delete a list
To create a new copy of a list
To modify a list
To sort a list

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you check if two variables reference the same data?
Using '=='
Using 'is' operator
Using 'type()'
Using 'id()'

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the 'id()' function do in Python?
Deletes a variable
Generates a random number
Provides a unique identifier for an object
Counts list elements

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?