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

Correct word of ahmpabja?

Answer

ABP Majha is the correct word of the given jumbled word.

Report Error

View answer Workspace Report Error Discuss

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

0 2806
Q:

The delegate who created the compromise for the constitution was

A) Alexander Hamilton B) William Paterson
C) James Madison D) Roger Sherman
 
Answer & Explanation Answer: D) Roger Sherman

Explanation:

Roger Sherman, is the delegate who created the compromise for the U.S constitution.

the_delegate_who_created_the_compromise_for_the_constitution_was1537502237.jpg image

Report Error

View Answer Report Error Discuss

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

2 2805
Q:

_____ officially recognises Bitcoin as currency ?

A) South Korea B) China
C) Japan D) India
 
Answer & Explanation Answer: C) Japan

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

2 2805
Q:

Where is it legal to tie up your boat?

A) to a lighted buoy B) to a mooring buoy
C) to a non-lateral marker D) to a safe water marker
 
Answer & Explanation Answer: B) to a mooring buoy

Explanation:

Mooring buoy are white with a blue horizontal band. They usually are placed in marinas and other areas where boats are allowed to anchor. These are the only buoys you may tie up to legally.

buoy_mooring_can1532169062.jpg image

Report Error

View Answer Report Error Discuss

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

3 2804
Q:

Very small insoluble particles in a liquid may be separated from it by using

A) crystallization B) fractional distillation
C) centrifugation D) decantation
 
Answer & Explanation Answer: C) centrifugation

Explanation:

Sometimes the solid particles in a liquid are very small and can pass through a filter paper. For such particles, the filtration technique cannot be used for separation. Such mixtures are separated by centrifugation.

Report Error

View Answer Report Error Discuss

Filed Under: General Science
Exam Prep: Bank Exams

2 2804
Q:

In the following question, a sentence has been given in Direct/Indirect speech. Out of the four alternatives suggested, select the one, which best express the same sentence in Indirect/Direct speech.
Mother said, "Lie down, Arjun."

A) Mother told lie down Arjun. B) Mother told Arjun for lying down.
C) Mother asked Arjun to lie down. D) Mother asked Arjun to be lied down.
 
Answer & Explanation Answer: C) Mother asked Arjun to lie down.

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2804
Q:

In a computer game, a builder can build a wall in ten hours while a destroyer can demolish such a wall completely in fourteen hours. Both, the builder and the destroyer were initially set to work together on level ground. But after 7 hours the destroyer was taken out. What was the total time (in hrs) taken to build the wall ?

A) 17 B) 15
C) 24 D) 35
 
Answer & Explanation Answer: B) 15

Explanation:
Report Error

View Answer Report Error Discuss

5 2803