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

Type of government in Nigeria today?

A) Federal B) Republic
C) Presidential system D) All of the above
 
Answer & Explanation Answer: D) All of the above

Explanation:

Nigeria, an African country on the Gulf of Guinea. 

 

Nigeria has a Federal Republic and Presidential system of Government.

Report Error

View Answer Report Error Discuss

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

1 2790
Q:

Cognitive neuroscientists can examine the brain with

A) PET & MRI B) Gama images & electrolysis
C) electrolysis & PET D) MRI & electrolysis
 
Answer & Explanation Answer: A) PET & MRI

Explanation:
Report Error

View Answer Report Error Discuss

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

3 2790
Q:

Which has the lowest freezing point?

A) Mercury B) Helium
C) Cesium D) Aluminium
 
Answer & Explanation Answer: B) Helium

Explanation:

Helium has the lowest freezing point of all the elements. When coming to metals, mercury has the lowest freezing point of all the metals.

Report Error

View Answer Report Error Discuss

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

2 2790
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 2789
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 2789
Q:

Which among the following is not a asin country selected to the UN committee on Human rights three year term beginning january, 1995

A) Srilanka B) Pakistan
C) Phillippines D) India
 
Answer & Explanation Answer: B) Pakistan

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Organisations

3 2788
Q:

The Reserve Bank of India has imposed a penalty of Rs 5 crore on which of the following banks for non-compliance of its directives?

A) Karur Vysya Bank B) HDFC Bank
C) Kotak Mahindra Bank D) Yes Bank
 
Answer & Explanation Answer: A) Karur Vysya Bank

Explanation:

The Reserve Bank of India has imposed a penalty of Rs 5 crore on Karur Vysya Bank for non-compliance of its directives on Income Recognition and Asset Classification (IRAC).

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

0 2787