Season 1 #Spaic Python Weekly Quiz

Season 1 #Spaic Python Weekly Quiz

KG - Professional Development

20 Qs

quiz-placeholder

Similar activities

QUEUE

QUEUE

University

17 Qs

Hollow Knight Quiz

Hollow Knight Quiz

5th - 12th Grade

20 Qs

Data Structure

Data Structure

University

20 Qs

Python Revision Tour - I

Python Revision Tour - I

12th Grade

15 Qs

Python Lists and Tuples

Python Lists and Tuples

11th - 12th Grade

20 Qs

Level 3 Python Quiz 4

Level 3 Python Quiz 4

9th - 12th Grade

20 Qs

Grade 8

Grade 8

8th Grade

19 Qs

GCSE J277 - 2.1.3 - Sorting Algorithms

GCSE J277 - 2.1.3 - Sorting Algorithms

7th Grade

20 Qs

Season 1 #Spaic Python Weekly Quiz

Season 1 #Spaic Python Weekly Quiz

Assessment

Quiz

Other, Computers

KG - Professional Development

Medium

Created by

ouhammouch hanane

Used 120+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why are local variable names beginning with an underscore discouraged?

They are used to indicate a private variables of a class

They confuse the interpreter

They are used to indicate global variables

They slow down execution

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the following Python code?

[‘ab’, ‘cd’]

[‘AB’, ‘CD’]

[None, None]

None of the mentioned

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the following Python code?

True

False

None

None of the mentioned

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Point out the correct statement.

If data is a list, if index is passed the values in data corresponding to the labels in the index will be pulled out

NaN is the standard missing data marker used in pandas

Series acts very similarly to a array

None of the mentioned

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Given a function that does not return any value, What value is thrown by default when executed in shell.

Int

Bool

Void

None

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What error occurs when you execute the following Python code snippet? apple = mango

SyntaxError

NameError

ValueError

TypeError

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following operators has its associativity from right to left?

+

//

%

**

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?