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

Which of these is ATP?

A) 3 Phosphate groups attached to chromosome attached to Adenine B) 3 Phosphate groups attached to a Ribose attached to Adenine
C) 3 Phosphate groups attached to a Ribose attached to Thymine D) None of the above
 
Answer & Explanation Answer: B) 3 Phosphate groups attached to a Ribose attached to Adenine

Explanation:

ATP is a Adenosine Triphosphate.

 

ATP is 3 Phosphate groups attached to a Ribose attached to Adenine.

Report Error

View Answer Report Error Discuss

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

4 2807
Q:

Compounds are formed as a result of chemica change.

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

Explanation:

TRUE, the compounds are formed as a result of chemical change.

Report Error

View Answer Workspace Report Error Discuss

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

0 2806
Q:

The relationship between a cathode and an anode involves

A) Electrons B) Neutrons
C) Protons D) Diodes
 
Answer & Explanation Answer: A) Electrons

Explanation:

The relationship between a cathode and an anode involves the transfer of electric charge between them. The cathode is the negative terminal on the battery, which has zero electric potential. The anode is the positive terminal on the battery and has the battery's maximum electric potential. Current flows from the battery's anode (positive terminal) to the cathode (negative terminal). In electron flow, electrons leave the negative side of the battery and move towards the positive side of the battery.

 

Hence, The relationship between a cathode and an anode involves Electrons.

Report Error

View Answer Report Error Discuss

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

3 2805
Q:

Analog computer works on the supply of

A) Magnetic strength B) Continuous electrical pulses
C) Discontinuous electrical pulses D) None of the above
 
Answer & Explanation Answer: B) Continuous electrical pulses

Explanation:

Analog_computer_works_on_the_supply_of1557395703.jpg image

An analog computer or analogue computer is a type of computer that uses the continuously changeable aspects of physical phenomena such as electrical, mechanical, or hydraulic quantities to model the problem being solved.

Report Error

View Answer Report Error Discuss

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

2 2805
Q:

There is no reason (that life may exist) P (in great profusion) Q (why we should not be willing to think) R (in other worlds) S

The correct sequence should be

A) R S P Q B) P Q S R
C) R P Q S D) R Q S P
 
Answer & Explanation Answer: C) R P Q S

Explanation:

Since, the sentence starts talking about the reason; R will be the continuing statement as it goes with the flow of the statement. The continuing statement talks about the existing of life i.e. P. Thus, all other options are eliminated. The correct formation would be, ‘There is no reason why we should not be willing to think that life may exist in great profusion in other worlds.’

Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2805
Q:

The Limitation Law, which passed by the British in 1859, addressed which one of the following issues?

A) Loan bonds would not have any legal validity B) Loan bonds signed between money lender and Ryots would have validity only for three years
C) Loan bonds could not be executed by money lenders D) Loan bonds would have validity for ten years
 
Answer & Explanation Answer: B) Loan bonds signed between money lender and Ryots would have validity only for three years

Explanation:

The ryots came to see the moneylender as devious and deceitful. They complained of moneylenders manipulating laws and forging accounts. In 1859 the British passed a Limitation Law that stated that the loan bonds signed between moneylenders and ryots would have validity for only three years. This law was meant to check the accumulation of interest over time. The moneylender, however, turned the law around, forcing the ryot to sign a new bond every three years.

Report Error

View Answer Report Error Discuss

Filed Under: Indian History
Exam Prep: Bank Exams

0 2805
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 2804