Search Header Logo

Python Basics

Authored by Sreelakshmi Sridhar

Computers

6th Grade - University

10 Questions

Used 16+ times

Python Basics
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Select the Data Type which is not present in Python Language

Integer

Boolean

Number

Float

String

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What letter will be printed on the screen after running this code:

x = 'Python Programming'

l =x[-4:-1]

Error

ming

Prog

min

ing

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The string data type is an immutable data type

True

False

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

word = "amazing"


For the given string if we execute word[2:5] , what would the result be?

amaz

mazi

azi

azin

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

For strings, the + operator represents

Concatenation

Addition

Appending

Recantation

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following statement?


print(3 * "Hello")

Error

3Hello

Hello3

HelloHelloHellow

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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?