FIRST TERM EXAM
XI-INFORMATICS PRACTICES
MM. 70 Time- 3 Hrs
Note: - All questions are compulsory. Marks are indicated with questions.
1) What are the functional components of a computer? 2
2) What is the difference between RAM and ROM? 2
3) What is the difference between Label and TextField control? 2
4) What is the difference between component and container? 2
5) What is the difference between an interpreter and a compiler? 2
6) What is the difference between a TextField and a TextArea? 2
7) Write equivalent Java expression for the following expressions. 4
i) ut + 1/2(ft)2 ii) |a| + b > |b| + a
8) What are the major strengths and weaknesses of computer? 3
9) What is a port? Name some port types 3
10) What do you understand by keyboards in Java? Write any 5 keyboards? 3
11) Describe the following operators in Java with example. 6
i) Increment/Decrement Operators ii) Logical Operators
12) Describe the following statements with an example each. 9
i) Switch Statement
ii) for loop
iii) While loop
13) Write the short notes on the following. 6
i) break statement
ii) continue statement
14) Describe CheckBox control with an example. 3
15) Discuss briefly about different layout manager offered by Swing API. 3
16) What is the use of panel? How can we use panel in our program? 3
17) Write a program to calculate simple interest. 3
18) Write a program to calculate factorial of a given number. 3
19) Write a program to print odd numbers up to 100. 3
20) Write a program to print the following pattern. 3
*
**
***
****
*****
21) Write code to translate to its equivalent name of the day of the week.(e.g. 1 to Sunday, 2 to Monday,……., 7 to Saturday). 3

No comments:
Post a Comment