wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Introduction

Total questions: 10

Worksheet time: 6mins

Name
Class
Date
1.

Which of the following are High level languages?

a)

Python

b)

C

c)

C++

d)

Java

e)

Perl

2.

A (a)   reads the program and translates it completely before the program starts running. In this context, the high-level program is called the source code, and the translated program is called the object code or the executable.

3.

Which of following language is called as interpreter language .

a)

C

b)

C++

c)

Java

d)

Python

4.

What are the following modes available in Python?

a)

Compilation mode

b)

script mode

c)

safe mode

d)

interactive mode

5.

Programmers make mistakes. For whimsical reasons, programming errors are called bugs and the process of tracking them down is called (a)   .

6.

Which of the following are the features of python

a)

Simple and easy to learn

b)

Portable

c)

Scalable

d)

Extendable

e)

GUI Programming

7.

Which of the following is the valid syntax to print "Hello, World!" in python 3.

a)

print('Hello, World!')

b)

Hello, World!

c)

cout>>"Hello, World! "

d)

printf("Hello, World! ");

8.

If we execute following statement in interactive mode, whats is the output?

6**2 + 6

(a)  

9.

What is the output of the following code?

print( 8 // 3 )

(a)  

10.

What is the output of the following code?

type('2')

a)

<class ''int'>

b)

<class ''float'>

c)

<class ''str'>

d)

<class ''char'>

e)

<class ''obj'>