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

Which airport becomes as International Airport recently in 2017 ?

A) Chennai B) Kolkata
C) Vijayawada D) Patna
 
Answer & Explanation Answer: C) Vijayawada

Explanation:
Report Error

View Answer Report Error Discuss

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

3 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:

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

Which IT giant has launched learning app 'InfyTQ' for engineering students?

A) GOOGLE B) TCS
C) Infosys D) Cognizant
 
Answer & Explanation Answer: C) Infosys

Explanation:

Infosys has announced the launch of a digital platform offering learning and engagement experiences for engineering students.

InfyTQ is a free platform open to all engineering students in their third and fourth year. The platform encourages holistic development by imparting technical as well as professional skills and helps them become industry ready.

Report Error

View Answer Report Error Discuss

1 2911
Q:

When was the demand for a separate Telangana hit a turning point on?

Answer

The demand for a seperate Telangana hit a turning point on December 16,2010 when around 12-15 lakh attended the 'Telangana Maha Garjana' at Warangal in Andhra pradesh. The rally ste off a chain of events that culminated in the Centre agreeing to form a Telangana state.

Report Error

View answer Workspace Report Error Discuss

Subject: Indian Politics

7 2911
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