Questions

Q:

What are the various types of CPU registers in a regular operating system design ?

Answer

 Stack Pointer
 Index Registers
 Accumulators
 General Purpose Registers

Report Error

View answer Workspace Report Error Discuss

3 2506
Q:

Padma Shri - Dr Sundaram (S) Ramakrishnan passed away recently. What was his profession?

 

A) Scientist B) Politician
C) Engineer D) Doctor
 
Answer & Explanation Answer: A) Scientist

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Famous Personalities
Exam Prep: Bank Exams

1 2506
Q:

The function of nitrogen in air is 

A) to make air a moderate supporter of combustion B) to maintain the density of air constant
C) to prevent the hydrogen in air from exploding D) to reduce the poisonous nature of ozone in air
 
Answer & Explanation Answer: A) to make air a moderate supporter of combustion

Explanation:

If air contained all oxygen and no nitrogen, everything would have burnt off

Report Error

View Answer Report Error Discuss

Filed Under: Chemistry

2 2506
Q:

Who wrote the line: ' A thing of beauty is a joy for ever '

A) P.B.Shelley B) William Wordsworth
C) John Keats D) Robert Browning
 
Answer & Explanation Answer: C) John Keats

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors

1 2505
Q:

Improve the following code using typedef.

struct node

{

      int data1;  float data2;

       struct node *left;

       struct node *right;

};

struct node *ptr;

ptr = (struct node *) malloc (sizeof (struct node) ); 

Answer

typedef struct node * treeptr


typedef struct node


{


         int data1;


         float data2;


         treeptr *left;


         treeptr *right;


}treenode;


treeptr ptr;


ptr = ( treeptr ) malloc ( sizeof ( treenode ) );

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2505
Q:

Write a c program for insertion sort.

Answer

#include<stdio.h>
int main(){

  int i,j,s,temp,a[20];

  printf("Enter total elements: ");
  scanf("%d",&s);

  printf("Enter %d elements: ",s);
  for(i=0;i<s;i++)
      scanf("%d",&a[i]);

  for(i=1;i<s;i++){
      temp=a[i];
      j=i-1;
      while((temp<a[j])&&(j>=0)){
      a[j+1]=a[j];
          j=j-1;
      }
      a[j+1]=temp;
  }

  printf("After sorting: ");
  for(i=0;i<s;i++)
      printf(" %d",a[i]);

  return 0;
}

Output:
Enter total elements: 5
Enter 5 elements: 3 7 9 0 2
After sorting:  0 2 3 7 9

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2505
Q:

In which layer is the pressure the highest?

A) Ionosphere B) Stratosphere
C) Troposphere D) Inner core
 
Answer & Explanation Answer: D) Inner core

Explanation:

"Pressure" is the ratio of mass to area. So, for any given area, the one with more mass pressing on it will experience a higher pressure.

 

As you go more deeply into the atmosphere OR earth itself, you are putting more and more mass over you. For the same unit area therefore, the pressure, (mass/area) increases.

 

Hence, the lowest layer will always have the highest pressure i.e, inner core.

Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: AIEEE , Bank Exams , CAT , GATE
Job Role: Analyst , Bank Clerk , Bank PO , Database Administration , IT Trainer

2 2504
Q:

Which of the following describes loyalists?

A) They thought Patriots were too radical B) They decided to fight against the British
C) They wanted to return to Britain D) They supported British taxation
 
Answer & Explanation Answer: A) They thought Patriots were too radical

Explanation:

They thought Patriots were too radical is the statement which describes loyalists correctly.

Report Error

View Answer Report Error Discuss

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

3 2503