HALF YEARLY EXAMINATION 2018-19 CLASS XI- INFORMATICS ...

Time : 3 Hours

HALF YEARLY EXAMINATION 2018-19 CLASS XI- INFORMATICS PRACTICES

Instructions : All questions are compulsory Pogramming Language : Python

Max Marks : 70

Q1 a. Out of these which memory is called the primary memory of the computer ? 1

HARD DISK, RAM, PEN DRIVE

b. Which of the following Operating systems are not used in Mobiles:

1

UNIX, Android, Solaris, Windows

c. Name two sub processors in CPU of Mobile systems

2

d. What is the difference between compiler and an Interpreter

2

Q2 a. Who developed Python language?

1

b. What are the two modes available in Python

2

c. Write any 2 benifits and 2 shortcomings of Python Programming language

2

Q3 a. i.. Which of the following can be used as valid variable identifier(s) in Python 4 (i) total (ii) 2Total (iii) Que$tion (iv) while

ii. What is the significance of Indentation in Python

iii. What is the use of the following

. type()

str()

b. Write python statement to do the following

4

i.. To print Nature is Wonderful Take Care of it

ii. To read name and mobile no. of a person

iii. To print name and mobile number in same line

iv. To print name and mobile number separated by @ symbol

Q4 a. Name any two Data Conversion functions in Python.

1

b. Write equivalent python statement for the following

a. r2h

1

b. d=(x2-x1)2 + (y2-y1)

1

c. Predict the value of R1, R2, R3, R4 from the following code fragment

2

X , Y = "PEACEFUL", "Soul"

Z , P = 12, 2

R1=X+Y

R2=Z+P

R3=X * 3

R4 = Y + Z

Q5 a Draw a flow chart to find greatest between two numbers

1

b Write an algorithm to calculate addition of two numbers

1

c Name the jump Statements in Python

1

d Find and write the output of the following Python code:

2

SEQ = ["90","10","30","40"] MAX = 3 SUM = 0 for I in [1,2,5,4]:

S = SEQ[MAX] SUM = float (S) + I print (SUM) MAX ? = 1

e. Rewrite the following code in Python after removing all syntax error(s). 2 Underline each correction done in the code.

MyString="GOD

is

GREAT"

L=length(MyString)

for T in range[L]:

print MyString(T)

f Write a program in Python to find greatest among 3 numbers

4

g. Write a program to print the following pattern

1 4

1 2

1 2 3

Q6 a. What would the following expression return

2

"KVS".isalnum() "Python Programming".find("ram",13,16) Write a program in python to check whether the given String is Palindrome

b

4

Q7 a.

b. Q8 a.

b. Q9 a.

b. Q10 a.

Consider the code given below and write the output of expression i and ii.

2

List =[1,3,5,7,9,11,16]

T= [10,20]

print(List [2:6:2])

List.extend (T)

Print(List)

Write a program in python to find smallest element in a list

4

Write functions/statement used to do the following in respect of Dictionary

2

To add new item in an existing Dictionary

To print only Keys from dictionary

To print only values from dictionary

To merge new dictionary's Key: Value pair to an existing dictionary

Write a program to create dictionary with Empcode as key and EmpName ,

4

Salary as Value. Program would search record (item) as per the given

EmpName given by the user

What are the two ways to import module in our program

2

What is the difference between function and module? Write a function to print a 4

message "Best of Luck"

What the following code is doing explain step by step

2

Import numpy as np Age=[23,54,33,78,10] N=np.array(Age)

b. What is the difference between NumPy Arrays and Python list. ? Write any differences and Write two individual statements to declare 1. NumPy Array 2. 4 Python List

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

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

Google Online Preview   Download