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

As water is cooled from 4 deg C to 0 deg C, its density

A) increases B) decreases
C) remains same D) None of the above
 
Answer & Explanation Answer: B) decreases

Explanation:

As water is cooled from 4 deg C to 0 deg C, the water reaches its freezing point and starts forming ice crystals. Then the volume of that ice cubes increases and its density decreases. Hence, it is the reason that ice will float on water as ice has less density than the water.

Report Error

View Answer Report Error Discuss

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

6 2718
Q:

Which event occurs during interphase?

A) Centrioles appear B) Spindle fibers begin to form
C) The cell grows D) Centromeres divide
 
Answer & Explanation Answer: C) The cell grows

Explanation:

The cell carries out the metabolic processes and it grows during interphase.

The cell cycle has three phases that must occur before mitosis, or cell division happens. These three phases are collectively known as interphase. They are G1, S, and G2.

Report Error

View Answer Report Error Discuss

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

2 2718
Q:

The process of copying dna is called

A) Copying B) Replication
C) Repulsion D) Replying
 
Answer & Explanation Answer: B) Replication

Explanation:

The process of copying dna is called Replication.

Report Error

View Answer Report Error Discuss

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

3 2718
Q:

Which virus is not associated with cancer?

A) Epstein-Barr virus B) Papillomavirus
C) Retrovirus D) Hepatitis virus
 
Answer & Explanation Answer: C) Retrovirus

Explanation:

In the above given options, Retrovirus is the only virus which is not associated with cancer. Here the viruses which are associated with different types of cancer. They are:

Hepatitis virus which is associated with Liver cancer

Papillomavirus which is associated with Cervical cancer

Epstein-Barr virus which is associated with Burkitt's lymphoma.

Report Error

View Answer Report Error Discuss

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

1 2718
Q:

If there is a lock on an adjacent key, an insert will fail if the isolation level is set to what?

A) committed read B) repeatable read
C) share read D) indexed read
 
Answer & Explanation Answer: B) repeatable read

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: IBM Certification

1 2717
Q:

What is virtual path?

Answer

Along any transmission path from a given source to a given destination, a group of virtual circuits can be grouped together into what is called path.

Report Error

View answer Workspace Report Error Discuss

Subject: Networking
Job Role: Network Engineer

0 2717
Q:

Charaka Samhita was a work on

A) Astrology B) Law
C) Medicine D) Religion
 
Answer & Explanation Answer: C) Medicine

Explanation:

Charaka Samhita was a work on Medicine.

Report Error

View Answer Report Error Discuss

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

4 2717