python basics

python basics

9th - 12th Grade

11 Qs

quiz-placeholder

Similar activities

HTML

HTML

8th - 12th Grade

15 Qs

Q1 M 2 - TOPIC 2 / Check your understanding

Q1 M 2 - TOPIC 2 / Check your understanding

10th Grade

10 Qs

ICT - Networks and communication

ICT - Networks and communication

9th Grade

11 Qs

4Q Week3 Review Quiz (Who missed the Quiz ONLY))

4Q Week3 Review Quiz (Who missed the Quiz ONLY))

9th Grade

10 Qs

LET's Check your knowledge on E-Governance & E-Commerce

LET's Check your knowledge on E-Governance & E-Commerce

10th Grade

11 Qs

Cell Phone Vocabulary

Cell Phone Vocabulary

9th - 12th Grade

12 Qs

Networking Quiz

Networking Quiz

8th - 9th Grade

15 Qs

HARDWARE AND SOFTWARE

HARDWARE AND SOFTWARE

2nd - 10th Grade

10 Qs

python basics

python basics

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Medium

Created by

Kartikey Maheshwari

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

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

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

string = 'Basic python'

what will be the output of [2:3:-1]

'is'

''

's'

'si'

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

what is slicing

Used to extraction of int , float , complex,etc

used for adding 2 slicing portion as a pizza

Nothing

Used for Extracting anything from a given string or multiple if written explicitly

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Is Python case sensitive

True

False

4.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

is def and class same in python

True

False

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

def class1(h123):

pass

Here h123 is what ?

Argument

Funtion

class

Normal syntax

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

a = (3+2)//(1*2)

3

4

1

2

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

give output

print(r'a\n1')

Print nothing

Error

a

1

a\n1

Answer explanation

print(r'a\n1')

Here r is a raw formatting in python

which can be used to not set the new line feature for \n instead it just ignore

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?