You are on page 1of 6

WORKSHOP ON OBJECTIVE TYPE QUESTIONS (OTQ’s)

Informatics Practices(265-Old Syllabus/ 065-New Syllabus)

Date:……………….. Chapter / Unit No Chapter 3 and 4

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)

Informatics Practices(265-Old Syllabus/ 065-New Syllabus)

Date:……………….. Chapter / Unit No Chapter 3 and 4

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

3. The do…while loop executes at least Once Knowledge


________even if the condition
evaluates to false.
4. _____ is used to display the Inspector Window Conceptual
hierarchy of all the components
placed on a form in the NetBeans
IDE.
5. The isEditable() method returns the boolean Conceptual
value of _____ data type.

6. The append() method is used with Text area Conceptual


the_____Swing control.

7. To restrict only single selection in a SINGLE Conceptual


list box, the _________ value of
selectionMode property can be used.

8. The ____________ value of the SINGLE_INTERVAL


selectionMode property is used to Conceptual
allow a contiguous list of items in a
listbox.
WORKSHOP ON OBJECTIVE TYPE QUESTIONS (OTQ’s)

Informatics Practices(265-Old Syllabus/ 065-New Syllabus)

Date:……………….. Chapter / Unit No Chapter 3 and 4

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.

11. __________ are the named memory Variables Conceptual


locations to store data.

12. __________ property is used to add model Conceptual


and display values in a list box.

13. The Concatenation operator is used numeric Knowledge


to convert________ data types into
String.
14. showConfirmDialog() is a method of JOptionPane Conceptual
the _________ class in Java.

15. ___________ property contains the selectedIndex Conceptual


index value of the selected option in
a list box/combo box
16. The____________component allows Text area Conceptual
to input multiple lines of text.

17. The setSelected() method accepts the boolean Conceptual


value of_____data type.

18. The logical operator && returns true true Conceptual


only if both the relational expressions
return_______.
19. Components are also known as Controls/widgets/objects Conceptual
_______.
WORKSHOP ON OBJECTIVE TYPE QUESTIONS (OTQ’s)

Informatics Practices(265-Old Syllabus/ 065-New Syllabus)

Date:……………….. Chapter / Unit No Chapter 3 and 4

Category: Fill in the blank/ True & False/ MCQ’s/ Match the following
20. ___________ is example of parent JFrame/ JPanel/ JLabel Knowledge
control.

21. The expression 5+4*6%2 5 Reasoning


returns________

22. To restrict single selection from buttonGroup Conceptual


multiple radio buttons, we can use
the __________ property.
23. The conditional expression is always parenthesis Conceptual
enclosed in ________

24. If a loop does not stop executing, it is endless/infinite loop Knowledge


known as _______ loop.

25. int A=7, B; 8 Reasoning


B=++A;
The value of B will be_____.
26. int A, B=6; 2 Reasoning
A=(5*B++)%7;
The value of A will be_____.
27. for(i=5;i<4;i++) loop executes zero Reasoning
______times.

28. for(i=2;i>=0;i--) loop executes infinite Reasoning


_______times.

29 for(x=2;x<=5;x++) loop will 6 Reasoning


terminate when the value of x will
become_________.
30 Integrated Development Knowledge
The expansion of IDE is _________ Environment
WORKSHOP ON OBJECTIVE TYPE QUESTIONS (OTQ’s)

Informatics Practices(265-Old Syllabus/ 065-New Syllabus)

Date:……………….. Chapter / Unit No Chapter 3 and 4

Category: Fill in the blank/ True & False/ MCQ’s/ Match the following
31 The lineWrap property is associated Text area Knowledge
with the ________ control.

32 If the value of a is 10, write the jTextField1.setText(“”+a); Reasoning


correct Java statement for the
following incorrect statement:
jTextField1.setText(a);
_______________________

33 If the value of x=3, then the Reasoning


statement if(x>3) will return: False
_____________

34 Converting a value from one data Type casting Knowledge


type to another is called ________

35 The statement Third Knowledge


jList1.setSelectedIndex(2) will select
the value at ________ position in the
list box - jList1.

36 To restrict editing in jTextField1, editable Knowledge


the _________ property of text field
should be set to false.

37 ____________ operators are used to Logical Knowledge


combine relational expressions.

38 __________ values are enclosed Character/char Conceptual


within single quotes only.
WORKSHOP ON OBJECTIVE TYPE QUESTIONS (OTQ’s)

Informatics Practices(265-Old Syllabus/ 065-New Syllabus)

Date:……………….. Chapter / Unit No Chapter 3 and 4

Category: Fill in the blank/ True & False/ MCQ’s/ Match the following
39 isSelectedIndex() method of list box boolean Conceptual
returns ______ type of value.

40 The output of the expression – 7.52.5 Knowledge


(“”+7.5+2.5) is__________

41 The Swing controls________ and Check box, list box Knowledge


______ are used for multiple
selection of options.

42 The Swing controls________ and Radio button, combo box Knowledge


______ are used to select single item
from the given list of options.

43 The output of the expression – 10 Knowledge


(“”+(7.5+2.5)) is__________

You might also like