Questions

Q:

Can you suggest any other way of writing the following expression such that 30 is used only once?

a <= 20 ? b = 30 : c = 30 ;

Answer

*( ( a <= 20 ) ? &b : &c ) = 30;

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

1 2350
Q:

In the following question, a sentence has been given in Active/Passive voice. Out of four alternatives suggested, select the one, which best expresses the same sentence in Passive/Active voice.

Dark clouds have overcast the evening sky.

A) By the dark clouds the evening sky was overcast. B) The evening sky has been overcast by the dark clouds.
C) Dark clouds overcastted the evening sky. D) The sky of the evening was overcasted by dark clouds.
 
Answer & Explanation Answer: B) The evening sky has been overcast by the dark clouds.

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: AIEEE , Bank Exams , CAT

0 2350
Q:

In the following question, out of the four alternatives, select the alternative which is the best substitute of the phrase.

The punishment of being kept in school after hours.

A) Pretension B) Isolate
C) Detention D) Blender
 
Answer & Explanation Answer: C) Detention

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: AIEEE , Bank Exams , CAT , GRE , TOEFL

0 2350
Q:

A subquery in an sql select statement.

Answer

A Subquery or Inner query or a Nested query is a query within another SQL query and embedded within the WHERE clause.


Subqueries are most frequently used with the SELECT statement. The basic syntax is as follows::


SELECT column_name [, column_name ]
FROM table1 [, table2 ]
WHERE column_name OPERATOR
(SELECT column_name [, column_name ]
FROM table1 [, table2 ]
[WHERE])



A subquery is used to return data that will be used in the main query as a condition to further restrict the data to be retrieved.


Subqueries can be used with the SELECT, INSERT, UPDATE, and DELETE statements along with the operators like =, <, >, >=, <=, IN, BETWEEN, etc.


 


There are a few rules that subqueries must follow −


 


1. Subqueries must be enclosed within parentheses.


2. A subquery can have only one column in the SELECT clause, unless multiple columns are in the main query for the subquery to compare its selected columns.


3. An ORDER BY command cannot be used in a subquery, although the main query can use an ORDER BY. The GROUP BY command can be used to perform the same function as the ORDER BY in a subquery.


4. Subqueries that return more than one row can only be used with multiple value operators such as the IN operator.


5. The SELECT list cannot include any references to values that evaluate to a BLOB, ARRAY, CLOB, or NCLOB.


6. A subquery cannot be immediately enclosed in a set function.


7. The BETWEEN operator cannot be used with a subquery. However, the BETWEEN operator can be used within the subquery.

Report Error

View answer Workspace Report Error Discuss

0 2349
Q:

Collisions occur at curves because

A) speed on the approach is too great B) speed leaving the curve is not enough
C) speed leaving the curve is too great D) speed on the approach is not enough
 
Answer & Explanation Answer: A) speed on the approach is too great

Explanation:

Collisions occur at curves because speed on the approach is too great.

Collisions_occur_at_curves_because1560944223.jpg image

Report Error

View Answer Report Error Discuss

Filed Under: General Science
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

1 2349
Q:

Light travels in a straight line (rectilinear propagation of light). This statement does hold if the medium of travel for light is

A) of variable refractive index B) made up of slabs of different refractive indices
C) homogeneous and transparent D) inhomogeneous and transparent
 
Answer & Explanation Answer: C) homogeneous and transparent

Explanation:

In vacuum and in homogeneous, transparent media, such as air, water, and glass, light moves in a straight line. When light encounters a boundary between two different transparent media, some light is reflected and some moves from the first into the second medium.

Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: Bank Exams

1 2349
Q:

India is the which largest solar market in the world?

A) First B) Second
C) Seventh D) Fourth
 
Answer & Explanation Answer: B) Second

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

0 2348
Q:

Which state declared best state for active participation in Swasth Bharat Yatra?

A) Karnataka B) Telangana
C) Tamilnadu D) Uttar Pradesh
 
Answer & Explanation Answer: C) Tamilnadu

Explanation:

Best state for active participation in Swasth Bharat Yatra is Tamilnadu.

Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

0 2348