day1

day1

Professional Development

13 Qs

quiz-placeholder

Similar activities

How Well Do You Know Glenn?

How Well Do You Know Glenn?

Professional Development

10 Qs

cnc part programming

cnc part programming

University - Professional Development

10 Qs

Among Us (The Skelds)

Among Us (The Skelds)

KG - Professional Development

15 Qs

Sports cars

Sports cars

KG - Professional Development

13 Qs

Online Learning Quiz

Online Learning Quiz

Professional Development

10 Qs

BUILDERS OF MODERN INDIA

BUILDERS OF MODERN INDIA

KG - Professional Development

11 Qs

Post Test Penyusunan LK 2022

Post Test Penyusunan LK 2022

Professional Development

10 Qs

Quiz 3

Quiz 3

Professional Development

10 Qs

day1

day1

Assessment

Quiz

Other

Professional Development

Hard

Created by

jahar fatima

Used 5+ times

FREE Resource

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code?

var1 = 1

var2 = 2

var3 = "3"

print(var1 + var2 + var3)


  • 6

  • 33

  • 123

  • Error. Mixing operators between numbers and strings are not supported

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following

x = 36 / 4 (3 + 2) 4 + 2

print(x)

  • 182.0

  • 37

  • 117

  • The Program executed with errors

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A string is immutable in Python?

Every time when we modify the string, Python Always create a new String and assign a new string to that variable.

  • True

  • False

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The in operator is used to check if a value exists within an iterable object container such as a list. Evaluate to True if it finds a variable in the specified sequence and False otherwise.

True

False

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code?

var= "James Bond"

print(var[ 2 : : -1 ])

  • Jam

  • dno

  • maJ

  • dnoB semaJ

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code?

listOne = [20, 40, 60, 80]

listTwo = [20, 40, 60, 80]

print(listOne == listTwo)

print(listOne is listTwo)

  • True
    True

  • True
    False

  • False
    True

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Can we use the “else” block for for loop?

for example:

for i in range(1, 5):

print(i)

else:

print("this is else block statement" )

  • Yes

  • No

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?