Slice Python Quiz

Slice Python Quiz

6th - 8th Grade

10 Qs

quiz-placeholder

Similar activities

python selection

python selection

8th Grade

11 Qs

Python Data types

Python Data types

5th - 12th Grade

10 Qs

str vs int

str vs int

8th Grade

10 Qs

Review Python

Review Python

8th Grade

15 Qs

L1 Console, Variables and Creating a Program

L1 Console, Variables and Creating a Program

8th Grade

10 Qs

Data Types

Data Types

5th - 8th Grade

10 Qs

Python Casting and Input

Python Casting and Input

8th - 11th Grade

15 Qs

N5 SDD - Python input and output

N5 SDD - Python input and output

7th - 11th Grade

12 Qs

Slice Python Quiz

Slice Python Quiz

Assessment

Quiz

Computers

6th - 8th Grade

Medium

Created by

Ridhaan Mishra

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is slicing in python?

To slice vegetables

A slice object is used to specify how to slice a sequence

A math library item

None of these

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one is the slice command?

.slice

slice()

slice**

slice.txt

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a string?

data

Words

Numbers

a sequence of characters

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of string is this:

2.1

int

str

float

dictionary

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many types of data are there in python?

2

4

7

5

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of following Program:

for i in range(1,4):

print(i)

if(i==2):

break;

1

1

2

1

2

3

4

error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator can be used to compare two values

< >

/* */

==

=

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?