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

Which city ranks 40 among top 50 global cities for women entrepreneurs listing ?

A) Hyderabad B) Chennai
C) Delhi D) Bangalore
 
Answer & Explanation Answer: D) Bangalore

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Famous Places
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Bank Clerk , Bank PO

8 2710
Q:

what are the hardware interrupts?

Answer

TRAP, RST7.5, RST6.5, RST5.5, INTR.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 2708
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 2708
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 2708
Q:

Service tax was introduced in India in the year :

A) 1994 B) 1993
C) 1992 D) 1991
 
Answer & Explanation Answer: A) 1994

Explanation:
Report Error

View Answer Report Error Discuss

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

2 2708
Q:

Nucleoli are present during

A) prophase B) anaphase
C) interphase D) prometaphase
 
Answer & Explanation Answer: C) interphase

Explanation:

Nucleoli are present during Interphase.

Chromosomes become visible during Prophase.

Centromeres divide and sister chromatids become full-fledged chromosomes during Anaphase.

Spindle fibers attach to kinetochores during Prometaphase.

 

Report Error

View Answer Report Error Discuss

Filed Under: Biology
Exam Prep: AIEEE
Job Role: Analyst

6 2708
Q:

Light travels fastest in

A) Air B) Water
C) Glass D) Diamond
 
Answer & Explanation Answer: A) Air

Explanation:

Light travels fastest in Vacuum. The fastest thing in the whole universe is the speed of light in a vacuum like outer space. It is about 2.99 x 108 m/s. 

Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: AIEEE , Bank Exams , CAT , GATE , GRE
Job Role: Analyst , Bank Clerk , Bank PO , Database Administration , IT Trainer

3 2707