IT Trainer Questions


Q:

what will be the output of the following code?

class Value
{
    public int i = 15;
}
public class Test
{
    public static void main(String argv[])
    {
        Test t = new Test();
        t.first();
    }
    public void first()
    {
        int i = 5;
        Value v = new Value();
        v.i = 25;
        second(v, i);
        System.out.println(v.i);
    }
    public void second(Value v, int i)
    {
        i = 0;
        v.i = 20;
        Value val = new Value();
        v =  val;
        System.out.println(v.i + " " + i);
    }
}

A) 15 0 2 B) 15 0 0
C) 15 20 0 D) 15 0 20
 
Answer & Explanation Answer: D) 15 0 20

Explanation:
Report Error

View Answer Report Error Discuss

4 8166
Q:

A ball is thrown vertically upward from the ground. It crosses a point at the height of 25 m twice at an interval of 4 seconds. The ball was thrown with the velocity of

A) 18 m/s B) 25 m/s
C) 30 m/s D) 36 m/s
 
Answer & Explanation Answer: C) 30 m/s

Explanation:

The interval between object pass the same point is 4 sec.

That means in 2 sec, object reaches the top and in next 2 sec, it again reaches the same point.

By the info given, we can find the velocity of that point by using : v=u+(-gt)

0= u - 10×2

u = 20

Then the velocity at 25m is 20m/sec.

so the initial velocity is


-v2 = u2 + (-2gh)400 = u2 - 2x 10 x 25u2 = 900 => u = 30 m/s

Report Error

View Answer Report Error Discuss

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

8 8139
Q:

Word length of a personal computer is

A) 32 bit B) 16 bit
C) 8 bit D) 4 bit
 
Answer & Explanation Answer: C) 8 bit

Explanation:

Word length refers to the number of bits processed by a computer's CPU in one go. These days, typically 32 bits or 64 bits are used.

Data bus size, instruction size, address size are usually multiples of the word size.

Report Error

View Answer Report Error Discuss

11 8130
Q:

JavaScript is designed for following purpose

A) To add interactivity to HTML Pages. B) To Execute Query Related to DB on Server
C) To Style HTML Pages D) To Perform Server Side Scripting Opertion
 
Answer & Explanation Answer: A) To add interactivity to HTML Pages.

Explanation:
Report Error

View Answer Report Error Discuss

0 8083
Q:

INI extension refers usually to what kind of file?

A) System file B) Image Color Matching Profile file
C) Hypertext related file D) Image file
 
Answer & Explanation Answer: A) System file

Explanation:

".INI" is an extention for all the configuration files in the system. 

 

Hence, .ini is an extension for System files.

Report Error

View Answer Report Error Discuss

6 8041
Q:

When combining with nonmetallic atoms, metallic atoms generally will

A) Lose electrons and forms cations B) Gain electrons and forms anions
C) Lose electrons and forms anions D) Gain electrons and forms cations
 
Answer & Explanation Answer: A) Lose electrons and forms cations

Explanation:

When combining with nonmetallic atoms, metallic atoms generally will Lose electrons and forms cations.

 

As the ionization energy of te metals are very low, so they can easily lose electrons and form positively charged ion called cations.

Report Error

View Answer Report Error Discuss

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

3 8040
Q:

M, K, J, T, R, D and W are seven members of a family. There are two married couples among them belonging to two different generations. Each of them has a different choice of cuisine - Chinese, Continental, Thai, Punjabi, South Indian, Gujarati and Malwani. The grandfather in the family likes Gujarati food. None of the ladies likes Continental or Thai food. T is the son of M, who likes Chinese food. W is J's daughter-in-law and she likes South Indian food. K is grandfather of D, who likes Punjabi food. J is mother of R, who likes Continental food.

Question 1:

How is R related to D?

a) Father b) Brother c) Uncle d) Data inadequate

 

Question 2:

Which of the following group contains one each from the same generations?

a) JRT b) JRW c) MRD  d) MWT

Answer

Answer 1:
c) Uncle
R is Uncle to D.


 


Answer 2:
a) JRT
JRT are one each from the same generations.

Report Error

View answer Workspace Report Error Discuss

7 8015
Q:

1001 A N means

Answer

1001 A N means 1001 Arabian Nights.


 


These are same as 12 S of the Z, 64 S on a C, 19 C in CB, 8 S on SS, ...

Report Error

View answer Workspace Report Error Discuss

7 7939