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

The 'Old Faithful' in Yellow stone National Park, Wyoming is a/an

A) hot spring B) extinct volcano
C) geyser D) oak tree
 
Answer & Explanation Answer: C) geyser

Explanation:

Geysers are fountains of hot water and superheated steam that erupts with an explosion whereas hotsprings or thermal springs are found where water sinks deep enough the surface to be heated up by the interior forces and it comes out without any explosion. Iceland and New Zealand are the other countries having geysers while hot springs are relatively common.

Report Error

View Answer Report Error Discuss

Filed Under: World Geography

0 2718
Q:

Genes are made of 

A) Carbohydrates B) Proteins
C) Fats D) Nucleotides
 
Answer & Explanation Answer: D) Nucleotides

Explanation:

Genes : The DNA is the genetic material. The DNA is made of several nucleotides. A nucleotide means, one nitrogenous base one sugar molecule and a phosphate molecule. These nucleotides occur in sequences and several nucleotides form one Gene ( a functional mgene is called a cistron)

Report Error

View Answer Report Error Discuss

Filed Under: Biology

7 2718
Q:

How many bottles of water is a gallon?

A) 16 B) 8
C) 4 D) 2
 
Answer & Explanation Answer: B) 8

Explanation:

The easiest way would measure it through half a liter water bottle. There are approximately 16.9 ounces(oz) of water in a 500ml water bottle.

 

Gallon is an imperial customary volume unit for the U.S.

 

As we have previously mentioned, the 16.9oz bottle is also known as 500ml in the metric system. According to U.S. standard, 1 gallon stands for 128 fluid oz.

 

Hence, Number of bottles in 1 gallon = 128/16.9 = 7.57 =~ 8.

Report Error

View Answer Report Error Discuss

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

2 2717
Q:

Who is the Chief Election Commissioner of India 2018?

A) Ashok Lavasa B) Om Prakash Rawat
C) Montek Singh Ahluwalia D) Sunil Arora
 
Answer & Explanation Answer: B) Om Prakash Rawat

Explanation:

Om Prakash Rawat is the Chief Election Commissioner of India where Ashok Lavasa & Sunil Arora are the Election Commissioners of India. The Election Commission of India had announced Assembly elections for 5 states recently.

Report Error

View Answer Report Error Discuss

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

3 2716
Q:

Where does glycolysis take place in Eukaryotic cells?

A) Mitochondrial Outer membrane B) Cytoplasm
C) Mitochondrial inner membrane D) None of the above
 
Answer & Explanation Answer: B) Cytoplasm

Explanation:

Glycolysis is the first step of cellular respiration. This process breaks down glucose into two pyruvic acids, and produces 2 ATP and 2 NADH. 

In eukaryotic cells, glycolysis and fermentation reactions occur in the cytoplasm.

Report Error

View Answer Report Error Discuss

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

1 2716
Q:

Who is considered as the father of Jainism

Answer

Mahavira

Report Error

View answer Workspace Report Error Discuss

Subject: Indian Culture

55 2716
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 2715