Python Round 3

Python Round 3

University

11 Qs

quiz-placeholder

Similar activities

TIC

TIC

University

10 Qs

Tin 8/1

Tin 8/1

KG - University

10 Qs

Administrasi Server Jaringan

Administrasi Server Jaringan

12th Grade - University

15 Qs

Ulangan harian 1 Algoritma dan Pemrograman

Ulangan harian 1 Algoritma dan Pemrograman

12th Grade - University

13 Qs

Lập trình trực quan

Lập trình trực quan

University

15 Qs

PHP QUIZ

PHP QUIZ

University

14 Qs

JSPS Competition Hackathon - Scratch Language - Grade 1

JSPS Competition Hackathon - Scratch Language - Grade 1

2nd Grade - University

10 Qs

Repaso U1

Repaso U1

University

16 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?