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

Which results from an increase in the greenhouse effect?

A) Ocean acidification B) Smog pollution
C) Ozone depletion D) All the above
 
Answer & Explanation Answer: D) All the above

Explanation:

A greenhouse gas (GHG) is any gas in the atmosphere that absorbs and emits radiation in the thermal infrared range.

 

The increase in average global temperatures that results from an enhanced greenhouse effect.

Effects of increased greenhouse gas emissions:

Increases in the different greenhouse gases have other effects apart from global warming including ocean acidification, smog pollution, ozone depletion as well as changes to plant growth and nutrition levels.

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

2 2478
Q:

Which describes the correct pairing of DNA bases?

A) guanine - cytosine B) adenine - cytosine
C) guanine - thymine D) thymine - cytosine
 
Answer & Explanation Answer: A) guanine - cytosine

Explanation:

The correct pairing of DNA bases among the given options is guanine - cytosine.

Report Error

View Answer Report Error Discuss

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

3 2477
Q:

Browning of paper in old books is caused by

A) oxidation of cellulose B) collection of dust
C) frequent use D) lack of aeration
 
Answer & Explanation Answer: A) oxidation of cellulose

Explanation:
Report Error

View Answer Report Error Discuss

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

1 2477
Q:

A doctor and a bus driver are both in love with the same woman, named Sana. The bus driver had to go on a long bus trip that would last a week. Before he left, he gave Sana seven apples.

 Why?

Answer

We know a proverb that An apple a day keeps the doctor away. To keep the doctor away from her, he gave seven apples, each apple a day.

Report Error

View answer Workspace Report Error Discuss

4 2475
Q:

List of Lok Sabha Speakers in India [1952 To 2019]

Answer

1) G.V. Mavalankar (1952-56)


 


 gv_mavalankar-first_loksabha_speaker1561356892.jpg image


 


2) M.A. Ayyangar (1956-57 & 1957-62)


 


 M.A_._Ayyangar_1561356931.jpg image


 


3) Hukam Singh (1962-67)


 


 


Sardar_Hukam_Singh1561356971.jpg image


 


4) N. Sanjiva Reddy (1967-69)


 


N-Sanjiva-Reddy1561356991.jpg image 


 


5) Gurdial Singh Dhillon (1969-1971 & 1971-1975)


 


Gurdial_Singh_Dhillon1561357076.jpg image


 


6) Bali Ram Bhagat (19976-77)


 


 baliram_bhagat1561357122.jpg image


 


7) K.S. Hegde (1977-80)


 


 k.s_.hegde_1561357144.jpg image


 


8) Balram Jakhar (1980-1984 & 1984-1989)


  


 balram-jakhar1561357217.jpg image


 


9) Rabi Ray (1989-91)


 


Rabi-Ray1561357254.jpg image 


 


10) Shivraj Patil (1991-96)


  


 shivraj_patil1561357294.jpg image


  


11) P.A. Sangma (1996-98)


 


 pa-sangma1561357325.jpg image


 


12) G.M.C. Balayogi (1998-99 & 1999-2002)


 


g.m_.c_._balayogi_1561367995.jpg image


 


 13) Manohar Joshi (2002-04)


 


 manohar_joshi1561368044.jpg image  


 


14) Somnath Chatterjee (2004-09)


 


 somnath-chatterjee1561368122.jpg image


  


15) Meira Kumar (2009-14)


 


 meira_kumar_-_first_female_speaker1561368171.jpg image 


 


16) Sumitra Mahajan (2014-19)


 


 Sumitra_Mahajan1561368209.jpg image


 


17) Om Birla (2019 -)


 


OM-BIRLA1561368373.jpg image

Report Error

View answer Workspace Report Error Discuss

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

12 2475
Q:

Thoubal Multipurpose Project has been inaugurated in which Indian state?

 

A) Bihar B) Manipur
C) Assam D) Mizoram
 
Answer & Explanation Answer: B) Manipur

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams

1 2475
Q:

Hypnology is the study of

A) blood B) nerves
C) sleep D) disease
 
Answer & Explanation Answer: C) sleep

Explanation:

Hypnology is the study of sleep.

Report Error

View Answer Report Error Discuss

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

2 2475