Questions

Q:

How would you check whether the contents of two structure variables are same or not?

Answer

struct emp


{


     char n[20];


      int age;


};


main()


{


    struct emp e1 = {"Dravid", 23};


   struct emp e2;


   scanf ("%s %d",e2.n, & e2.age);


   if( structcmp (e1,e2) ==0)


        printf ("The structures are equal");


   else


         printf ("The structures are unequal");


}


structcmp ( struct emp x, struct emp y)


{


     if (strcmp (x.n,y.n) ==0)


           if (x.age == y.age)


            return (0);


            return (1);


}


In short, if you nee to compare two structures, you'll have to write your own function to do so which carries out the comparison field by field.

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 3483
Q:

Which of the following is the regulator of the credit rating agencies in india?

A) RBI B) SBI
C) SIDBI D) SEBI
 
Answer & Explanation Answer: D) SEBI

Explanation:
Report Error

View Answer Report Error Discuss

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

4 3481
Q:

MS-EXCEL is based on

A) OS/2 B) UNIX
C) WINDOWS D) DOS
 
Answer & Explanation Answer: C) WINDOWS

Explanation:

Microsoft Excel is a spreadsheet developed by Microsoft for Windows, macOS, Android and iOS. It features calculation, graphing tools, pivot tables, and a macro programming language called Visual Basic for Applications.

Report Error

View Answer Report Error Discuss

4 3480
Q:

The Union Territories get representation in

A) Lok Sabha B) Rajya Sabha
C) Both A & B D) Supreme Court
 
Answer & Explanation Answer: C) Both A & B

Explanation:

The Union Territories get representation in Both the houses of Parliament i.e, The Lok Sabha and The Rajya Sabha.

Report Error

View Answer Report Error Discuss

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

13 3480
Q:

Which of these is the best description of fixed expenses?

 

A) Insurance B) Payment on loans
C) Rent D) All the above
 
Answer & Explanation Answer: D) All the above

Explanation:

Fixed expenses are those expenses that do not change when there is a change in production or sales level.

 

Examples of Fixed Expenses are rent, insurance, payment on loans, salaries, advertising, etc...

 

Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy
Exam Prep: Bank Exams

0 3479
Q:

In latest generation computers, the instructions are executed

A) Sequentially only B) Parallelly only
C) Both sequentially and parallelly D) None of the above
 
Answer & Explanation Answer: C) Both sequentially and parallelly

Explanation:

In_latest_generation_computers,_the_instructions_are_executed1556257673.jpg image

 

In latest generation computers, the instructions are executed both sequencially and parallelly.

Report Error

View Answer Report Error Discuss

3 3479
Q:

Match the following:

A) A­4, B­1, C­3, D­2 B) A­3, B­2, C­4, D­1
C) A­2, B­3, C­1, D­4 D) A­1, B­4, C­2, D­3
 
Answer & Explanation Answer: A) A­4, B­1, C­3, D­2

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History

11 3479
Q:

What is the measurement at remote distances by means of a radio -link from the object to the ground called?

Answer

Telemetry

Report Error

View answer Workspace Report Error Discuss

Subject: General Science

12 3478