You are on page 1of 2

WORKSHOP ON OBJECTIVE TYPE QUESTIONS (OTQ’s)

Informatics Practices (265-Old Syllabus)

Date: 15-MAY-2019 Chapter -5 (Advanced Programming


connceps)

Category: Fill in the blanks

QNo. Question Correct Type (Knowledge based /


Answer Conceptual Understanding/
Reasoning Based/Skill
Based)
1. The……..method of String class returns the String after trim Knowledge based
removing the leading and trailing spaces.
2. The……..method returns the length of the String. length Knowledge based
3 ………..is an instance of a class. object Knowledge based
4 The………method returns the string converted to lower toLowerCase Knowledge based
case.
5 The……… method returns the object as a string. toString Understanding
6 Math.pow(2,3) returns the output………. 8.0 Skill Based
7 System.out.println(Math.round(100.675)) output 101 Skill Based
is…………
8 ……..is the used to change the case from lower to upper toUpperCase Knowledge based
case.
9 The ………. operator is used to join 2 or more Strings. + Skill Based
10 ………is the first position in String. 0 Knowledge based
11 String must be written within………quotes. double Knowledge based
12 The………function is used to extract the part of a string. Substring Skill Based
13 Class is also known as ……….defined data type. User Skill Based
14 Sequence of characters is called………. String Skill Based
15 ……..is a class which contains method for basic Math Knowledge based
numerical operations like rounding of the number.
16 A……..is used to encapsulate data and methods together Class Knowledge based
in a single unit.
17 Math and ….. classes are the native classes in JAVA. String Knowledge based
18 Concat methods takes……argument(s). 1 Skill Based
19 ………string function returns the numerical value. Length Knowledge based
20 In a String “abcde” the index of letter ‘c’ is 2 Skill Based
……..
21 The result of 4+”4”.length() is……… 5 Skill Based
22 toLowerCase function is an example of…….. String Knowledge based
class function.
23 Round function can accept double as well as……… float Understanding
arguments.
24 If str=”science” than the result of “computer”.concat(str) computerscienc Understanding
is………………. e
25 The output of “AMIT”.substring(3) is ……. T Understanding
1. Class is a blueprint of similar type of _______. Objects Knowledge
2. Length() method retrieves the length of _____. String Knowledge
3. The _________ method is used to extract specified Substring Knowledge
number of characters from a string.
4. Integer is ____________ data type in Java. Primitive/ Knowledge

fundamental
5. The trim( ) method is used to trim a string by removing Spaces Knowledge
_____________ from both sides.
6. The equivalent operator for concat( ) method is _____. + Knowledge
7. To combine firstname and lastname in an application a Concat() Knowledge
programmer should use _______ method.
8. If str1=”Happy”, str2=”Sunday”, then the output of HappySunday Skill Based
str1.concat(str2) is ___________.
9. Concat() method can also be replaced by __________ + Knowledge
operator.
10. toLowerCase() method has ____ argumaents. No Knowledge
11. If String F1=”I#N#T#E#G#R” then int l=F1.length() will 11 Skill Based
result as
12. If float n=1456.75f, then Math.round(n) will give the 1457 Skill Based
output as ________ value.
13. trim() method belongs to _________ class. String Knowledge
14. The ____ method is used to extract specified number of Substring Knowledge
characters from a string.
15. The String class belongs to __________ package. java. lang Knowledge

You might also like