Python Round 3

Python Round 3

University

11 Qs

quiz-placeholder

Similar activities

Tuan 3 - Python

Tuan 3 - Python

KG - Professional Development

10 Qs

Python

Python

University

15 Qs

Functions and Modules

Functions and Modules

University

10 Qs

Python Programming Intermediate-1

Python Programming Intermediate-1

University

15 Qs

Scratch Text Operators

Scratch Text Operators

KG - Professional Development

15 Qs

Python quiz

Python quiz

10th Grade - Professional Development

10 Qs

Intermediate Python

Intermediate Python

University

15 Qs

KODEKIDDO HACK #MLH3

KODEKIDDO HACK #MLH3

4th Grade - University

10 Qs

Python Round 3

Python Round 3

Assessment

Quiz

Computers

University

Hard

Created by

Noor Malik

FREE Resource

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

How do you open a file named "myfile.txt" in read mode in Python?

 

file.open("myfile.txt", "r")

open("myfile.txt", "r")

open.file("myfile.txt", "r")

2.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

Which of these collections defines a LIST?

("apple", "banana", "cherry")

["apple", "banana", "cherry"]

{"apple", "banana", "cherry"}

{"name": "apple", "color": "green"}

3.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

Which of these collections defines a TUPLE?

{"apple", "banana", "cherry"}

["apple", "banana", "cherry"]

("apple", "banana", "cherry")

{"name": "apple", "color": "green"}

4.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

Which collection is ordered, changeable, and allows duplicate members?

LIST

TUPLE

SET

DICTIONARY

5.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

Which of these collections defines a DICTIONARY?

{"apple", "banana", "cherry"}

["apple", "banana", "cherry"]

{"name": "apple", "color": "green"}

("apple", "banana", "cherry")

6.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

Which of these collections defines a SET?

["apple", "banana", "cherry"]

("apple", "banana", "cherry")

{"apple", "banana", "cherry"}

{"name": "apple", "color": "green"}

7.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

How do you start writing a while loop in Python?

while x > y:

while x > y {x > y

while {while (x > y)

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?