Python Fundamentals Assessment

Python Fundamentals Assessment

University

13 Qs

quiz-placeholder

Similar activities

Intro to DDP2

Intro to DDP2

University

10 Qs

AlgoPro Python - Sesi 1

AlgoPro Python - Sesi 1

University

10 Qs

Python Quiz For Starters

Python Quiz For Starters

3rd Grade - Professional Development

17 Qs

Python Strings and Variables

Python Strings and Variables

5th Grade - University

8 Qs

ATP-lab viva

ATP-lab viva

University

10 Qs

Mastering Python Loops

Mastering Python Loops

University

10 Qs

HIMSI Webinar Series 4

HIMSI Webinar Series 4

University

15 Qs

SCCB Study Skills - Python

SCCB Study Skills - Python

University

10 Qs

Python Fundamentals Assessment

Python Fundamentals Assessment

Assessment

Quiz

Other

University

Easy

Created by

Joshua Miguel Abis

Used 24+ times

FREE Resource

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

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?