Search Header Logo

Python Fundamentals Assessment

Authored by Joshua Miguel Abis

Other

University

Used 24+ times

Python Fundamentals Assessment
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax to output "Hello World" in Python

console.log('Hello World')

write('Hello World')

puts 'Hello World'

b) print("Hello World")

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What data type is the result of: type(3.5)? a) int b) float c) str d) bool

list

char

dict

b) float

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a mutable data type in Python? a) tuple b) int c) list d) str

b) float

a) set

c) list

d) complex

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of this code? x = 5 if x > 3: print("A") elif x < 10: print("B") a) A b) B c) AB d) Error

A

No output

C

A and B

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

5. Which keyword is used to skip the rest of the code inside a loop for the current iteration? a) break b) exit c) pass d) continue

d) continue

loop

skip

halt

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

continue stops the loop entirely.

True

False

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Strings are immutable in Python.

True

False

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?