IT 403 - QUIZ 2

IT 403 - QUIZ 2

University

25 Qs

quiz-placeholder

Similar activities

GEE-109 LIVING IN AN IT ERA

GEE-109 LIVING IN AN IT ERA

University

20 Qs

MS2024 Pre-Quiz #5

MS2024 Pre-Quiz #5

University

20 Qs

Understanding Linux File Permissions

Understanding Linux File Permissions

10th Grade - University

20 Qs

"Mahal kong NVSU" Quiz Bee

"Mahal kong NVSU" Quiz Bee

University

20 Qs

Internet and App script

Internet and App script

5th Grade - University

22 Qs

PPL (QUIZ 6) Memory Management Quiz

PPL (QUIZ 6) Memory Management Quiz

University

20 Qs

LogoNOVA (FYIT Logo Quiz)

LogoNOVA (FYIT Logo Quiz)

University

20 Qs

Kuis Data Science Pertemuan 1

Kuis Data Science Pertemuan 1

University

20 Qs

IT 403 - QUIZ 2

IT 403 - QUIZ 2

Assessment

Quiz

Information Technology (IT)

University

Medium

Created by

Mark Jesus

Used 5+ times

FREE Resource

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When importing a module using from module_name import *, it automatically imports all functions, variables, and classes without any namespace conflicts.

True

False

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Tuples are immutable, which means you cannot modify individual elements, but you can reassign the entire tuple variable to a new tuple.

True

False

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

The finally block in exception handling will execute even if a return statement is encountered in the try block.

True

False

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

When a function parameter has a default value, it must be placed after all parameters without default values in the function definition.

True

False

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

The __init.py__ file in a Python package is required to make Python treat the directory as a package, and it must contain import statements for all modules in that package.

True

False

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following best explains why tuple unpacking is considered a powerful feature in Python?

It allows tuples to be modified after creation

It enables elegant assignment of multiple variables in a single operation

It automatically converts tuples to lists for easier manipulation

It provides better memory management than individual variable assignments

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the context of variable scope, what happens when a function tries to modify a global variable without using the global keyword?

Python raises a NameError immediately

The function creates a local variable with the same name, leaving the global variable unchanged

The global variable is automatically modified

Python raises a SyntaxError during compilation

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?