Questions

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 2707
Q:

When is cladistics more useful than linnaean taxonomy?

A) nomenclature B) classification
C) identification D) evolutionary relationship
 
Answer & Explanation Answer: D) evolutionary relationship

Explanation:
Report Error

View Answer Report Error Discuss

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

1 2706
Q:

What is market risk?

Answer

It refers to the possibility for an investor to experience  losses due to  factors that affect the overall performance of the financial markets. Market risk cannot be eliminated through diversification, though it can be hedged against. The sources of market risk include natural disasters, recessions, political turmoil, changes in interest rates and terrorist attacks.

Report Error

View answer Workspace Report Error Discuss

0 2705
Q:

Which of the following Articles of Indian Constitution guarantees freedom to press?

A) Article 16 B) Article 19
C) Article 22 D) Article 31
 
Answer & Explanation Answer: B) Article 19

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics

1 2705
Q:

Visible light has a higher frequency than

A) Radio waves B) X rays
C) Ultra violet D) All the above
 
Answer & Explanation Answer: A) Radio waves

Explanation:

Radio waves have much longer wavelengths and lower frequencies than do visible light waves. In contrast, X-rays have much shorter wavelengths and higher frequencies. 

Ultraviolet Light (UV). part of the electromagnetic spectrum that consists of waves with frequencies higher than those of visible light and lower than those of x-rays.

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

2 2704
Q:

In HTML, ___________ tag is used to construct drop-down list boxes and scrolling list boxes.

A) <SELECT> B) <OPTION>
C) <TEXTAREA> D) <INPUT>
 
Answer & Explanation Answer: A) <SELECT>

Explanation:
Report Error

View Answer Report Error Discuss

58 2704
Q:

Project Life Cycle - Characteristic of Project Phases

What is a deliverable?

Answer

A deliverable is a measurable, verifiable work product such as a specification, feasibility study report, detailed design document, or working prototype.

Report Error

View answer Workspace Report Error Discuss

0 2704
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 2702