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

Sarva Siksha Abhiyan is aimed at the education of which of the following

A) Engineering and Technical Education B) Education of girls upto graduation level
C) Adult Education D) Education of children between 6-14 years
 
Answer & Explanation Answer: D) Education of children between 6-14 years

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy

3 2895
Q:

Which of the following is NOT a social development scheme launched by the Government of India

A) Indira Awas Yojana B) Kutir Jyoti
C) LookEast Policy D) Operation Black Board
 
Answer & Explanation Answer: C) LookEast Policy

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy

2 2895
Q:

Look at the underlined part of each sentence. Below each sentence are given three possible substitutions for the underlined part. If one of them (a), (b) or (c) is better than the underlined part, indicate your response on the Answer Sheet against the corresponding letter. If none of the substitutions imporves the sentence, indicate (d) as your response on the Answer Sheet.

The angry neighbours never passed from each other without making rude remarks.

A) passed on B) passed against
C) passed D) no improvement
 
Answer & Explanation Answer: C) passed

Explanation:

Here ‘passed each other’ means crossed each other’s path. No preposition is required by ‘passed’.

Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2895
Q:

AT&T designed its first commercial modem, specifically forconverting digital computer data to analog signals fortransmission across its long distance network. What is thename of the modem?

A) Telex B) Memex
C) CompuServe D) Bell 103 dataset
 
Answer & Explanation Answer:

Explanation:

In 1960s AT&T introduces its Data phone, the firstcommercial modem. The first commercial modem made for converting digital computer data at analog signalsfor transmission across long distance networks

Report Error

View Answer Report Error Discuss

Filed Under: Computer
Exam Prep: Bank Exams

2 2895
Q:

Most common and popular name in the world?

A) Peter B) Mohammed
C) Robert D) Ahmed
 
Answer & Explanation Answer: B) Mohammed

Explanation:

Mohammed or Mohammad is thought to be the most popular name in the world, given to an estimated 150 million men and boys.

Report Error

View Answer Report Error Discuss

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

1 2895
Q:

To resolve an object in an electron microscope,

A) the wavelength of the electrons must be close to the diameter of the object B) the wavelength of the electrons must be greater than the diameter of the object.
C) Both A & B D) None of the above
 
Answer & Explanation Answer: A) the wavelength of the electrons must be close to the diameter of the object

Explanation:
Report Error

View Answer Report Error Discuss

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

1 2894
Q:

If the production possibilities curve was a straight line, this would imply that

A) Economic resources are perfectly substitutable, in the production of the two products B) Equal quantities of both products are produced at each possible point on the curve
C) The two products will sell at the same market price D) The two products are equally important to consumers
 
Answer & Explanation Answer: C) The two products will sell at the same market price

Explanation:

A production–possibility frontier (PPF) or production possibility curve (PPC) is the possible tradeoff of producing combinations of goods with constant technology and resources per unit time.

Report Error

View Answer Report Error Discuss

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

1 2894