Python Basics

Python Basics

11th Grade

10 Qs

quiz-placeholder

Similar activities

postTest DataScience 2021

postTest DataScience 2021

10th Grade - Professional Development

10 Qs

8.1 Programming Overview

8.1 Programming Overview

9th - 11th Grade

14 Qs

Python 1

Python 1

KG - Professional Development

6 Qs

Scope of Variables in Python

Scope of Variables in Python

1st Grade - Professional Development

15 Qs

python String and comment

python String and comment

3rd Grade - University

13 Qs

Tes Sumatif Fase E

Tes Sumatif Fase E

9th - 12th Grade

10 Qs

Python Unit 1: Input/Output Review

Python Unit 1: Input/Output Review

5th - 12th Grade

7 Qs

moudel

moudel

11th Grade

8 Qs

Python Basics

Python Basics

Assessment

Quiz

Computers

11th Grade

Hard

Created by

KK Singh

Used 170+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Python uses

Blocks

Braces

Indentation

Parentheses

2.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Pyhton uses which of the following as translator?

Interpreter

Compiler

Both

Assembler

3.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

In which language is the Python programming created?

C

C++

Pyhton

All of the above

4.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

When a string does not fit in single line, one can use the following quotes for multiple line string?

Single Quotes

Double Quotes

Triple Quotes

Quadruple

5.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

a=True; b=True; c=False

if a or b and c:

print('True')

else:

print('False')

False

True

False or True

No Output

Answer explanation

As per the precedence of operator the precedence of and is higher then or and therefore b and c will be evaluated first and gives False output and a is True and b and c is False so True or False will give True

6.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

The output -12%5 is

-3

-2

3

2

Answer explanation

R = N-Q*D

= -12-(-12//5*5)

=-12 + 15

= 3

7.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

a=500;b=300

print(a*bool(a//b) + b*bool(b//a))

will print?

b

a

500

300

Answer explanation

a*bool(a//b) + b*bool(b//a)

a=500 and b = 300

500*bool(500//300) + 300*bool(300//500)

500*bool(1) + 300 *bool(0)

500 + 0

So it print 500 as the greater value

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?