IT Trainer Questions


Q:

What are intents, shared preference in android ?

Answer

An Android Intent is an abstract description of an operation to be performed. It can be used with startActivity to launch an Activity, broadcastIntent to send it to any interested BroadcastReceiver components, and startService(Intent) or bindService(Intent, ServiceConnection, int) to communicate with a background Service.The intent itself, an Intent object, is a passive data structure holding an abstract description of an operation to be performed.
Android provides many ways of storing data of an application. One of this way is called Shared Preferences. Shared Preferences allow you to save and retrieve data in the form of key,value pair.


In order to use shared preferences, you have to call a method getSharedPreferences() that returns a SharedPreference instance pointing to the file that contains the values of preferences.

Report Error

View answer Workspace Report Error Discuss

3 2521
Q:

The difference of squares of two numbers is 180. The square of the smaller number is 8 times the larger number. Find two numbers.

A) 10 & 12 B) 10 & 18
C) 12 & -18 D) -12 & 18
 
Answer & Explanation Answer: D) -12 & 18

Explanation:

Given, difference of the squares of two numbers is 180.

k2 - l2 - 180

 

Also, square of the smaller number is 8 times the larger.

= l= 8k

 

Thus, k2 - 8a - 180 = 0

k2 – 18k + 10k - 180 = 0

→  k(k - 18) + 10(k – 18) = 0

= (k + 10)(k – 18) = 0

→  k = -10, 18

 

Thus, the other number is

324 - 180 = l2 

 

→ Numbers are 12, 18 or -12, 18.

Report Error

View Answer Report Error Discuss

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

0 2520
Q:

Who makes it has no need of it.

What is it?

Answer

A Coffin.

Report Error

View answer Workspace Report Error Discuss

3 2518
Q:

A data warehouse is composed of

A) current data B) internal and external data sources
C) historical data from legacy systems D) historical & current data
 
Answer & Explanation Answer: C) historical data from legacy systems

Explanation:

A data warehouse is a relational database that is designed for query and analysis rather than transaction processing. It usually contains historical data that is derived from transaction data, but it can include data from other sources. Data warehouses are designed to help you analyze your data.

Report Error

View Answer Report Error Discuss

Filed Under: Oracle
Job Role: Database Administration , IT Trainer

3 2515
Q:

The resolution of a printer is measured in

A) DPI B) Megabits
C) Hertz D) Inches
 
Answer & Explanation Answer: A) DPI

Explanation:

Dots per inch (DPI, or dpi) is a measure of spatial printing or video or image scanner dot density, in particular the number of individual dots that can be placed in a line within the span of 1 inch (2.54 cm).

Report Error

View Answer Report Error Discuss

1 2515
Q:

Standing on your toes as in ballet, is an example of

A) plantar extension B) plantar flexion
C) adduction D) dorsiflexion
 
Answer & Explanation Answer: B) plantar flexion

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: AIEEE , Bank Exams , CAT , GRE , TOEFL
Job Role: Analyst , Bank Clerk , Bank PO , IT Trainer

1 2513
Q:

Which is a reserved word in the java programming language?

A) Variable B) Identifier
C) Keyword D) Main
 
Answer & Explanation Answer: C) Keyword

Explanation:

Reserved words are words that cannot be used as object or variable names in a Java program because they're already used by the syntax of the Java programming language.

Java reserved words are keywords that are reserved by Java functions or other uses that cannot be used as identifiers (e.g., variable names, function names, class names).

If a reserved word was used as a variable you would get an error or unexpected result.

 

Examples : Int, Long, Abstract, Class, Break, Catch, Case, Public, Static, Void,...

 

 

Report Error

View Answer Report Error Discuss

1 2513
Q:

In a spreadsheet program how is data organized?

A) Rows and columns B) Layers and planes
C) Lines and spaces D) All of the above
 
Answer & Explanation Answer: A) Rows and columns

Explanation:
Report Error

View Answer Report Error Discuss

6 2510