Question: Q1 Which operator in this arithmetic expression z = p * r % q + w / x - y; will be evaluated first? Select

Q1

Which operator in this arithmetic expression

z = p * r % q + w / x - y;

will be evaluated first?

Select one: a. - b. % c. * d. /

Q2

Which of the following statements, probably, has logic error?

Select one: a. printf("%d*%d=%d ",a=1,b=3,c=a*b); b. printf("%d-%d=%d ",a=1,b=3,c=a-b); c. printf("%d%%%d=%d ",a=1,b=3,c=a%b);

d. printf("%d/%d=%d ",a=1,b=3,c=a/b);

Q3

What is the meaning of a * = b + 2?

Select one: a. a=a*(b+a)+2;

b. a=a+(b*a)+2; c. a=(a*b)*(a+2);

d. a=a*(b+2);

Q4

Characters +,-,* are called ____________.

Select one: a. operand b. operate c. operation d. operator

Q5

Which of the following C statements is valid (without any error or warning)?

Select one: a. x=-x+3;

b. a+8=b+9; c. num1, num2 = 0.0; d. k=+3;

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!