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

In 1948 , in which former princely state in west India was a referendum held when the people decided to join the Indian Union?

Answer

Junagadh

Report Error

View answer Workspace Report Error Discuss

3 2346
Q:

Which sentence contains an interjection?

A) Hey, where did I park my car! B) Well, that’s a relief.
C) Oh, now I remember where i put my wallet. D) All of the above
 
Answer & Explanation Answer: D) All of the above

Explanation:

Yes, all the above given sentences have an interjection.

 

1. Hey ! is an interjection in the sentence , Hey!, where did I park my car? 

 

2. Well is an interjection in the sentence, Well!, that's a relief.

 

3. Oh! is an interjection in the sentence , Oh!, now I remember where i put my wallet.

Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: AIEEE , Bank Exams , CAT , GATE , GRE , TOEFL
Job Role: Analyst , Bank Clerk , Bank PO , Database Administration , IT Trainer

1 2346
Q:

Transformation of input into output is performed by

A) CPU B) The input-output unit
C) Memory unit D) Peripherals
 
Answer & Explanation Answer: A) CPU

Explanation:

We know that, in computers transformation of input into output is performed by the ALU unit i.e, the Arithematic and Logical unit that performs all the logical and arithmatical operations in the CPU - Central Processing Unit.

Report Error

View Answer Report Error Discuss

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

2 2345
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 2342
Q:

Energy is measured in units called

A) Newtons B) Watts
C) Joules D) Ohm/mtr
 
Answer & Explanation Answer: C) Joules

Explanation:

Energy is measured in units called Joules.

 

Joule is unit of work or energy in the International System of Units (SI) which is equal to the work done by a force of one newton acting through one metre.

 

1 Joule  =  107 ergs or 0.7377 foot-pounds.

Report Error

View Answer Report Error Discuss

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

4 2342
Q:

'.bak' extension refers to what kind of file?

A) Document B) Movie/Video file
C) Backup file D) Audio file
 
Answer & Explanation Answer: C) Backup file

Explanation:

In computing, ".bak" is a filename extension commonly used to signify a backup copy of a file.

Report Error

View Answer Report Error Discuss

3 2340
Q:

Which Ragamala depicts the martial arts by introducing horsemen in battle?

Answer

 Nataraga/ Natanarayana

Report Error

View answer Workspace Report Error Discuss

Subject: Indian Culture

45 2340