Python Final Test

Python Final Test

University

30 Qs

quiz-placeholder

Similar activities

Simple Machines

Simple Machines

KG - University

25 Qs

Techsol - Funtechie

Techsol - Funtechie

University

25 Qs

Play with Python Lib

Play with Python Lib

KG - Professional Development

30 Qs

Introduction to Python and Data Analytics Basics

Introduction to Python and Data Analytics Basics

University

25 Qs

Kuiz Phyton 2

Kuiz Phyton 2

University

25 Qs

Aptiverse - Spectra 2k24 Round 1 Room 5

Aptiverse - Spectra 2k24 Round 1 Room 5

University

25 Qs

EC8452-EC-II::Quiz-5-Power Amps.& DC Converters

EC8452-EC-II::Quiz-5-Power Amps.& DC Converters

University

30 Qs

Java1 - Rev - w1-5

Java1 - Rev - w1-5

University

25 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?