0% found this document useful (0 votes)
4 views5 pages

Computer Science Mock-1

This document is a question paper for the First Term Examination 2022-23 in Computer Science, with a maximum of 70 marks and a duration of 3 hours. It consists of two sections: Section A, which includes objective questions, and Section B, which contains subjective questions requiring programming in Python. The paper covers various topics such as operating systems, cloud computing, Python syntax, and programming exercises.

Uploaded by

anonymous
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)
4 views5 pages

Computer Science Mock-1

This document is a question paper for the First Term Examination 2022-23 in Computer Science, with a maximum of 70 marks and a duration of 3 hours. It consists of two sections: Section A, which includes objective questions, and Section B, which contains subjective questions requiring programming in Python. The paper covers various topics such as operating systems, cloud computing, Python syntax, and programming exercises.

Uploaded by

anonymous
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/ 5

Series MI/GII/VIII Code No.

Set – 1/1/1

Candidate must write the code no. on


Roll No. the title page of the answer sheet

FIRST TERM EXAMINATION 2022-23

(CODE: 083 – Computer Science)

TIME ALLOWED : 3 HRS MAXIMUM MARKS : 70

INSTRUCTIONS:

A. Please check that this question paper contains 5 printed pages.


B. Use Python as coding language.
C. Please check that this question paper contains two sections.
D. Section A is objective type and Section B is Subjective.
E. Section A – QI – XVI are of 1 marks and QXVII is of 4 marks.
F. Please write down the serial number of the question before attempting it.

Page 1 of 5 of (CS XI HY) SET 1


SECTION A
(I) Why operating system is required?
(II) What is the advantages of cloud computing.
(III) Define Cache.
(IV) Which of the following variable names are valid/invalid.
(i) AMT1
(ii) sum of square
(V) What will be output of following statement:
(i) >>> 2<3
(ii) >>> True+4
(VI) What is difference between / & % operator?
(VII) Write the following expression in python: 1/3 πx 2 h
(VIII) What is the use of comments and indentation in a program?
(IX) Find the output of following python code :

Str=” python program”


Str[2:5]
Str[:6]
(X) Is Python code compiled or interpreted?
(XI) What will be the output of the following Python code?
x = 'abcd'
for i in range(len(x)):
print(i)
(XII) Conditional statements are also known as ___ statements.

A. Decision-making
B. Array
C. List
D. None of the mentioned above

(XIII) Amongst which of the following if syntax is true?


a)if condition:
#Will executes this block if the condition is true
b)if condition
{
#Will executes this block if the condition is true
}
c)if(condition)
#Will executes this block if the condition is true
d)None of the mentioned above

(XIV) In Python, ___ defines a block of statements.


(XV) The ___ is a built-in function that returns a range object that consists series of integer
numbers, which we can iterate using a for loop.

(XVI) Amongst the following, who is the developer of Python programming?

A. Guido van Rossum


Page 2 of 5 of (CS XI HY) SET 1
B. Denis Ritchie
C. Y.C. Khenderakar
D. None of the mentioned above

(XVII) Fill in blanks with proper statement:

n=int(input("enter:"))

temp=n

dig=0

rev=0

while temp___________: //statement 1

dig=temp%10

rev=___________________ // Statement 2

temp=________________ // statement 3

if ____________________: // Statement 4

print("it is palindrome")

else:

print("not palindrome")

SECTION B
Q1 (a) What is bit? How bit, byte and nibble are related with each other? (2)
(b) What is application software? Write any two example (2)
(c) Write two features of Windows OS. (2)
(d) What will be output of following code:
A,B,C,D=9.2, 2.0, 4, 21
print(A/4)
print(A//4)
print(B**C)
print(A%C) (2)

Q2 (a) Write a program to input your name, age and interviewer’s name using proper data type. Use
print function to print the details on screen in one line. (2)
(b) Write a program to calculate the volume and surface area of sphere :
● Volume = 4/3 ᴨr3
● Area = 4 * p * r2 (2)

(c) Suppose your brother is working in an MNC as Sr. Programmer. Write a program to print your
brother’s profile using suitable escape characters. (2)

Page 3 of 5 of (CS XI HY) SET 1


(d) Write a program to find the sum, difference, multiplication and division of two numbers. While
entering the two numbers, the second number must be smaller than the first number. Also apply
different formatting techniques to display the result. (2)

Q3 (a) Write a program to test the divisibility of a number with another number. (2)
(b) Write a program to find the Fibonacci series of numbers . (3)
(c) Write the pseudo code and Python program to print the following pattern: (3)

*******
******
*****
****
***
**
*
(d) Write a program to evaluate the power series. The series looks like,
x2 x3 xn
S=1+x+ + ....+
2! 3! n!
Where 0 < x < 1. (3)
(e) Write a program to find the largest among three numbers. (3)
Q4 (a) Write two different forms of IF statements with example (2)
(b) Rewrite the code in Python after removing all syntax error(s). Underline (2)
each correction done in the code
TEXT=""GREAT
DAY""
for T in range[0,7]:
print TEXT(T)
print T+TEXT
(c) Explain break, continue and pass statements with example. (3)
(d) for i in '123':
print ("half yearly exam",i,) (3)
Q5 (a) What will be the output of following program? (2)
S1 =" 2019 Edition"
L =len(S1)
S2=""
for a in range(L):
if(S1[a].islower()):
S2=S2+S1[a].upper()
elif(S1[a].isdigit()):
S2=S2+"#"
else:
continue
Page 4 of 5 of (CS XI HY) SET 1
print("New String is", S2)
(b) Identify the types of error in the following code: (2)
(i) If sum=a+b
(ii) p+r=10
(c) What will be the output of the following:
(i) 5<5 or 10 (ii) bool(‘11’) (2)
(d) Why does python report error for the following code?
str(“Hello”)
str[2]=’p’ (2)
(e) When these exceptions occur? Explain. (2)
(i) Syntax error (ii) Logical error

Page 5 of 5 of (CS XI HY) SET 1

You might also like