You are on page 1of 2

WORKSHOP ON OBJECTIVE TYPE QUESTIONS (OTQ’s)

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

Date:……………….. Chapter / Unit No……………..

Category: Fill in the blank/ True & False/ MCQ’s/ Match the following
QNo. Question Correct Type (Knowledge
Answer based/ Conceptual
Understanding/
Reasoning
Based/Skill Based)
1. Can we store the result of round function directly in int FALSE Understanding
type variable?
2. Class is also known as user defined datatype. TRUE Knowledge based
3 Do we need to explicitly import any package to use Math FALSE Understanding
class?
4 Object is also known as real world entity. TRUE Knowledge based
5 ToString function is used to convert String type value into FALSE Knowledge based
int type value.
6 It is compulsory to import a package to use JOptionPane TRUE Knowledge based
class?
7 Math.pow function must require 2 arguments for its TRUE Knowledge based
calling
8 For a String, indexing starts from 1 in JAVA. FALSE Understanding
9 Math and String are not native classes in JAVA FALSE Knowledge based
10 In substring function second argument is optional. TRUE Understanding
11 The length method of String class returns the no. of TRUE Understanding
characters.
12 Method round(float) returns the closest int to the float TRUE Understanding
argument.
13 String is not a reference datatype FALSE Knowledge based
14 The trim method is used to removes trailing spaces FALSE Knowledge based
15 String functions are always called by using objects. TRUE Knowledge based
16 Trim function in JAVA is used to remove leading spaces. FALSE Knowledge based
17 String may be enclosed in single quotes in JAVA. FALSE Knowledge based
18 In Substring functions end index value must always TRUE Understanding
greater than the start index.
19 The output of “333”.length() is 3. TRUE Skill Based
20 toString function can be used to convert any datatype to TRUE Understanding
String datatype.
21 The Math class of JAVA is available under java.lan TRUE Knowledge based
package.
22 Math.pow(2,3) function returns the value 3 raise to power FALSE Skill Based
2.
23 The output of “abc”.concat(“xyz”).concat(“123”) is FALSE Skill Based
123xyzabc
24 The output of Math.round(1.5) is 2. TRUE Skill Based
25 The output of “information”.substring(2,6) is format FALSE Skill Based
1. Class is a user defined data type in Java. True Knowledge
2. Class is a primitive data type in Java. False Knowledge
3. An object is an instance of a class in Java. True Knowledge
WORKSHOP ON OBJECTIVE TYPE QUESTIONS (OTQ’s)

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

Date:……………….. Chapter / Unit No……………..

Category: Fill in the blank/ True & False/ MCQ’s/ Match the following
4. An object is capable of holding actual data in memory True Knowledge
locations.
5. Java does not support native classes like Math and String False Knowledge
with predefined methods.
6. It is necessary to import java.lang package for Math class. True Understanding
7. The pow(m,n) method of the Math class returns the value True Knowledge
m raised to n.
8. The round( ) method of Math class with double argument False Knowledge
returns the closest int value in Java.
9. The round( ) method of Math class with float argument True Knowledge
returns the closest int value in Java.
10. Strings are immutable in Java. True Knowledge
11. The index of the first character in a String is 1 in Java. False Knowledge
12. The concat( ) method concatenates the specified string to False Knowledge
the beginning of the given String in Java.
13. The toString ( ) method concatenates two strings in Java. False Knowledge
14. The toString ( ) method returns the object as a String in True Knowledge
Java.
15. The length( ) method returns the length of a String. True Knowledge
16. The trim( ) method is used to trim a String by removing False Knowledge
spaces from one side.
17. The trim( ) method is used to trim a number by removing False. Knowledge
zeroes.
18. The trim( ) method is used to trim a String by removing True Knowledge
spaces from both sides.
19. The trim( ) method is used to trim a String by removing False Knowledge
extra characters.
20. To convert a String in capital letters we use the function True Knowledge
toUpperCase( )
21. To convert a string in small letters, we use the function False Knowledge
LowerCase().
22. String is a primitive data type in Java. False Knowledge
23. In substring( ) method, second argument is optional. True Understanding
24. substring( ) method returns an int value in Java False Knowledge
25. substring( ) method in Java returns a substring of the True Knowledge
characters between the two specific positions of the
String.
26. “Application”.substring(3,4) will give the output “l”. True Skill Based
27. Trim () method belongs to Math Class. False Knowledge
28. The output of “#@.com”.length is 6. True Skill Based

You might also like