IT Trainer Questions


Q:

What do you mean by undeclared and undefined variables ?

Answer

Difference between undeclared and undefined variables is defined as


Undeclared variables are those that do not exist in a program and are not declared. If the program tries to read the value of an undeclared variable, then a runtime error is encountered.


Undefined variables are those that are declared in the program but have not been given any value. If the program tries to read the value of an undefined variable, an undefined value is returned.

Report Error

View answer Workspace Report Error Discuss

4 3453
Q:

What is Marker Interface?

Answer

An interface without having any methods and by implementing that interface if our objects will get same ability such type interfaces are called marker interface (or) ability interface (or) tag interface

Report Error

View answer Workspace Report Error Discuss

Subject: Java
Job Role: IT Trainer

1 3452
Q:

Which online security campaign has been launched by Google India to safeguard internet users?

A) #SecurityCheckKiya B) #InternetSafetyKiya
C) #OnlineSecurityKiya D) #SecureInternetKiya
 
Answer & Explanation Answer: A) #SecurityCheckKiya

Explanation:

Google has launched new online security campaign #SecurityCheckKiya in India to promote security awareness among general public. The purpose of the campaign is to protect young and first-time web users from account hijacking, safeguard Android devices from malicious apps and secure all their personal data if they lose their device.

Report Error

View Answer Report Error Discuss

2 3447
Q:

What is the primary purpose of most constitutions?

A) to provide a substitute for government B) to define and limit government power
C) to give the government absolute power D) to define a moral code for people to follow
 
Answer & Explanation Answer: B) to define and limit government power

Explanation:

There are many reasons why a constitution is needed. One of the primary purposes is to define and limit power of the government.

It gives the structures for the functioning of the country such as courts and parliament and limits the power.

e.g. to imprison without trial for the government.

Report Error

View Answer Report Error Discuss

4 3446
Q:

Magnetic field lines about a current-carrying wire

A) circle the wire in closed loops B) extend radially from the wire
C) both of these D) None of the above
 
Answer & Explanation Answer: A) circle the wire in closed loops

Explanation:

Electric current produces a magnetic field. This magnetic field can be visualized as a pattern of circular field lines surrounding a wire.

Report Error

View Answer Report Error Discuss

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

3 3439
Q:

A text book of mathematics cost 2 Rs/- more than a text book of literature. If 5 literature books cost 38 Rs/- more than 3 mathematics books, what is the cost of each literature book?

A) 44 B) 22
C) 24 D) 11
 
Answer & Explanation Answer: B) 22

Explanation:

Let each literature text book cost be Rs. X

Then, cost of mathematics text book = Rs. (X + 2)

ATQ,

5X = 38 + 3(X + 2)

5X = 38 + 3X + 6

2X = 44

X = 22.

 

Therefore, cost of each literature text book = Rs. X = Rs. 22.

And that of masthematics = X + 2 = Rs. 24.

Report Error

View Answer Report Error Discuss

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

3 3437
Q:

Which sentence contains both an adverb and a conjunction?

A) Adam crept silently up the stairs, but couldn't slow his heartbeat. B) The storm caused flooding as predicted.
C) Sneha was a kind person, but she hated people who spread rumors. D) Do you want the shrimp or the crab?
 
Answer & Explanation Answer: A) Adam crept silently up the stairs, but couldn't slow his heartbeat.

Explanation:

The sentence which contains both an adverb and a conjunction is "Adam crept silently up the stairs, but couldn't slow his heartbeat."

 

Here, Adverb - Silently and Conjunction - But.

Report Error

View Answer Report Error Discuss

5 3435
Q:

5 + 2 x 10 =

A) 70 B) 20
C) 25 D) 52
 
Answer & Explanation Answer: C) 25

Explanation:

According to BODMAS rule,

After multiplication only, addition is done.

Hence,

5 + 2 x 10 = 5 + 20 = 25.

Report Error

View Answer Report Error Discuss

4 3434