wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Python Basics

Total questions: 10

Worksheet time: 3mins

Name
Class
Date
1.

Who discovered python language?

a)

Dennis Ritchie

b)

Guido van Rossum

c)

Bjarne Stroustrup

d)

James Gosling

2.

In which language is python written?

a)

C

b)

Java

c)

C++

d)

C#

3.

What is the output of the code-

print("Hello")

a)

Hello

b)

"Hello"

c)

Error

d)

None of the above

4.

Which is a valid identifiers?

a)

0hello

b)

myfile

c)

break

d)

hello world

5.

What is the smallest individual unit in a program called?

a)

Letters

b)

Binary digits

c)

Digits

d)

Tokens

6.

Python converts source code to machine code using?

a)

Compiler

b)

Assembler

c)

Interpreter

d)

None of the above

7.

What is the octal integer form of 8?

a)

0o10

b)

0o11

c)

0x10

d)

8

8.

What is the hexadecimal form of 12?

a)

0xD

b)

0xC

c)

0oC

d)

12

9.

Find the output

a=10

b=(a%3)+2

print(b)

a)

5

b)

1

c)

Error

d)

3

10.

Python is a __________ programming language.

a)

Free,closed source

b)

Paid

c)

Free,open source

d)

Low level