Python Final Test

Python Final Test

University

30 Qs

quiz-placeholder

Similar activities

ITP221-LONG QUIZ

ITP221-LONG QUIZ

University

28 Qs

Round 3

Round 3

University

25 Qs

sistem informasi geografi

sistem informasi geografi

University

25 Qs

Basics of Robotics

Basics of Robotics

University

25 Qs

Circuital Dilemma

Circuital Dilemma

University

30 Qs

EC8452-EC-II::Quiz-1-Feedback Amplifiers

EC8452-EC-II::Quiz-1-Feedback Amplifiers

University

30 Qs

QUIZZ KJD - KOMPUTER DASAR

QUIZZ KJD - KOMPUTER DASAR

KG - Professional Development

25 Qs

Go-Quizzy

Go-Quizzy

University

30 Qs

Python Final Test

Python Final Test

Assessment

Quiz

Other

University

Medium

Created by

Gnaneshwar Reddy

Used 1+ times

FREE Resource

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the value of the following Python expression?

4 + 3 % 5

a) 7

b) 2

c) 4

d) 1

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following character is used to give single-line comments in Python?

a) //

b) #

c) !

d) /*

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the order of precedence in python?

a) Exponential, Parentheses, Multiplication, Division, Addition, Subtraction

b) Exponential, Parentheses, Division, Multiplication, Addition, Subtraction

c) Parentheses, Exponential, Multiplication, Division, Subtraction, Addition

d) Parentheses, Exponential, Multiplication, Division, Addition, Subtraction

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code?

2*3*2

214

456

567

512

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does pip stand for python?

a) Pip Installs Python

b) Pip Installs Packages

c) Preferred Installer Program

d) All of the mentioned

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the values of the following Python expressions?

2*(3*2)

(2*3)*2

2*3*2

a) 512, 64, 512

b) 512, 512, 512

c) 64, 512, 64

d) 64, 64, 64

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python code?

l=[1, 0, 2, 0, 'hello', '', []]

list(filter(bool, l))

a) [1, 0, 2, ‘hello’, ”, []]

b) Error

c) [1, 2, ‘hello’]

d) [1, 0, 2, 0, ‘hello’, ”, []]

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?