2F-3 | Python Quiz | 14/11/2024

2F-3 | Python Quiz | 14/11/2024

University

20 Qs

quiz-placeholder

Similar activities

Kuis Ms Word 1

Kuis Ms Word 1

7th Grade - University

20 Qs

Quiz #2

Quiz #2

University

15 Qs

Table,Image formatting

Table,Image formatting

5th Grade - University

15 Qs

Soal Perencanaan Ruang Lingkup Proyek Perangkat Lunak

Soal Perencanaan Ruang Lingkup Proyek Perangkat Lunak

University

17 Qs

POST-TEST

POST-TEST

University

15 Qs

Pra-UTS KASDD

Pra-UTS KASDD

University

15 Qs

Kelas 8 - Halaman 10 (UH Bab 1)

Kelas 8 - Halaman 10 (UH Bab 1)

8th Grade - University

20 Qs

Recap Handout 3 & 4

Recap Handout 3 & 4

6th Grade - University

15 Qs

2F-3 | Python Quiz | 14/11/2024

2F-3 | Python Quiz | 14/11/2024

Assessment

Quiz

Information Technology (IT)

University

Practice Problem

Medium

Created by

Olzhas Toktassyn

Used 4+ times

FREE Resource

AI

Enhance your content in a minute

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

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

What will the following code output? print("Python", "Quiz", sep="*", end="123")

Python*Quiz123

Python*Quiz*123

Python * Quiz123

Python-Quiz-123

2.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

How can you get integer input from the user and add 10 to it in one line of code?

input() + 10

str(input()) + 10

int(input()) + 10

float(input()) + 10

3.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

What is the result of the expression 9 // 4.0 in Python?

2.0

2

3.0

3

4.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

What does the sep parameter in the print() function do when used with multiple string arguments?

Changes the end character

Joins the strings with the given separator

Adds a space between strings

Causes an error

5.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

Which operator can be used to perform floor division in Python?

/

//

%

**

6.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

What is the output of print(int("3.5") + 1)?

4.5

4

Error

5

7.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

What does print("A" * 3 + "B" * 2) produce as output?

ABBB

AABBB

AAABB

AAABBB

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?