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

In 8085 which is called as High order / Low order Rigister?

Answer

Flag is called as Low order rigister & Accumulator is called as High order Rigister.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

1 2688
Q:

Who has been given the additional charge of Defence Ministry after Manohar Parrikar resigned from the same post in March, 2017 ?

A) Arun Jaitley B) Nitin Gadkari
C) Narendra Modi D) Rajnath Singh
 
Answer & Explanation Answer: A) Arun Jaitley

Explanation:

Finance minister Arun Jaitley was on 13 March 2017 given the additional charge of the defence ministry after Manohar Parrikar resigned+ to take on the new role of Goa chief minister.

Report Error

View Answer Report Error Discuss

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

3 2687
Q:

What is market risk?

Answer

It refers to the possibility for an investor to experience  losses due to  factors that affect the overall performance of the financial markets. Market risk cannot be eliminated through diversification, though it can be hedged against. The sources of market risk include natural disasters, recessions, political turmoil, changes in interest rates and terrorist attacks.

Report Error

View answer Workspace Report Error Discuss

0 2686
Q:

which of the following represents a set of properties that guarantee that database transactions are processed reliably in computer science ?

A) Buffer Cache B) ACID
C) Foreign Key D) None
 
Answer & Explanation Answer: B) ACID

Explanation:

ACID means (Atomicity, Consistency, Isolation, Durability) is a set of properties of database transactions intended to guarantee validity even in the event of errors, power failures, etc.

In the context of databases, a sequence of database operations that satisfies the ACID properties and, thus, can be perceived as single logical operation on the data, is called a transaction. For example, a transfer of funds from one bank account to another, even involving multiple changes such as debiting one account and crediting another, is a single transaction.

Report Error

View Answer Report Error Discuss

Filed Under: IBM Certification
Job Role: Analyst , IT Trainer

6 2686
Q:

Muscles get tired when there is shortfall of ___________.

A) Lactic acid B) Na+ ions
C) ATP D) Sulphates
 
Answer & Explanation Answer: C) ATP

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology
Exam Prep: Bank Exams

4 2686
Q:

Nucleic acids are polymers of

A) Nucleotides B) Aminoacids
C) Proteins D) Sugars
 
Answer & Explanation Answer: A) Nucleotides

Explanation:

Nucleic acids are polymers of individual nucleotide monomers.

Each nucleotide is composed of three parts:

a 5-carbon sugar,

a phosphate group, and

a nitrogenous base.

Report Error

View Answer Report Error Discuss

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

0 2686
Q:

Energy transfer by convection is primarily restricted to

A) fluids B) solids
C) liquids D) gases
 
Answer & Explanation Answer: A) fluids

Explanation:

Convection is the mode of heat transfer which involves bulk motion of a fluid to transfer heat. Energy transfer by convection is primarily restricted to fluids. Fluids can be both liquids and gases.

Report Error

View Answer Report Error Discuss

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

2 2686