Python Round 3

Python Round 3

University

11 Qs

quiz-placeholder

Similar activities

DAA quiz2

DAA quiz2

University

15 Qs

Kuis Dadakan ;)

Kuis Dadakan ;)

10th Grade - University

15 Qs

6-文件操作

6-文件操作

University

10 Qs

MS Excel - Day 04

MS Excel - Day 04

University

10 Qs

LA7.C7: Turtle Graphics

LA7.C7: Turtle Graphics

9th Grade - University

14 Qs

Basic on Operating System

Basic on Operating System

University

10 Qs

Excel_Test_bài 1

Excel_Test_bài 1

University

15 Qs

Recursion Practice, Recursion Practice, Recursion Practice...

Recursion Practice, Recursion Practice, Recursion Practice...

10th Grade - University

10 Qs

Python Round 3

Python Round 3

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Noor Malik

FREE Resource

AI

Enhance your content in a minute

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

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)

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?

Discover more resources for Computers