Questions

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

5 Digits Number?

What 5-digit number has the following features:

If we put the numeral 1 at the beginning, we get a number three times smaller than if we put the numeral 1 at the end of the number.

Answer

We can make an equation:


3(100000 + x) = 10x+1


(Why? Well, adding 100000 puts a 1 at the front of a five-digit number, and multiplying by 10 and adding 1 puts a 1 at the end of a number)


Solving this gives:


10x+1 = 3(100000 + x)
10x+1 = 300000 + 3x
10x = 299999 + 3x
7x = 299999
x = 299999/7 = 42857


The answer is 42857 (142857 is three times smaller than 428571).

Report Error

View answer Workspace Report Error Discuss

9 2913
Q:

Air is said to be saturated when

A) its pressure is minimum B) it contains the maximum content of water vapour
C) its thickness is maximum D) it blows over the barren land
 
Answer & Explanation Answer: B) it contains the maximum content of water vapour

Explanation:

Air is said to be saturated when it contains the maximum content of water vapour.

Report Error

View Answer Report Error Discuss

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

1 2912
Q:

A dynamometer wattmeter can be used for

A) Only Direct Current B) Only Active Current
C) Both A & B D) None of the above
 
Answer & Explanation Answer: C) Both A & B

Explanation:

A dynamometer wattmeter can be used for measuring both A.C and D.C currents.

a_dynamometer_wattmeter_can_be_used_for1553690092.jpg image

Report Error

View Answer Report Error Discuss

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

7 2911
Q:

The Book " The Man who knew Infinity" by Robert Kanigel and extensively reviewed in indian newspapers is the biography of

A) Vikram Sarabhai B) Sir Homi J Bhabha
C) Sir CV Raman D) Srinivasa Ramanujan
 
Answer & Explanation Answer: D) Srinivasa Ramanujan

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

1 2911
Q:

Isoneph indicates the lines of equal

A) cloudiness B) salinity
C) temperature D) pressure
 
Answer & Explanation Answer: A) cloudiness

Explanation:

A line on a map connecting points that have the same average percentage of cloudiness is called Isoneph.

 

Report Error

View Answer Report Error Discuss

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

6 2911
Q:

The book ' Redesigning the Aeroplane While Flying : Reforming Institutions' is written by

Answer

Arun Maira

Report Error

View answer Workspace Report Error Discuss

5 2911
Q:

What is Autosys?

Answer

AutoSys is an automated job control system for scheduling, monitoring, and reporting. These jobs can reside on any AutoSys-configured machine that is attached to a network.


 


However, in real business, you need to fire jobs not just based on scheduled time, but also based on events (like an arrival of a file), and, based on the success or failure of other jobs. Autosys is a total job scheduling solution that allows you to define these events, dependencies, time schedules, alerts, etc, making it a complete data center automation tool.

Report Error

View answer Workspace Report Error Discuss

12 2911