Professional Documents
Culture Documents
Category: Fill in the blank/ True & False/ MCQ’s/ Match the following
Type
Q. Question Correct Answer (Knowledge/Concep
No. tual/
Reasoning/Skill/Un
derstanding
/Reasoning/Skill)
1. The loop variable should be updated Endless/ Knowledge
inside the body of the while loop Infinite
otherwise it will become ______________
loop.
2. In do while loop, the while must end with Semicolon Knowledge
a ________. /;
3. If a=5, then (a++ + - - a) will give the 11 Skill Based
output of a as ________.
4. If int a=15, b=7; then a%b will give the 1 Skill Based
output as _____________.
5. To assign a value to a variable ________ Assignment Operator(=) Knowledge
operator is used.
6. The statement if (10%3==0) returns true Knowledge
________ boolean value.
7. To convert a string value to a numeric parse Knowledge
value in a jTextField we use
_____________ methods.
8. Double data type is used for double Knowledge
_____________ precision floating point
values.
9. In an expression a=jTextField1.getText( ) , String Conceptual
the data type of a is ______________. Understanding
10. In Combo Box, index-1 indicates that No Knowledge
______ item is selected.
11. jList1.getSelectedValue() returns ________ Null Conceptual
value in case no item is selected. Understanding
12. Methods can be divided into two Setters Knowledge
categories getters and ___________.
13. The size of double data type in Java is 8 Knowledge
____ bytes.
14. If a=10, b=5, c=7, then a*b-3*c will give 29 Skill based
the output as _________.
15. If statement inside another if statement is Nested if Knowledge
known as ____________ statement.
16. If a=10, b=a++, then the value of b is 10 Knowledge
17. In a string “HAPPY” the index position 1 Conceptual
of A is ___________. Understanding
18. Integer.toString(100) will display 100 Conceptual
_______as output. Understanding
19. JOptionPane class is used only when we javax.swing. Knowledge
use import ______________ statement. JOptionPane;
20. round( ) method belongs to ____________ Math Knowledge
WORKSHOP ON OBJECTIVE TYPE QUESTIONS (OTQ’s)
Category: Fill in the blank/ True & False/ MCQ’s/ Match the following
class.
21. If grade=’A’, then the data type of grade Char Knowledge
is __________.
22. Switch and _________ statement are If Knowledge
conditional statements in Java.
23. Round ( ) method returns the closest Int Knowledge
______ value to the float argument.
24. The output of a=5*(3+2) is ___. 25 Skill Based
25. The expression 27%2 returns _________ 1 Skill Based
as output.
26. If Final =”*” + “HELLO” + “#”; then the *HELLO# Skill Based
output of Final is ____.
1 __________ is the method used to parseDouble() Conceptual
convert String data type into double
data type.
2. A++ is a _______ notation. postfix Conceptual
Category: Fill in the blank/ True & False/ MCQ’s/ Match the following
9. __________ are the symbols that operators Conceptual
manipulate, combine or compare
variables.
10. for, while and do…while are Iterative/looping Conceptual
______statements.
Category: Fill in the blank/ True & False/ MCQ’s/ Match the following
20. ___________ is example of parent JFrame/ JPanel/ JLabel Knowledge
control.
Category: Fill in the blank/ True & False/ MCQ’s/ Match the following
31 The lineWrap property is associated Text area Knowledge
with the ________ control.
Category: Fill in the blank/ True & False/ MCQ’s/ Match the following
39 isSelectedIndex() method of list box boolean Conceptual
returns ______ type of value.