Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1. Which of the following is not a valid variable name? a. $rate b. Rate_value c. Rate d. Rate10 2. Which format specifier is used
1.
Which of the following is not a valid variable name?
a.
$rate
b.
Rate_value
c.
Rate
d.
Rate10
2.
Which format specifier is used if a variable named gravity is declared of as a data type float?
a.
%d
b.
%f
c.
%k
d.
%c
3.
Which of the following is valid variable name?
a.
friction_3
b.
#friction
c.
friction$
d.
2_friction
4.
Which is the correct statement to print the value of variable A?int A = 100; float B = 510.5, C = 20.75;
a.
printf( Value of A= %d , A);
b.
printf( Value of A= %c, A);
c.
printf( Value of A= %s A);
d.
printf( Value of A= %d , A);
5.
Find the value of X for the given expression. X= 3 + 5 % 3
a.
1
b.
0
c.
5
d.
3
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started