Search Header Logo

Kelas XII

Authored by Rizki Widodo

Computers

11th Grade

Used 2+ times

Kelas XII
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

52 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be displayed by the following Python code? x = 5 y = 'Hello' print(x + y)

5Hello

Hello5

10

Error

No output

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a numeric data type in Python?

string

float

boolean

list

dictionary

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To repeat a block of code 5 times, which control structure is most appropriate?

if ... else

while

for

switch

repeat ... until

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the function of len() in Python?

Change data type

Count characters in a string

Sort a list

Create a new function

Delete an element in a list

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be produced by the following Python code? angka = [1, 2, 3, 4, 5] print(angka[2:4])

[1, 2]

[2, 3]

[3, 4]

[4, 5]

[1, 2, 3, 4, 5]

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a numeric data type in Python?

int

float

complex

str

long

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The data type used to represent true or false values is...

int

float

str

bool

list

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?