python basics

python basics

9th - 12th Grade

11 Qs

quiz-placeholder

Similar activities

Python Basics

Python Basics

KG - University

15 Qs

Basic Programming Terminology Quiz

Basic Programming Terminology Quiz

10th Grade

10 Qs

year 8 lesson 2 quiz - python

year 8 lesson 2 quiz - python

8th - 10th Grade

14 Qs

2) Python Variables

2) Python Variables

8th - 11th Grade

16 Qs

Variables, Inputs and Concatenation

Variables, Inputs and Concatenation

9th Grade

16 Qs

Python Basics

Python Basics

KG - University

16 Qs

Python Intro

Python Intro

8th - 9th Grade

10 Qs

KS4 Programming Techniques (1)

KS4 Programming Techniques (1)

8th - 10th Grade

10 Qs

python basics

python basics

Assessment

Quiz

Computers

9th - 12th Grade

Easy

Created by

Kartikey Maheshwari

Used 2+ times

FREE Resource

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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?