Python Class Room Diary



KENDRIYA VIDYALAYA SANGATHAN, KOLKATA REGION

HALF YEARLY EXAM ( 2019-20)

CLASS : XI

SUB: COMPUTER SCIENCE

[Time allowed: 3 hours ] [Maximum Marks : 70]

Instruction : (i) All questions are compulsory

(ii)Programming Language : PYTHON

|1. |(a) |Python programming language is developed by ___________________________ |[1] |

| |(b) |Python language is Free and Open source language. What do you understand by this feature? |[1] |

| |(c) |What will be the output produced by following code? value = “Sameer” |[1] |

| | |age = 17 | |

| | |print (name, “,you are”, 17, “now but”, end= ‘ ’) | |

| | |print (“you will be”, age +2, “next year”) | |

| |(d) |Write any two looping (iterative) statements used in python language. |[1] |

| |(e) |What is dynamic typing? |[1] |

| |(f) |What do you mean by immutable data value? |[1] |

| |(g) |Write the corresponding Python expression for the following mathematical expression. |[2] |

| | |[pic] | |

| | |p + [pic] | |

| |(h) |Write the expanded form of the following: |[1] |

| | |i)ASCII ii)ROM | |

|2. |(a) |What could be the minimum possible and maximum possible numbers by following code? Explain how? | [2] |

| | |import random | |

| | |print (random.randint(3,10) -3) | |

| |(b) |Evaluate the python expression: | [2] |

| | |2 + 7 * 10 – 8 / 2 // 2 | |

| |(c) |In which situation the execution take place in ‘else clause in an if statement’ and ‘else clause in a loop statement’. | [2] |

| |(d) |Write a python program that reads a string and display it in reverse order, display one character per line. Do not create a | [2] |

| | |reverse string, just display in reverse order. | |

| |(e) |Write the name of most appropriate list method to perform the following task: | [2] |

| | |(i) Delete a given element from the list. | |

| | |(ii) Delete 3rd element from the list. | |

| |(f) |Identify the type of following literals: | [3] |

| | |23.789, 23789, True, ‘True’ , 3+5j, “False” | |

|3. |(a) |What is the difference between 55L and 55? | [2] |

| |(b) |Convert the following decimal number system to binary. (Show the methods properly) (i) 202 (ii) | [2] |

| | |125.25 | |

| |(c) |Predict the output of the following: print (12/4) | [2] |

| | |print(14.0/4) | |

| | |print(9.2//4) | |

| | |print(4**3) | |

| |(d) |What is the difference between break and continue statements? | [2] |

| |(e) |What will be the output of the following code? (i) print (5< 5 or 10) | [2] |

| | |(ii) print (5=30 | |

| | | | |

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download