Questions

Q:

Application layer protocol defines

A) message format, syntax and semantics B) rules for when and how processes send and respond to messages
C) types of messages exchanged D) All of the above
 
Answer & Explanation Answer: D) All of the above

Explanation:

Application layer protocol defines types of messages exchanged, message format, syntax and semantics and rules for when and how processes send and respond to messages.

Report Error

View Answer Report Error Discuss

Filed Under: Networking
Exam Prep: AIEEE
Job Role: Network Engineer

8 4438
Q:

Solve this Math puzzle?

math_number_puzzle1538999808.jpg image

A) 96 B) 88
C) 40 D) 19
 
Answer & Explanation Answer: A) 96

Explanation:

The given math puzzle follows a logic that,

1 + 4 = 5 => 1 x 4 + 1 = 5

2 + 5 = 12 => 2 x 5 + 2 = 12

3 + 6 = 21 => 3 x 6 + 3 = 21

 

Similarly,

8 + 11 = > 8 x 11 + 8 = 96.

Report Error

View Answer Report Error Discuss

Filed Under: Math Puzzles
Exam Prep: AIEEE , Bank Exams , CAT , GATE
Job Role: Analyst , Bank Clerk , Bank PO

9 4438
Q:

How would you use qsort() function to sort an array of structures?

Answer

#include "string.h"


#include "stdlib.h"


struct stud


{


       int rollno;


       int marks;


       char name[30];


};


int sort_m (struct stud *, struct stud *);


int sort_name (struct stud *, struct stud *);


int sort_marks (struct stud *, struct stud *);


 


main()


{


static struct stud ss[] = {


                                            { 15, 96, "Akshay" },


                                            { 2, 97, "Madhuri" },


                                            { 8, 85, "Aishvarya" },


                                            { 10, 80, "Sushmita" }


                                   };


int x,w;


clrscr();


w = sizeof (struct stud);


 


printf ('\nIn order of roll numbers:");


qsort (ss, 4, w, sort_rn);


for(x=0; x<4;x++)


     printf ("\n%d%s%d", ss[x].rollno, ss[x].name,ss[x].marks);


 


printf("\n\nIn order of names:");


qsort(ss, 4, sort_name);


 


for (x=0; x<4;x++)


      printf("\n%d%s%d",ss[x].rollno, ss[x].name,ss[x].marks);


printf("\n\nIn order of marks:");


qsort(ss,4,w,sort_marks);


 


for (x=0;x<4;x++)


      printf ("\n%d%s%d",ss[x].rollno,ss[x].name,ss[x].marks);


}


int sort_rn (struct stud *t1, struct stud *t2)


{


     return (t1->rollno-t2->rollno);


}


 


int sort_name (struct stud *t1, struct stud *t2)


{


     return (strcmp(t1->name,t2->name));


}


int sort_marks (struct stud *t1, struct stud *t2)


{


     return (t2->marks-t1->marks);


}


 


 


 

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 4437
Q:

 What item, originally called the ‘Whirlwind’, was invented by Ives McGaffey in 1869?

A) Blender B) Electric mixer
C) Washing machine D) Vacuum cleaner
 
Answer & Explanation Answer: B) Electric mixer

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Inventions

2 4436
Q:

Localized area of pus formation in the lungs is

A) Pulmonary embolism B) Pulmonary abscess
C) Pleurisy D) Pulmonary edema
 
Answer & Explanation Answer: B) Pulmonary abscess

Explanation:

Pulmonary abscess is a type of liquefactive necrosis of the lung tissue. 

 

 localized_area_of_pus_formation_in_the_lungs1537941339.jpg image

 

Hence, Localized area of pus formation in the lungs is Pulmonary abscess.

Report Error

View Answer Report Error Discuss

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

4 4434
Q:

India's first National Defence University is being established in

A) Gurgaon B) Hissar
C) Panipat D) Ambala
 
Answer & Explanation Answer: A) Gurgaon

Explanation:
Report Error

View Answer Report Error Discuss

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

2 4434
Q:

First Indian woman, to win The silver medal in Rio Olympics 2016 ?

A) Sakshi Malik B) P V Sindhu
C) Dipa Karmakar D) Saina Nehwal
 
Answer & Explanation Answer: B) P V Sindhu

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Sports

6 4433
Q:

Which command displays the present workig directory in UNIX?

A) $who B) $pwd
C) $who are you D) None
 
Answer & Explanation Answer: B) $pwd

Explanation:

$pwd - present working directory

Report Error

View Answer Report Error Discuss

Filed Under: Operating Systems

0 4432