wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Quiz after demo

Total questions: 8

Worksheet time: 4mins

Name
Class
Date
1.

Step by step procedure to solve any problem___

a)

Flowchart

b)

Algorithm

c)

Program

2.

How can Anika, Tara, and Aditi insert comments in Python?

a)

# this is a comment

b)

// this is a comment

c)

/* this is a comment */

3.

Methods are

a)
keywords used in programming languages
b)
variables that store data
c)
operators used in mathematical calculations
d)

procedures or functions that are associated with an object

4.

Methods are called using

a)
exclamation marks
b)
square brackets
c)

comma notation

d)

dot notation

5.

What is the syntax to call a method on an object?

a)

objectName.methodName

b)

objectName.methodName{}

c)

objectName.methodName[]

d)

objectName.methodName()

6.

Which case does Python use?

a)

titlecase

b)

lowercase

c)

uppercase

d)

camelCase

7.

__________ have member variables and have behaviour associated with them

a)
Classes
b)
Objects
c)
Variables
d)
Functions
8.

Syntax is

a)

Syntax is a type of error

b)

Syntax is the set of rules that define in the programming language.

c)
Syntax is a programming language used for web development.
d)
Syntax is a tool used to debug code in programming languages.