Questions

Q:

What are the different types of SQL statements ?

Answer

SQL statements are broadly classified into three. They are


1. DDL – Data Definition Language


DDL is used to define the structure that holds the data. For example, Create, Alter, Drop and Truncate table.


2. DML – Data Manipulation Language


DML is used for manipulation of the data itself. Typical operations are Insert, Delete, Update and retrieving the data from the table. The Select statement is considered as a limited version of the DML, since it can't change the data in the database. But it can perform operations on data retrieved from the DBMS, before the results are returned to the calling function.


3. DCL – Data Control Language


DCL is used to control the visibility of data like granting database access and set privileges to create tables, etc. Example - Grant, Revoke access permission to the user to access data in the database.

Report Error

View answer Workspace Report Error Discuss

4 2810
Q:

Answer the following Program

#define CHARSIZE 8

#define MASK(y) (1 << y % CHARSIZE)

#define BITSLOT (y) (y / CHARSIZE)

#define SET(x,y) ( x[BITSLOT(y)] = MASK(y) )

#define TEST(x,y) ( x[BITSLOT(y)] & MASK(y) )

#define NUMSLOTS(n) ((n + CHARSIZE - 1) / CHARSIZE)

 

Give the above macros how would you

1. declare an array arr of 50 bits

2. put the 20th bit on

3. test whether the 40th bit is on or off

Answer

1. char arr[NUMSLOTS(50)];


2. SET (arr, 20);


3. if (TEST (arr, 40))

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2809
Q:

Heat energy is transferred by conduction whenever molecules

A) collide each other B) means of photons
C) particles replaces there places D) All of the above
 
Answer & Explanation Answer: A) collide each other

Explanation:

Heat energy can be transferred by three major methods. They are 

 

1. Conduction,

2. Convection and

3. Radiation.

 

Conduction is the movement of heat through a substance by the collision of molecules

Convection occurs when particles with a lot of heat energy in a liquid or gas move and take the place of particles with less heat energy.

Radiation is the transfer of energy by means of photons in electromagnetic waves governed by the same laws. It occurs through a vacuum or any transparent medium.

Report Error

View Answer Report Error Discuss

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

1 2809
Q:

Who was appointed as NASSCOM chairman in April 2017 ?

A) C P. Gurnani B) Raman Roy
C) Smt. Singha D) None
 
Answer & Explanation Answer: B) Raman Roy

Explanation:

The National Association of Software and Services Companies (Nasscom) appointed Raman Roy (Managing Director of Quatrro Global Services) as its chairman for 2017-2018.

 Rishad Premji (Chief Strategy Officer (CSO), Wipro Limited) has been appointed Vice Chairman. Raman Roy has replaced Mr. CP Gurnani.

Report Error

View Answer Report Error Discuss

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

3 2809
Q:

When the Sun is near the horizon during the morning or evening, it appears reddish. The phenomenon that is responsible forth is observation is

A) reflection of light B) refraction of light
C) dispersion of light D) scattering of light
 
Answer & Explanation Answer: D) scattering of light

Explanation:

According to Rayleigh's law, the intensity of scattered light varies inversely as the fourth power of its wavelength. Sunlight consists of seven colours. Of these, red has the maximum wavelength. During sunrise and sunset, the rays have to travel a larger part of the atmosphere because they are very close to the horizon.Therefore, light other than red is mostly scattered away. Most of the red light, which is the least scattered, enters our eyes. Hence, the sun and the sky appear red.

Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: Bank Exams

3 2809
Q:

Which gas is not produced by volcanic eruptions?

A) Methane B) carbon dioxide
C) sulfur dioxide D) hydrochloric acid
 
Answer & Explanation Answer: A) Methane

Explanation:

Many toxic gases along with water vapour are emitted in vocanic eruptions. All such toxic gases include hydrochloric acid, sulfur dioxide, carbon dioxide, hydrogen sulfide and carbon monoxide. Methane is not produced in the volcanic eruptions.

which_gas_is_not_produced_by_volcanic_eruptions1559201445.jpg image

Report Error

View Answer Report Error Discuss

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

2 2809
Q:

Which of the following is NOT a social development scheme launched by the Government of India

A) Indira Awas Yojana B) Kutir Jyoti
C) LookEast Policy D) Operation Black Board
 
Answer & Explanation Answer: C) LookEast Policy

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy

2 2809
Q:

How To improve system redundancy using its grid architecture, where in the XIV System can a partition be mirrored?

A) on same disk in different modules B) on disks in other modules
C) on different disks in the same module D) on same disk, in same module, and in different modules
 
Answer & Explanation Answer: B) on disks in other modules

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: IBM Certification

1 2808