Python Basics

Python Basics

6th Grade - University

10 Qs

quiz-placeholder

Similar activities

Sumatif Harian 3

Sumatif Harian 3

7th Grade

12 Qs

Determining System Requirements

Determining System Requirements

University

11 Qs

Threats to Data

Threats to Data

9th - 12th Grade

11 Qs

HEALTH AND SAFETY 9

HEALTH AND SAFETY 9

7th - 9th Grade

11 Qs

LEDs on micro:bit

LEDs on micro:bit

8th Grade

15 Qs

Alat - Alat Fiber Optic dan Fungsinya

Alat - Alat Fiber Optic dan Fungsinya

10th Grade

10 Qs

INTO Artificial Intelligence

INTO Artificial Intelligence

University - Professional Development

10 Qs

ICT Grade 8

ICT Grade 8

8th Grade

10 Qs

Python Basics

Python Basics

Assessment

Quiz

Computers

6th Grade - University

Hard

Created by

Sreelakshmi Sridhar

Used 16+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

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!

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

Already have an account?