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

A sentence has been given in Active/Passive Voice. Out of the four given alternatives, select the one which best expresses the same sentence in Passive/Active Voice.

 

The dog killed the cat.

A) The cat is killed by the dog. B) The cat got kill by the dog.
C) The dog was responsible for killing the cat. D) The cat was killed by the dog.
 
Answer & Explanation Answer: D) The cat was killed by the dog.

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams
Job Role: Bank Clerk

0 2732
Q:

Which file format can be added to a powerpoint show?

A) .Gif B) .Wav
C) .Jpg D) All of the above
 
Answer & Explanation Answer: D) All of the above

Explanation:
Report Error

View Answer Report Error Discuss

7 2732
Q:

How many Species go Extinct Every Day?

Answer

About 150 - 200 species of plant, insect, bird and mammal become extinct every day or 24 hrs.


This is not an accurate but an estimation by U.N. Convention on Biological Diversity and Global Extinction Rates. It is also said that current extinctions were 'up to 100 times higher than the background rate.'

Report Error

View answer Workspace Report Error Discuss

Subject: General Science Exam Prep: AIEEE , Bank Exams
Job Role: Analyst , Bank Clerk

6 2731
Q:

The principle of dominance states that

A) Some alleles are dominant, while others are recessive B) All alleles are recessive
C) All alleles are dominant D) Alleles are neither dominant nor recessive
 
Answer & Explanation Answer: A) Some alleles are dominant, while others are recessive

Explanation:

The principle of dominance states that some alleles are dominant, while others are recessive.

Report Error

View Answer Report Error Discuss

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

1 2731
Q:

In beta decay what is emitted

A) electron B) proton
C) neutron D) All of the above
 
Answer & Explanation Answer: A) electron

Explanation:
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 2730
Q:

Which of the following team has won the 37th and final edition of the Hockey Champions Trophy at Breda, the Netherlands?

A) India B) Australia
C) Brazil D) The Netherlands
 
Answer & Explanation Answer: B) Australia

Explanation:

In the summit clash of the 37th and final edition of the Hockey Champions Trophy at Breda, the Netherlands, India lost to defending champions Australia via penalty shoot-off. The match went into the shoot-off after both the teams were locked at 1-1 in regulation time.

Report Error

View Answer Report Error Discuss

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

0 2730
Q:

What Is EFT?

Answer

Exchange Traded Funds (ETFs) are a relatively new phenomenon and are gaining popularity rapidly. This post outlines the key features of an ETF.


ETFs are like mutual funds because they hold an underlying asset like stocks, debt, commodities future contracts etc. If you are new to the concept of an ETF, think of it as a mutual fund, and build your understanding from thereon. An example of an ETF is the SBI Gold ETF, which holds physical gold as its underlying asset.

Report Error

View answer Workspace Report Error Discuss

Subject: Finance

1 2729