Question: Student No . : Cheating is strictly forbidden and it will lead you academic dismissal. Please switch off your mobile until the end of the

Student No.:
Cheating is strictly forbidden and it will lead you academic dismissal.
Please switch off your mobile until the end of the exam
Choose the correct answer (Each question is 1.5 Mark)
Duration: 40Min,
Q1. What will be the output of the following C code?
Void main ()
Double x=28;
Int r;
R=x%5;
Printf ("'n r=%d",r); }
a)r=3
b) Run time error
c) Compile time error
d)r=5
e) None of them
Q2. When we want to input a number into the variable named 'number,' which is defined as an integer, from the keyboard, which code do we use?
a) # define number
b) scanf ("%s", number);
c) scanf("%c", number);
d) scanf("%d", & number);
e) scanf("%d", number);
Q3. Which of the following is not a C data type?
a) Real
b) Float
c) Int
d) Double
e) Char
 Student No.: Cheating is strictly forbidden and it will lead you

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 Mathematics Questions!