0% found this document useful (0 votes)
6 views4 pages

Unit-5 Reflection Worksheet Class 9 AI Python

The document is a reflection worksheet for Class 9 on Artificial Intelligence, specifically focusing on Python programming. It includes multiple-choice questions, short answer questions, and coding exercises to assess understanding of Python concepts such as data types, operators, and functions. Additionally, it contains true or false statements and requests for definitions of key terms related to programming.

Uploaded by

sidhantpareek2
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views4 pages

Unit-5 Reflection Worksheet Class 9 AI Python

The document is a reflection worksheet for Class 9 on Artificial Intelligence, specifically focusing on Python programming. It includes multiple-choice questions, short answer questions, and coding exercises to assess understanding of Python concepts such as data types, operators, and functions. Additionally, it contains true or false statements and requests for definitions of key terms related to programming.

Uploaded by

sidhantpareek2
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Reflection Worksheet/ Class 9 / Artificial Intelligence/ Unit-5 Python

Multiple Choice Questions-

1 Who developed Python Programming Language?

a) Wick Van Rossum b) Rasmus Lerdorf c) Guido Van Rossum d) Niene Stom

2 In Python, which of the following characters is used to create single line comment?

a) // b) # c) ! d) /*

3 An identifier cannot start with a ________

a) Number b) Character c) Underscore d) None of the above

4 ______________ has a specific meaning in python program

a) Constant b) Variable c) Keyword d) Identifier

5 Write the output of the following python statement - print(10//3)

a) 3 b) 3.33 c) 1 d) 0

6 Which of the following is the valid Python file extension?

a) . python b) . pl c) . py d) . p

7 Numbers with fractions or decimal points are called ________ datatype.

a) Integer b) String c) Float d) None of the above

8 _______is an ordered sequence of letters/characters. They are enclosed in single quotes (‘ ’ ) or


double (“ ”).

a) String b) Integer c) Float d) None of the above

9 ___________ are a sequence of values of any type, and are indexed by integers. They are immutable
and enclosed in ().

a) String b) Lists c) Tuples d) All of the above

10 _________ function is used to display given output in python.

a) printf() b) print() c) scan() d) None of the above

11 _________ function is used to take input from the user in python.

a) input() b) insert() c) store() d) None of the above


12 The data type of 14.5 is __________

a) int b) float c) string d) list

13 ___________ operator gives the remainder in Python.

a) % b) / c) // d) *

14 __________ operator is used to find the square of a number

a) ^ b) * c) ** d) //

15 What does the following code print?

if 4 + 5 == 10:

print("TRUE")

else:

print("FALSE")

a) TRUE b) FALSE c) None of them d) TRUE FALSE

16 What will be the data type of following variable?

A= “100”

a) int b) float c) string d) list

17 The smallest element of python coding is called ______

a) Identifiers b) Tokens c) Keywords d) Delimeters

18 Find the invalid variable among the following:

a) 1st_place b) my_place c) _first d) Fun

19 T=[10,20,30,40] is a type of which datatype in python

a) int b) string c) list d) tuple

20 The _________ mode of python gives instant result of typed statement

a) Interactive mode b) Script mode

c) Combination of interactive and script mode d) All of these


2 mark Questions

1 What is the Difference between Interactive mode and script mode?

2 What are the basic datatypes in Python?

3 What is a variable?

4 What are the arithmetic operators in Python?

5 What are lists in python?

6 What will be out of the following?

for I in range(1,10,2):

print(I)

7 What does the following code print?

if 4 + 5 == 10:

print("TRUE")

else:

print("FALSE")

8.

L=[10, “New”, 34.5,30,40]

print( L[1])

L[2]=50

print(L)

9 What will be the output of the following?

print (“hello \n” )

print(“Class 9\n Artificial Intelligence”)

State True or False-

a) Python is case sensitive programming language

b) A variable’s value once assigned cannot be changed


Identify the datatype in the following

a) 15.3 b) “123” c) “CBSE” d) K=[1,2,3,4]

Write the output of the following-

A,B=10,20

A,B=B,A

print(A.B)

Rewrite the following by correcting the errors

Sname=int(input(“Enter Name”))

M=int(input(“Enter Mark”)

if M>33

print(“Pass”)

otherwise:

print(“Fail”)

Define the following terms

a) Identifiers b) Keywords c) Expression d) Tokens

You might also like