PA_Datatypes_Indentations2

PA_Datatypes_Indentations2

Professional Development

15 Qs

quiz-placeholder

Similar activities

Mastering Software Testing Quiz

Mastering Software Testing Quiz

Professional Development

20 Qs

Python Essentials_FT_Batch 3

Python Essentials_FT_Batch 3

Professional Development

20 Qs

Data Types

Data Types

Professional Development

10 Qs

Numpy

Numpy

Professional Development

10 Qs

List,Tuples,Dictionary

List,Tuples,Dictionary

Professional Development

19 Qs

Security Hardening, Secure Boot and AD

Security Hardening, Secure Boot and AD

Professional Development

14 Qs

Energy Economics Quiz

Energy Economics Quiz

Professional Development

20 Qs

r lab

r lab

Professional Development

15 Qs

PA_Datatypes_Indentations2

PA_Datatypes_Indentations2

Assessment

Quiz

Engineering

Professional Development

Medium

Created by

TJL_ Sarwani

Used 3+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the order of precedence for the following operators in Python, from highest to lowest?

**, /, %, +

**, +, /, %

+, %, /, **

/, %, +,**

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python expression :

print(10 - 4 * 2 + 3)

11

5

15

9

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following operators in Python has right-to-left associativity?

+

-

**

/

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the following Python expression? 

print(2 ** 3 **2)

64

512

12

36

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python expression? 

print(15 // 4 % 2)

0

1

3

2

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a core data type in Python? 

List


Dictionary


Class

Tuple

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default return value of a Python function that does not explicitly return any value?




a) 0

b) None

c) False

d) Empty string

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?