Vous êtes sur la page 1sur 6

Sample Question Paper for XI Half Yearly Exam.

SUB: INFORMATICS PRACTICES


CLASS - XI
TIME: 3 HOURS M.M: 70
General Instructions:-
i) All questions are compulsory
ii) Answer the questions after carefully reading the text.

Q1.
a. What is the purpose of Ports in Computer? 1
b. Name the Super Computer developed in India. 1
c. Write two similarities and two differences between Compiler and Interpreter. 2
d. Draw a block diagram of the main units of a computer hardware system. 2
e. Differentiate between the following – 2
i. Impact Printers and Non-Impact Printer
ii. Internal Memory and External Memory
f. Which of the following are not hardware : 1
(i) Printer (iii) Keyboard (iv) CPU (v) Assembler (vi) A Java Program
g. Out of the following devices, classify them as input & output devices. 1
i. Light pen
ii. flatbed plotter

Q2.
a. i) 1 KB = ________________ Nibbles 1

ii) 1GB = ________________ MB

b. What is a Computer Virus? 1


c. What is Phishing? 1
d. How Backup Utility is useful in our computer? Is it necessary to take Backup of data?
2
e. What are different types of threats to Computer Security? 2
f. Differentiate between Multiprogramming Operating System and Multiprocessing
Operating System. 1
Q3.
Page 1 of 6
a. Expand RAD. 1
b. What is an IDE? 1
c. Explain Byte code? How is Java Byte code executed? 2
d. What are different characteristics of Java? 2
e. What will be the result of variable a in expression a=5/3. If a is
i. float ii. int 1+1 = 2
Q4.
a. Which of the following are valid identifiers and why /Why not? 2
1. Data_rec 3. 1 data
2. switch 4. xyz1
b. Evaluate the following programming statements: 2+2= 4
(i) What will the following code fragment print out?
int res = 25;
System.out.println(“”+(res--));
System.out.println(“”+(--res));

(ii) Write equivalent java expression for the flowing expression:


3/2
3x _ 8xy
5x + 3y 2yx

c. What is the use of variable in a java program? 1


Q5.
a. Why IF ELSE statement is preferred over SWITCH CASE statement? 2
b. Rewrite the following fragment: 2+2=4
(i) Using switch (ii) Using while loop

If(ch==’E’) int sum =0;


Eastern++; for (int i=1;i<=5;++i)
If(ch==’W’) {
Western++;
sum = sum + i;
If(ch==’N’)
}
Northern++;
If(ch==’S’)
Southern++;
else
Unknown++;

c. Find the output of the following code fragments: 2+2=4

(i) int s =94;


Page 2 of 6
if(s<20) {
System.out.print(“Under”);
}
else
{
System.out.print(“Over”);
}
System.out.println(“the limit”);

(ii) int i=1,j=0,n=0;

while(i<4)
{
for(j=1;j<= i;j++) {
n+=1;
}
i = i+1;
}
System.out.println(n);

Q6.

a. (i) A GUI application having interface as shown below: 3

The percentage marks are to be entered in the text box and upon clicking at the
button, corresponding Grade as per the rules given below:

Marks% Grade
>90 A++
81 – 90 A+
75 - 80 A
61 – 74 B
51 – 60 C
40 – 50 D
<40 Fail

(II) Write the Code for the following GUI program.

a) Obtain the number from user and tell whether the number is Even or Odd.
2

Page 3 of 6
b) Write code to clear the textfield in the above GUI program 1

2. Write code to exit the GUI application. 1


b. What do you understand by an event? Give example 1+1 = 2
c. Name two Top level containers. 2
d. Write the name of the java swing controls to be used in the GUI for
(i) Select any one Gender (Male / Female) 1+1+1+1 = 4
(ii) Select one country from all the countries present
(iii) Select one or more subject of specialization from any list
(iv) Submit the form for adding record.

Q7.

a. What is the difference between a text field and a text area? 1


b. What are these methods used for? 1 +1 = 2
(i) isEditable() (ii) setEditable()
c. Differentiate between – 1+ 1 = 2
(i) Label and Text field
(ii) Checkbox and Radio button
d. What is a native build-in data type in java? 1
e. What is the use of parse… function in java 2
f. Differentiate between syntax Error and Semantics Errors? 2
g. How is a container control different from a child control 2

Page 4 of 6
Marking Scheme

Instructions:

This marking scheme is a suggestive marking scheme any other correct answer
can be awarded marks if examiner feels that the answer/logic is correct.

Q.No Marking Scheme


1.a For connecting / communication external device with computer
1.b 1 mark for correct answer (Param/Pace/Padma)
1.c 1/2 marks for each correct similarities answer
1/2 marks for each correct difference answer (1+1=2)
1.d 1 marks for correct diagram, 1 marks for any two correct units
1.e (i) 1 marks for each correct difference
(ii) 1 marks for each correct difference
1.f (i) 1 marks
1.g (i) ½ marks
(ii) ½ marks
2.a (i) 2048 Nibbles ½ Mark
(ii) 1024 MB ½ Mark
2.b 1 mark for correct answer
2.c 1 mark for correct answer
2.d 1 mark for each correct explanation (1+1)
2.e ½ mark for each correct threat (½ x4= 2)
2.f ½ mark for each correct difference ( ½ x4 =2)
3.a Rapid Application Development, 1 mark for completely correct ,No mark for partially
correct
3.b Integrated Development Environment, 1 mark for completely correct ,No mark for partially
correct
3.c 1 mark for correct definition , 1 mark for correct explanation with block diagram of JVM
compiler
3.d ½ mark for each correct characteristics ( ½ x 4 = 2)
3.e (i)1.0
(ii) 1 (½ mark for each correct answer)
4.a ½ mark for each correct explanation ( ½ x4 =2 )
4.b (i) 25
23
2 mark for each correct output

(ii) pow((3*x + 5*y) /(5 * x + 3 *y) – (8*x * Y)/(2*y*x)),3/2)


2 marks for correct expression, 1 for partially correct or without pow()
4.c 1 mark for correct description
5.a 1 marks each for correct situations / suggestions ( 1x2=2)
5.b i) 2 marks for complete answer, 1 marks for partially correct switch syntax
ii) 2 marks for complete answer, 1 marks for partially correct while loop syntax
5.c i) Over
the limit (2 marks for correct output, Deduct ½ marks if new line is not taken in
consideration)
Page 5 of 6
ii) 2 (2 marks for correct output)
6. a.i 1 mark each for correct condition & 1 marks input & 1 marks output
6.a.ii a. 1 marks for coding & 1 marks for input and output
b. 1 marks for coding
c. 1 marks for coding
6. b. 1 marks for defining event and 1 marks for one example
6. c. 1 marks for each top level container.
6. d i) jRadioButton (1 Marks each. 1*4=4)
ii) jComboBox
iii)jListBox
iv)jButton
7. a 1/2 mark for each correct difference
7. b 1 marks each for correct explanation
7. c 1 mark for each correct difference
1 mark for each correct difference
7. d 1 mark for correct definition
7. e ½ mark for correct definition any four
parseInt()
parseFloat()
parseDouble()
parseByte()
7. f 1 mark each for correct definition and 1 for example
7. g 1 marks each for two difference.

Page 6 of 6

Vous aimerez peut-être aussi