Search Header Logo

Python Basic Level 2 | RoboticSchools

Authored by Robotic Schools

Computers

10th Grade

Used 7+ times

Python Basic Level 2 | RoboticSchools
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

70 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 10 pts

Which can be an Identifier among them in Python?

$123

_abc

@fg

1a

2.

MULTIPLE CHOICE QUESTION

1 min • 10 pts

What will be the output of the following Python code?

>>>list1 = [1, 3]

>>>list2 = list1

>>>list1[0] = 4

>>>print(list2)

[1, 4]

[1, 3, 4]

[4, 3]

[1, 3]

3.

MULTIPLE CHOICE QUESTION

1 min • 10 pts

Which of the following is a Python tuple?

{1, 2, 3}

{}

(1, 2, 3)

[1, 2, 3]

4.

MULTIPLE CHOICE QUESTION

1 min • 10 pts

  1. Predict the output
    str1="helloworld"

    str1[::-1]

dlrowolleh

hello

world

helloworld

5.

MULTIPLE CHOICE QUESTION

1 min • 10 pts

What is the output of the following Code

aList = [4, 8, 12, 16]

aList[1:4] = [20, 24, 28]

print(aList)

[4, 20, 24, 28, 8, 12, 16]

[4, 20, 24, 28]

[20,24,28,12,16]

[4,20,24,28,16]

6.

MULTIPLE CHOICE QUESTION

1 min • 10 pts

Which is known as simple assignment operator?

==

=

+=

#

7.

MULTIPLE CHOICE QUESTION

1 min • 10 pts

What will the output be from the following code?
print("Hello world!\nHello world!")

Hello world! Hello world!
Hello world!
Hello world!
SyntaxError
Hello world!

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?