Call by Reference Vs Call by Value

Call by Reference Vs Call by Value

11th Grade

30 Qs

quiz-placeholder

Similar activities

Quiz Pemrograman Python

Quiz Pemrograman Python

10th Grade - University

25 Qs

Quiz Jaringan Komputer

Quiz Jaringan Komputer

7th Grade - University

25 Qs

soal uh 9

soal uh 9

9th Grade - University

25 Qs

Sumatif Harian Berpikir Komputasional Kelas 4 SD

Sumatif Harian Berpikir Komputasional Kelas 4 SD

4th Grade - University

26 Qs

Ujian Koding & KA

Ujian Koding & KA

10th Grade - University

27 Qs

Year 8 Kodu Assessment

Year 8 Kodu Assessment

7th Grade - University

28 Qs

Computer Graphics and Infographics Quiz

Computer Graphics and Infographics Quiz

11th Grade

35 Qs

STS INFORMATIKA *

STS INFORMATIKA *

8th 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

AI

Enhance your content in a minute

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

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

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?