Question: 1. Choose the correct expression in C language for the given expression : Z = ( Y 3 + Y ) / K a. Z=
1.
Choose the correct expression in C language for the given expression :
Z = ( Y 3 + Y ) / K
a.
Z= (pow(Y,3) + Y ) / K
b.
Z= (pow(Y,3) + Y / K )
c.
Z= pow(Y,3) + Y / K
d.
Z= (pow(Y,3) + Y ) / K )
2.
A=10 B=5 C=3;
X= A * B + C ;
Find the value of X for the given expression.
a.
50
b.
53
c.
80
d.
83
3.
What will be the output of the following C code?
int x = 0;
if (x == 0)
printf("hi ");
else
printf("how are u ");
printf("hello");
a.
how are u
b.
how are u hello
c.
hi hello
d.
hi
4.
What should be the value of x for the below code to print OMAN? if(x>10 && x%5==0)
printf(OMAN);
else
printf(INDIA);
a.
5
b.
12
c.
15
d.
10
5.
What is the output of the below code snippet?
float avg=45.5;
if(avg>50 && avg <=70)
printf(Good score);
else if(avg<50 && avg>=40)
printf(Can do better);
else
printf(Work hard);
a.
Can do better
b.
Work Hard
c.
Good Score
d.
Error
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
