
AlgoProg - Review Quiz
Authored by Eileen Heriyanni
Computers
University
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which one of assignment below is invalid?
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
what is the output of this slice of code?
float myFloat = 45.1342f;
printf("%09.3f", myFloat);
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
what is the output of this slice of code?
char str[30]="Bina Nusantara";
printf("%-15s2024", str);
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Assuming the user input is: 1053 17.5 42
What is the value of the variable val3 in this code?
scanf("%2d %f %d", &val1, &val2, &val3);
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Assuming the user input is: 1053 17.5 42 Smith
What is the value of the variable str2 in this code?
scanf("%s %d %s", str1, &val1, str2);
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given the arithmetic operator:
g / -m * 2
which order will the operators be executed sequentially?
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?