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:

which is a best way to measure Ground Distance?

Answer

Pace Count is a way to measure to Ground Distance.


Pace Count is nothing but regular single natural step of about 30 inches long.

Report Error

View answer Workspace Report Error Discuss

Subject: Physics Exam Prep: AIEEE , Bank Exams , CAT , GATE , GRE
Job Role: Analyst , Bank PO

7 2718
Q:

One billionth of a second is called

A) microsecond B) picoseconds
C) millisecond D) nanosecond
 
Answer & Explanation Answer: D) nanosecond

Explanation:

A nanosecond (ns) is an SI unit of time equal to one thousand-millionth of a second or one billionth of a second.

 

  • That is, 1/1,000,000,000 of a second, or 10^−9 seconds.
Report Error

View Answer Report Error Discuss

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

1 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:

The blind spot of the eye is where the optic nerve leaves the eyeball.

A) TRUE B) FALSE
Answer & Explanation Answer: A) TRUE

Explanation:

Everyone of us have a blind spot which is a small portion within the visual field of every eye where the optic nerve and blood vessels leave the eyeball. Optic nerve is connected to brain ehich carries images of what we see.


the_blind_spot_of_the_eye_is_where1536397433.jpg image

Report Error

View Answer Workspace Report Error Discuss

Subject: Biology
Exam Prep: AIEEE , Bank Exams
Job Role: Analyst , Bank Clerk , Bank PO , Database Administration

0 2717
Q:

Fat is completely digested in the

A) small intestine B) mouth
C) large intestine D) stomach
 
Answer & Explanation Answer: A) small intestine

Explanation:

Fat is completely digested in the small intestine of the body.

Report Error

View Answer Report Error Discuss

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

4 2717
Q:

Goosebumps are caused by contractions of the

A) Muscles B) Nerves
C) Bones D) All of the above
 
Answer & Explanation Answer: A) Muscles

Explanation:

Goosebumps are caused by the contraction of the tiny muscles attached to hair follicles. These muscles are arrectores pilorum muscles.

 

Goosebumps_are_caused_by_contractions_of_the1560862968.png image

Report Error

View Answer Report Error Discuss

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

6 2717
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