IT Trainer Questions


Q:

 What is the string contained in s after following lines of code?

StringBuffer s = new StringBuffer(“Hello”); s.deleteCharAt(0);  ?

A) llo B) Hllo
C) ello D) H
 
Answer & Explanation Answer: C) ello

Explanation:

deleteCharAt() method deletes the character at the specified index location and returns the resulting StringBuffer object.

So after deleting the character at 0 ie 'H', the string returns 'ello' as the output.

Report Error

View Answer Report Error Discuss

Filed Under: Java
Job Role: Analyst , IT Trainer

3 38998
Q:

Thread is to String as Cask is to

A) Barrel B) Disc
C) Wallet D) Box
 
Answer & Explanation Answer: A) Barrel

Explanation:

Here Thread and String are Synonyms of each other. Then the answer will be the synonym of Cask. 

  • Cask is nothing but a large barrel-like container used for storing liquids, typically alcoholic drinks. 

Ex : Drum, Vessel, Tank, Barrel, Hogshead, Firkin,...

 

  • Here from the options Barrel is the only synonym of Cask.

 

Thus,  Thread : String :: Cask : Barrel

Report Error

View Answer Report Error Discuss

Filed Under: Analogy
Exam Prep: AIEEE , Bank Exams , CAT , GATE , GRE , TOEFL
Job Role: Analyst , Bank Clerk , Bank PO , Database Administration , IT Trainer

45 38942
Q:

Find the next number in the given number series?

50, 51, 47, 56, 40, ?

A) 58 B) 65
C) 76 D) 81
 
Answer & Explanation Answer: B) 65

Explanation:

The given number series is 50, 51, 47, 56, 40, ?

 

5050 + 12 = 5151 - 22 = 4747 + 32 = 5656 - 42 = 4040 + 52 = 65

 

Hence, the next number in the given number series is 65.

Report Error

View Answer Report Error Discuss

3 38484
Q:

Find the next number in the given number series?

35, 36, 55, 111, ?

A) 278.5 B) 264.5
C) 212.5 D) 202
 
Answer & Explanation Answer: A) 278.5

Explanation:

The given number series is 35, 36, 55, 111, ?

35

35 x 1 + 1 = 36

36 x 1.5 + 1 = 55

55 x 2 + 1 = 111

111 x 2.5 + 1 = 278.5

 

Hence, the next number in the given number series is 278.5.

Report Error

View Answer Report Error Discuss

2 38171
Q:

Which operator performs pattern matching ?

A) LIKE operator B) EXISTS operator
C) BETWEEN operator D) None of these
 
Answer & Explanation Answer: A) LIKE operator

Explanation:

LIKE is a keyword that is used in the WHERE clause. Basically, LIKE allows us to do a search based operation on a pattern rather than specifying exactly what is desired (as in IN) or spell out a range (as in BETWEEN).

 

The syntax is as follows:
SELECT "column_name"
FROM "table_name"
WHERE "column_name" LIKE {PATTERN}

 

{PATTERN} often consists of wildcards.

 

In SQL, there are two wildcards:


% (percent sign) represents zero, one, or more characters.

_ (underscore) represents exactly one character.

 

More :: Certification Questions on SQL

Report Error

View Answer Report Error Discuss

38 38118
Q:

Find the next number in the given number series?

11, 5.5, 10, 6.5, 9, ?

A) 6.5 B) 7.5
C) 8.5 D) 10.5
 
Answer & Explanation Answer: B) 7.5

Explanation:

The given number series follows a pattern that

11

11 - 5.5 = 5.5

5.5 + 4.5 = 10

10 - 3.5 = 6.5

6.5 + 2.5 = 9

9 - 1.5 = 7.5

 

Hence, the next number in the given number series is 7.5.

Report Error

View Answer Report Error Discuss

Filed Under: Odd Man Out
Exam Prep: AIEEE , Bank Exams , CAT , GATE
Job Role: Analyst , Bank Clerk , Bank PO , IT Trainer

2 37509
Q:

Find the next number in the given number series?

96, 95, 87, 78, ?

A) 64 B) 57
C) 29 D) 14
 
Answer & Explanation Answer: D) 14

Explanation:

The given number series is 96, 95, 87, 78, ? 

It follows a pattern that,

9696 - 12 = 9595 - 23 = 95 - 8 = 8787 - 32 = 87 - 9 = 7878 - 43 = 78 - 64 = 14

 

Hence, the next number in the given number series is 14.

Report Error

View Answer Report Error Discuss

Filed Under: Odd Man Out
Exam Prep: AIEEE , Bank Exams , CAT , GATE
Job Role: Analyst , Bank Clerk , Bank PO , IT Trainer

3 37413
Q:

Which tag is used to display the numbered list?

 

1) <ol> </ol>    2) <li></li>     3) <ul> </ul>    4) <dl> </dl>

A) 1 B) 2
C) 3 D) 4
 
Answer & Explanation Answer: A) 1

Explanation:

Use HTML tag <ol> element to define an ordered list.

Use the HTML type attribute to define the numbering type. Use the HTML <li> element to define a list item. Use the HTML <dl> element to define a description list.

 

Hence, as numbered list come under ordered list tag <ol> tag is used for numbered list.

Report Error

View Answer Report Error Discuss

17 37280