SHERWOOD HALL SENIOR SECONDARY SCHOOL CLASS: XI HALF YEARLY EXAMINATION MARKS: 70 COMPUTER SCIENCE TIME: 3 Hrs DATE: 17.12.2021 ___________________________________________________________________________ General Instructions: 1. This question paper contains two parts A and B. Each part is compulsory. 2. Both Part A and Part B have choices. 3. Part-A has 2 sections: a. Section – I is short answer questions, to be answered in one word or one line. b. Section – II has two case studies questions. Each case study has 4 case-based subparts. An examinee is to attempt any 4 out of the 5 subparts. 4. Part - B is Descriptive Paper. 5. Part- B has three sections a. Section-I is short answer questions of 2 marks each in which two question have internal options. b. Section-II is long answer questions of 3 marks each in which two questions have internal options. c. Section-III is very long answer questions of 5 marks each in which one question has internal option. 6. All programming questions are to be answered using Python Language Question No PART-A Marks Allocated Section-I Select the most appropriate option out of the options given for each question. Attempt any 15 questions from question no 1 to 21. 1 A DVD is a) optical disk b) output device c) solid state storage d) hard disk 1 1 5 A single unit which is composed of small group of bits is known as a) bit b) bug c) flag d) byte What characteristic of RAM memory makes it not suitable for permanent storage? a) too slow b) unreliable c) it is volatile d) bulky A small lever shaped device used to control movement on the screen is classified as a) joystick b) mouse c) keyboard d) microphone 1 PB =(---) TerraByte 6 According to boolean law: A + 1 = _ 1 7 DeMorgan’s theorem states that _________ a) (AB)’ = A’ + B’ b) (A + B)’ = A’ * B c) A’ + B’ = A’B’ d) (AB)’ = A’ + B Write the base value of binary,octal and hexadecimal number system. 1 The default separator character of print() is _________ a) _ underscore b) Space c) ,comma d) # Function range(10,5,-2) will yield an iterable sequence like _________ a)[10,8,6] b) [6,8,10] c) [9,7,5] d) [5,7,9] 1 2 3 4 8 9 10 1 1 1 1 1 11 12 13 Which of the following is the use of id() function in python? a) Id returns the identity of the object b) Every object doesn’t have a unique id c) All of the mentioned d) None of the mentioned Which of the following is not a valid string operation in Python? a) ‘abc’+’abc’ b) ’abc’*3 c) ‘abc’+3 d) ‘abc’.upper() What is the output of the following statement ? 15 a) 2 b) 0 c) 1 d) Error What will be the value of the following expressions: 12 > 15 and 8 > 12 or not 19 > 4 a) True b) Error c) False d) None What is the output of the following code? 16 a) 64,64,64 b) 512,512,512 c) 12,64,12 d) 512,64,512 What is the output of the following? 14 1 1 1 1 1 1 17 18 19 20 21 22 a) 4,6,7,8, b) Error c) None d) 4 What will be the output of the following code? print (type(type(int))) a) type 'int’ b) < class ’type’> c) Error d) <class ‘int’> Find the invalid identifier from the following a) none b) address c) Name d) pass What is used to define a block of code (body of loop, function etc.) in Python? a) Curly braces b) Parenthesis c) Indentation d) Quotation A ___________ error does not cause the program to abort but produces incorrect results. ________is an informal way of describing the steps of a program’s solution without using any strict programming language syntax or underlying technology considerations. Section-II Both the Case study-based questions are compulsory. Attempt 4 subparts from each question. Each question carries 1 mark Hidhaf, during Practical Examination of Computer Science, has been assigned a Python source code with errors. Help him identify the errors in the source code a) Name=”Hidhaf” Name[3]=”a” print(Name) b) A=bool(0) B=bool(1) print(A==false) print(B==true) 1 1 1 1 1 1 1 23 24 c) print(type(int(“123”))) print(type(int(“Hello”))) print(type(str(“123.0”))) d) pi=3.14 print(type(pi)) print(type(“3.14”)) print(type(float(“Three point fourteen”)))) e) print(“Hello”*2) print(“Hello”+2) print(“Hello”+”2”) Hamdan is working on string manipulation programs.Help him identify the output of the following scripts where A=”Hello World” B=”1234” C=”1234ABC” a) A.upper().lower() A.lower().upper() b) A.find("Wor”) A.find(“wor”) c) A.istitle() A.isalpha() d) B.isdigit() C.partition(‘A’) e) C.split(‘A’) C.isdigit() Part-B Section-I Find the output of the following code : 1 1 1 1 1 1 1 1 2 25 26 27 28 29 30 31 32 33 Help Vandana in identifying the incorrect variable name with justification from the following: a) unit@price b) fee c) userid d) avg marks Write the type of python keywords and user defined identifiers from the following: a) else b) Long c) break d) _count 2 Consider the statement: first_name = “Tameka” a) What is the datatype of first_name ? b) Is 325 the same as “321” ? Give reason. 2 a) 2 What is difference between mutable and immutable in Python? b) Distinguish between ‘/’ and ‘%’ operators Write a program to take two nos and swap two nos. Write two differences between compiler & interpreter. OR What is the difference between run time errors and compile time errors? Write one example of each. Draw a logic circuit diagram for the boolean expression A.(B + ). 2 2 2 2 2 Explain Flowchart with an example. Convert the following Decimal numbers to binary i. 13 ii. 106 iii. 84 iv. 3.25 OR Convert the following Binary numbers to decimal i. 10010 ii. 101010 iii. 1010100.011 iv. 11001010 2 2 Section-II 34 Difference between RAM and ROM. 3 OR Explain the types of Software. 35 Give the output: 3 a) b) c) 36 37 Convert the following binary numbers into octal and hexadecimal numbers. i. 1110001000 ii. 110110101 iii. 1010100 Define Token. Explain any three types of tokens available in Python. OR Explain Type Conversion and its types. 3 3 38 Section-III Describe the basic gates? Draw diagrams and truth tables for all the basic gates? 5 39 Write a Python Program to generate the following patterns using nested loop 5 40 Write a Python program to Input a string and determine whether it is a palindrome or not; convert the case of characters in a string 5 OR Write a Python program to Count and display the no. of vowels, consonants, uppercase, lowercase characters in string. **************************