
Quiz 1 - Intro to C
Authored by KU AZIR
Computers, Other
University
Used 24+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Declare an integer variable named num.
float num;
int num;
char num;
double num;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Initialize the variable num to 0.
num == 0;
0
num = 0;
int num = 0;
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Read and store the value entered by user to num.
scanf (“%i”, &num);
scanf ("%f", &num);
"%i", #
scanf ("%i", num);
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
4.Multiply the current value of num into 2 and assign the new value to num.
num =+ 2;
num = num * num;
num = 2 * 2;
num = num * 2;
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
5.Display the value of num.
printf (The value of num is: num);
printf ("The value of num is: %i,);
printf ("The value of num is:%i, num);
printf ("The value of num is: %i, &num);
6.
OPEN ENDED QUESTION
3 mins • Ungraded
Declare a floating points number named val.
Evaluate responses using AI:
OFF
7.
OPEN ENDED QUESTION
3 mins • Ungraded
Initialize the variable val to 1.
Evaluate responses using AI:
OFF
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?