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

A basic concept in economics is that all resources are

A) Valuable B) Limited
C) Renewable D) Allocated
 
Answer & Explanation Answer: B) Limited

Explanation:

The basic concept in economics is that all resources are limited.

Report Error

View Answer Report Error Discuss

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

1 2733
Q:

Which is a correct way to measure wavelength?

A) Nearest peak to peak B) Nearest peak to nearest trough
C) Nearest trough to peak D) None of the above
 
Answer & Explanation Answer: A) Nearest peak to peak

Explanation:

Wavelength of a wave can be measured with the distance between two nearest crest and crest or nearest troughs. It is measured as armstrong units.

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

The primary agent of contact metamorphism is

A) Temperature B) Pressure
C) Weathering D) Flowing water
 
Answer & Explanation Answer: A) Temperature

Explanation:

The primary agent of contact metamorphism is heat or temperature.

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

What is the relationship between Resistivity and Conductivity?

Answer

Resistivity :


Resistivity is a measure of the resistance to the flow of electrons. 


Conductivity :


Conductivity is just the inverse of resistivity, σ = 1/ρ, where σ is conductivity and ρ is resistivity.


 


Example:


Think of a pipe and water, the bigger the pipe, the easier water can flow and thus the lower the resistance. 

Report Error

View answer Workspace Report Error Discuss

Subject: Physics Exam Prep: AIEEE , Bank Exams , CAT , GATE
Job Role: Analyst , Bank Clerk , Bank PO , IT Trainer

3 2732
Q:

Which statement about subatomic particles is not true?

A) Protons and neutrons have the same charge B) Protons and electrons have the opposite charhes
C) Protons and neutrons have almost the same mass D) All of the above
 
Answer & Explanation Answer: A) Protons and neutrons have the same charge

Explanation:
Report Error

View Answer Report Error Discuss

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

2 2732
Q:

Stress is a factor that contributes to heart disease risk.

A) TRUE B) FALSE
Answer & Explanation Answer: A) TRUE

Explanation:

True, Stress is a factor that contributes to heart disease risk.


More factors that contributes to heart disease risk are blood pressure, cholesterol, smoking, physical inactivity and overeating.

Report Error

View Answer Workspace Report Error Discuss

Subject: Biology
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

0 2732
Q:

Which chemical bond most likely stores the most energy?

A) Single bond B) Double bond
C) Both A & B D) None of the above
 
Answer & Explanation Answer: B) Double bond

Explanation:
Report Error

View Answer Report Error Discuss

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

1 2731