Questions

Q:

If the following structure is written to a file using fwrite(), can fread() read it back successfully?

struct emp

{

    char *n;

    int age;

};

struct emp e = { "Sujay",15};

FILE *fp;

fwrite (&e, sizeof (e), 1, fp);

Answer

No, since the structure contains a char pointer while writing the structure to the disk using fwrite() only the value stored in the pointer n would get written. When this structure is read back the address would be read back but it is quite unlikely that the desired string would be present at this address in memory

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2885
Q:

What are the key challenges of software testing?

Answer

Key Challenges of s/w testing:


1. Testing considered late in project


2. Requirements not testable


3. Integration is done after all components have been developed: This might result into full testing not being covered.


4. Complete testing is not possible

Report Error

View answer Workspace Report Error Discuss

Subject: Software Testing

0 2883
Q:

Which nitrogenous base is not found in dna?

A) Uracil B) Thymine
C) Cytosine D) Guanine
 
Answer & Explanation Answer: A) Uracil

Explanation:

A nitrogenous base, or nitrogen-containing base, is an organic molecule with a nitrogen atom that has the chemical properties of a base. The main biological function of a nitrogenous base is to bond nucleic acids together. A nitrogenous base owes its basic properties to the lone pair of electrons of a nitrogen atom.

 

In DNA, four bases have been found. They are

1. Adenine (A),

2. Guanine (G),

3. Cytosine (C) and

4. Thymine (T).

 

The first three of these bases are found in RNA also but the fourth which is Uracil (U) is absent in it.

RNA contains cytosine and uracil as pyrimidine bases while DNA has cytosine and thymine.

Report Error

View Answer Report Error Discuss

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

4 2883
Q:

What was the northwestern border of the Mughal Empire during the reign of Akbar?

A) Punjab B) Hindukush
C) Kabul D) Sindh
 
Answer & Explanation Answer: B) Hindukush

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History
Exam Prep: Bank Exams

0 2882
Q:

Operating system functions may include

A) multiprogramming B) input/output control
C) virtual storage D) All the above
 
Answer & Explanation Answer: D) All the above

Explanation:

An operating system has three main functions:

(1) manage the computer's resources, such as the central processing unit, memory, disk drives, and printers,

(2) establish a user interface, and

(3) execute and provide services for applications software.

Report Error

View Answer Report Error Discuss

5 2882
Q:

How many hours does it take for a housefly's egg to hatch?

Answer

24 hours

Report Error

View answer Workspace Report Error Discuss

Subject: General Science

15 2881
Q:

Name the only animal which cannot jump.

 

A) Guinea Pig B) The elephant
C) Giraffe D) Donkey
 
Answer & Explanation Answer: B) The elephant

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Animals and Birds
Exam Prep: Bank Exams

7 2881
Q:

I am a 5 letter word.

I am normally below you. If you remove my 1st letter, you'll find me above you. If you remove my 1st & 2nd letters, you can't see me.

What am I?

Answer

Firstly, I focussed on "If you remove my 1st & 2nd letters, you can't see me". The first thing that comes to mind which we can’t see is the "AIR".


 


So now, what 4 letter words can be formed ending with "AIR"? Think of all the words from A to Z, considering which one lies above you. That is how we get to "HAIR".


 


Now, which 5 letter word can be formed ending with "HAIR"? Starting with A to Z, we reach "CHAIR" and also, it lies below us.


 


And the required answer is "CHAIR".

Report Error

View answer Workspace Report Error Discuss

4 2881