IT Trainer Questions


Q:

What is String Args in Java?

Answer

String Args (String []) is an array of parameters of type String.


In Java, 'args' contains the supplied command-line arguments as an array of String objects. In other words, if you run your program as 'java MyProgram Hello World' then 'args' will contain ["Hello", "World"]. When a java class is executed from the console, the main method is what is called.

Report Error

View answer Workspace Report Error Discuss

9 2647
Q:

When someone clicks your ad, the actual amount you’re charged will be

A) The minimum needed to hold your ad position, under the maximum cost-per-click limit B) The minimum needed to hold your ad position or 50% of your maximum cost-per-click bid, whichever is greater
C) The minimum needed to hold your ad position but never more than 120% of your maximum cost-per-click bid, whichever is greater D) The minimum needed to hold your ad position but never less than 50% of your maximum cost-per-click bid, whichever is greater
 
Answer & Explanation Answer: A) The minimum needed to hold your ad position, under the maximum cost-per-click limit

Explanation:

When_someone_clicks_your_ad,_the_actual_amount_you’re_charged_will_be1551856891.png image

When someone clicks your ad, the actual amount you’re charged will be " The minimum needed to hold your ad position, under the maximum cost-per-click limit ".

Report Error

View Answer Report Error Discuss

4 2632
Q:

How many inches is 5' 4"?

A) 66 B) 64
C) 62 D) 60
 
Answer & Explanation Answer: B) 64

Explanation:

We know 1 feet = 12 inches.

According to the question,

5' 4''  =  5 feet 4 inches = 12 x 5 + 4 = 64 inches.

 

Hence,  5' 4''  =  5 feet 4 inches = 64 inches. 

Report Error

View Answer Report Error Discuss

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

0 2621
Q:

XML preserves white spaces.

A) TRUE B) FALSE
Answer & Explanation Answer: A) TRUE

Explanation:

True, the given statement that xml preserves white spaces is correct.

Report Error

View Answer Workspace Report Error Discuss

1 2618
Q:

The multi part identifier could not be bound is

Answer

One of the most common errors that you might face in join statements is 


 


Server: Msg 4104, Level 16, State 1, Line 1
The multi-part identifier could not be bound.


 


A multipart identifier is any description of a field or table that contains multiple parts - for instance MyTable.SomeRow - if it can't be bound that means there's something wrong with it - either you've got a simple typo, or a confusion between table and column. It can also be caused by using reserved words in your table or field names and not surrounding them with [].


 


The main reason for this error is that the source table cannot be found, for example if you have statement such as Table1.OrderDate, and then if you get error above, this means that Table1 cannot be found in the query. Sometimes you can see that source table exists in the query, but T-SQL cannot understand it, especially when you write join statements.

Report Error

View answer Workspace Report Error Discuss

0 2612
Q:

What is the difference between creating String as new() and literal ?

Answer

When we create string with new() Operator, it’s created in heap and not added into string pool while String created using literal are created in String pool itself which exists in PermGen area of heap.



String s = new String("Test");

does not put the object in String pool , we need to call String.intern() method which is used to put them into String pool explicitly. its only when you create String object as String literal e.g. String s = "Test" Java automatically put that into String pool.

Report Error

View answer Workspace Report Error Discuss

1 2610
Q:

You can use display planner to

A) add ads B) research keywords
C) display network D) All of the above
 
Answer & Explanation Answer: C) display network

Explanation:

Display Planner is a free Google Ads tool you can use to plan your Display Network ad campaigns.

Report Error

View Answer Report Error Discuss

3 2609
Q:

The more you take the more you leave behind. What is it?

Answer

Footsteps. 


Yes, as you walk forward, you will leave the footstep behind you.

Report Error

View answer Workspace Report Error Discuss

8 2607