0% found this document useful (0 votes)
17 views2 pages

Xi PWT4

This document outlines a Computer Science examination for PM Shri Jawahar Navodaya Vidyalaya, Mudipu, consisting of multiple sections including multiple-choice questions, coding tasks, and programming exercises. It covers topics such as flowcharts, Python programming, and basic computer science concepts. The exam is structured to assess students' understanding of programming and problem-solving skills within a 2-hour timeframe.

Uploaded by

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

Xi PWT4

This document outlines a Computer Science examination for PM Shri Jawahar Navodaya Vidyalaya, Mudipu, consisting of multiple sections including multiple-choice questions, coding tasks, and programming exercises. It covers topics such as flowcharts, Python programming, and basic computer science concepts. The exam is structured to assess students' understanding of programming and problem-solving skills within a 2-hour timeframe.

Uploaded by

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

PM SHRI JAWAHAR NAVODAYA VIDYALAYA, MUDIPU

Sub : COMPUTER SCIENCE (083)


Max. Marks :40 Time : 2.00 Hours
All questions are compulsory.
SECTION A (1*10=10)
1) Which symbol is used to represent processing in flowcharts.
a) circle b) rectangle c) diamond d) parallelogram
2) Which of the following is not a token
a) keyword b) identifier c) expression d) operator
3) What will be the output of the following statement: print(4+2**3**2-5//11%3)
a) 66 b) 46 c) 516 d) 494
4) What is the output of the following code
print(str([1,2,3]))
a) ‘123’ b) ‘1,2,3’ c) ‘[1,2,3]’ d) error
5) State True or False:
“In a Python program if break statement is executed in a loop then loop’s else
block will be executed or not”.
6) Which gate produces 0 when all inputs are HIGH.
a) NAND b) NOT c) AND d) OR
7) Using someone else’s twitter handle to post something, will be termed as
a) Fraud b) Identity Theft c) Online stealing d)Violation
8 ) Which of the following expression will result in an error
a) ‘3’ * 3 b) (3) * 3 c) [3] * 3 d) {3:3} * 3
9) Which of the following is an escape sequence for a new line character?
a. \a b). \t c) \n d) \b
10) d={1:11, 2:22, 3:33}
print (11 in d)
Assertion (A): Output of above code is False.
Reasoning (R): Membership operator does not check for values in a dictionary
but only for keys.
SECTION B (2*5=8)
1) Draw flowchart to print multiplication table of any given number(say n).
2) Correct and rewrite the following code underlining all the corrections.
x=int(input(“Enter speed”)
if x>120
print(“Vehicle impounded”)
else x=>80:
print(“Fine 2000 Rs.)
else:
print(“Good to go”)
3) What is output of the following code:
x=5
y=(5)
print(type(x))
print(type(y))
4) In the following code check where is the error and when will that error occur
during compile time or run time
a=int(input(“Enter first number”)
#statement 1
b=0
#statement 2
c=a/b
#statement 3
print(c)
#statement 4
SECTION C (3*3=9)
1) Write output of the following code:
x=1531
s=0
while x>0:
a=x%10
s=s+a
x=x//10
print(s)
2) Write a Python Program to take a input number 'n' from the user and
print its square and cube.
3) Write a program to input two numbers and swap them.

SECTION D (4*2=8)
1) What will be the output displayed at Line3, Line 5 and Line 7 of following
Python code:
data = [2,5,6,2,7,5,2,9,11,18,2,4]
val = data.pop()
print(val)
# Line 3
data.extend([100,200])
print(len(data))
# Line 5
c = data.count(2)
print(c)
# Line 7
2) Write a program to input two numbers and swap them.
SECTION E (5*1=5)
1) Ms Anvi is python learner he developed code for small python programs Write The code
in python to print the following pattern using nested loop-
12345
1234
123
12
1

You might also like