Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

What is the result of the following statements if used in a program? int a=2; float b=3.5; int cra; printf(%d,c); O a. 2 O b.

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
What is the result of the following statements if used in a program? int a=2; float b=3.5; int cra; printf("%d",c); O a. 2 O b. 4.5 O c. 1.5 O d. 3.5 Which of the following is not a valid variable name? a. Rate 10 b. Rate_value c. $rate O d. Rate Which is the correct statement to print the value of variable C? int A = 100; float B = 510.5, C = 20.75; a. printf(" Value of C= %f, c); O b. printf(" Value of C= %s" C); O c. printf(" Value of C = %c, C); O d. printf(" Value of C= %f", C); Find the value of x for the given expression: X= 3 + 5%3 O a. 1 b. 5 c. O d. 3 Choose the correct expression in C language for the given expression : Z = (Y3+Y)/K O a. Z= (pow(Y,3) + Y)/K) b. Z= (pow(Y,3) + Y/K) c. Z= pow(Y,3) + Y/K O d. Z= (pow(Y,3) + Y)/K A=10, B=5, C=3 X= A* C+B Find the value of X for the given expression. O a. 35 O b. 83 C. 33 O d. 80 What is the output of the below code snippet for sal = 450? if(sal>500 && sal =400) printf("2 percent hike"); else printf("No hike"); O a. 2 percent hike O b. Error O c. No hike O d. 5 percent hike

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases And Python Programming MySQL MongoDB OOP And Tkinter

Authors: R. PANNEERSELVAM

1st Edition

9357011331, 978-9357011334

More Books

Students also viewed these Databases questions