Questions

Q:

How would you find the length of each string in the following Program?

main()

{

    char *str[] = { "Frogs", "Do", "Not" , "Die" , "They" , "Croak!"};

    printf ("%d%d", sizeof (str), sizeof (str[0]));

}

Answer

main()


{


   char *str[] = { "Frogs", "Do", "Not", "Die." , "They", "Croak!" };


   int i;


         for ( i = 0;i<=5;i++)


         printf ("\n%s%d", str[i], strlen( str[i]));


}

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

1 2130
Q:

Improve the bracketed part of the sentence.
Neha was (surprised by) her result.

A) surprised to B) surprised from
C) surprised at D) No improvement
 
Answer & Explanation Answer: C) surprised at

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2130
Q:

In the following code in which order the functions would be called?

a = ( f1 ( 23,14 ) * f2 ( 12/4) ) + f3() ;

Answer

The order may vary from compiler to compiler.


Here the multiplication will happen before the addition , but in which order the functions would be called is undefined. In an arithmetic expression the parentheses tell the compiler which operands go with which operators but do not force the compiler to evaluate everything within the parentheses first.

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2129
Q:

Project Human Resource Management - Processes

Describe the Inputs, Tools and Techniques , Outputs included in the Human Resource Planning?

Answer

I. Inputs



  • Enterprise Environmental factors

  • Organizational process assets

  • Project management plan


                  - Activity resource requirements


II. Tools and Techniques



  • Organization charts and position descriptions 

  • Networking

  • Organizational theory


III. Outputs



  • Roles and responsibilities

  • Project organization charts

  • Staffing management plan

Report Error

View answer Workspace Report Error Discuss

0 2129
Q:

The country which celebrates Independence day on 15th August, apart from India, is

Answer

South Korea

Report Error

View answer Workspace Report Error Discuss

Subject: World History

0 2129
Q:

Zoroastrianism started in what country?

Answer

Iran

Report Error

View answer Workspace Report Error Discuss

Subject: World Geography

0 2129
Q:

What year was the first Oscar Awards ceremony held?

A) 1945 B) 1929
C) 1931 D) 1954
 
Answer & Explanation Answer: B) 1929

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Honours and Awards
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

4 2129
Q:

In spherical polar coordinates (l, q, a), q denotesthe polar angle around z-axis and a denotes the azimuthal angle raised from x-axis . Then the y-component of P is given by

A) Psinq sina B) Psinq cosa
C) Pcosq sina D) Pcosq cosa
 
Answer & Explanation Answer: A) Psinq sina

Explanation:

The Cartesian Coordinates can be retrieved from spherical coordinates (l,q,a) by:

X = r.sinq.cosa

Y = r.sinq.sina

Z = r.sinq

Using the same we get for P,

Y = P.sinq.sina

Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: Bank Exams

0 2129