Python Quiz

Python Quiz

5th Grade

30 Qs

quiz-placeholder

Similar activities

Artificial Intelligence Quiz1

Artificial Intelligence Quiz1

4th - 8th Grade

26 Qs

computer

computer

5th - 8th Grade

25 Qs

G5 Review

G5 Review

5th Grade

29 Qs

TRẮC NGHIỆM TIN 4 BÀI 2: GÕ PHÍM ĐÚNG CÁCH

TRẮC NGHIỆM TIN 4 BÀI 2: GÕ PHÍM ĐÚNG CÁCH

5th Grade - University

25 Qs

QUIZ#1 COMPUTER 6

QUIZ#1 COMPUTER 6

5th Grade

25 Qs

BERMAIN DAN BELAJAR TIK KELAS 5 A

BERMAIN DAN BELAJAR TIK KELAS 5 A

5th Grade

25 Qs

stranger things

stranger things

5th Grade

25 Qs

Evolution of Computers

Evolution of Computers

1st - 5th Grade

25 Qs

Python Quiz

Python Quiz

Assessment

Quiz

Computers

5th Grade

Practice Problem

Hard

Created by

REENA. S

Used 7+ times

FREE Resource

AI

Enhance your content in a minute

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

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the importance of the init method in a class?

 It initializes all the classes in code

It imports all the modules required for the program

It initializes the attributes of a class when an object is created

None of the above

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the code ? 

Mylist = [1,2,3,5,3,4,6,9]

Mylist[-6:6]

[]

 [3, 5, 3, 4]

 [4, 3, 5, 3]

Index Error

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the method that is bound to class but not the instance?

Static method

Class method

Main Method

None of the above

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a generator in Python?

The function that generates random numbers of specified count

 The function that generates an error when a warning occurs

 The function that gives a statement as output rather than a retur

The function that returns a generic object

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is used to print the doc string of a function?

myFun.doc()

 doc(myFun)

doc(myFun)

myFun.__doc__

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. What is the output of the below code?

            a1,b1,c1=1,2,3,4,5

               print(b1)

2

4

1,2,3,4,5

ValueError

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. What is the output of the below code?

List=list(range(-5,5,2))

len(List)

2

5

10

7

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?

Discover more resources for Computers