Monday, February 22, 2010

Class Test- Chapter 4-8

CLASS TEST
XI - INFORMATICS PRACTICES
Time: 90 min. MM: 40
Note: All questions are compulsory. Marks are indicated before questions.
1. What is a token? (½)
2. What is the use of \n and \t escape sequences? (½)
3. What is the use of button group? ( ½)
4. What are the keywords? Name any 5 keywords. (1)
5. What are the identifiers? Give rules to form an identifier.
(1)
6. Name any 2 components and 2 container controls. (1)
7. What is the use of layout manager? Name any 4 layout manager. (1)
8. What is the use of mnemonic property? Write the steps to apply it. (1)
9. What is an event? Name any two events. (1)
10. What is the significance of data types in Java? Name any four data types. (1)
11. Write at least 5 points on switch vs if else. (2)
12. What is the use of common handler? Describe with an example.
(2)
13. Describe relational operators with an example each (2)
14. Describe the following with an example each. (3/2)
i. getText() method
ii. parse_____() method
iii. setText() method
15. Calculate the value of a, b, c & d. Given a=-13, b=24, c=39
(1)
d=--a + b++ - ++c + a++ - --b - c--;
16. Evaluate the given expression.
(1)
k=Math.pow(2,4)+27+Math.sqrt(361)*2+Math.ceil(12.4)-Math.floor(13.9)
-Math.rint(39.56)-Math.abs(-15)+Math.max(7,3)-Math.min(3,7);
17. Write the corresponding Java expression for the following mathematical expression.
(1)

k=√xy+√a2+b2+c3+3-2ye2y-|ex-x|+n*log(-3)+p/q;
18. Write a program to find greatest number among three numbers.
(2)
19. Write a program to print table of 19 in Text Area by using for, while & do while loop. (3)
20. Write a program to find out the given character is a vowel or a consonant
by using switch case.
(2)
21. Write a program to calculate factorial of a given number.(2)
22. Write a program to print the following pattern.
(2)
*****
****
***
**
*
23. Write a program to perform add and delete operation in list box control at a
specific index.
(2)
24. Find out the differences between the following with example. (8)
i. break statement and continue statement
ii. declaration and initialization of a variable
iii. textbox control and passwordfield control
iv. checkbox control and radio button control

No comments:

Post a Comment