Answered step by step
Verified Expert Solution
Link Copied!

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

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_2

Step: 3

blur-text-image_3

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

Big Data Concepts, Theories, And Applications

Authors: Shui Yu, Song Guo

1st Edition

3319277634, 9783319277639

More Books

Students also viewed these Databases questions

Question

When does a discount on bonds payable occur?

Answered: 1 week ago

Question

Define facework and identify three primary facework strategies

Answered: 1 week ago

Question

2. Show the trainees how to do it without saying anything.

Answered: 1 week ago