XI-A1 FLOW OF CONTROL G6

XI-A1 FLOW OF CONTROL G6

11th Grade

21 Qs

quiz-placeholder

Similar activities

Начало программирования и Python.

Начало программирования и Python.

10th Grade - University

16 Qs

Экзамен C++ ОП

Экзамен C++ ОП

9th - 12th Grade

17 Qs

adminstrasi sistem jaringan

adminstrasi sistem jaringan

11th Grade

20 Qs

asessement formatif materi membuat algoritma penyelesaian

asessement formatif materi membuat algoritma penyelesaian

11th Grade

21 Qs

Tes Sumatif 2 informatika kls 8

Tes Sumatif 2 informatika kls 8

8th Grade - University

20 Qs

PTS Informatika Semester 2 2024-2025

PTS Informatika Semester 2 2024-2025

10th Grade - University

20 Qs

Quiz KISI KISI PTS PEMROGRAMAN TEKS GRAFIS MULT

Quiz KISI KISI PTS PEMROGRAMAN TEKS GRAFIS MULT

11th Grade

20 Qs

Unit 3: Basic Python & Console Interaction

Unit 3: Basic Python & Console Interaction

9th - 12th Grade

21 Qs

XI-A1 FLOW OF CONTROL G6

XI-A1 FLOW OF CONTROL G6

Assessment

Quiz

Information Technology (IT)

11th Grade

Practice Problem

Hard

Created by

Pulkit 1292

FREE Resource

AI

Enhance your content in a minute

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

21 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. 1. What is the purpose of an elif clause in Python?

The elif clause is a synonym for the else clause.
The elif clause is used to terminate a loop.

To comment code

To make an alternate branch if the if condition is false

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. 2. L = "45" → datatype of L?

boolean
string
float
integer

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function converts a string "123" into integer?

int('123')
list('123')
float('123')
str(123)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. 4. x = 5

if x > 10:

print("A")

elif x > 3:

print("B")

else:

print("C")

B
A
C
D

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. 5. What’s the difference between elif and else?

'elif' is used for loops, while 'else' is not.
The difference is that 'elif' checks an additional condition, while 'else' executes when no previous conditions are true.
'elif' can only be used once, but 'else' can be used multiple times.
'elif' is a synonym for 'else' and has no functional difference.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. 6. Which of these keywords marks a null operation?

PASS

CONTINUE

BREAK

ELSE

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. 7. x = float(input())

    if (x == 1):

    print("Yes")

    elif (x >= 2):

    print("Maybe")

    else:

    print("No")

    IF USER INPUT 1.5 THEN WHAT WILL BE OUTPUT

YES

NO

MAYBE

NOTHING PRINTED

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?