CP1 Assessment
Quiz
•
Computers
•
11th Grade
•
Hard
Karen Tan
FREE Resource
Enhance your content
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
int x = 10;
x = x % 2;
printf (“%d”, x);
The output of x will be 10
The output of x will be 2
The output of x will be 5
The output of x will be 1
The output of x will be 0
2.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What does printf ( ) do?
Show program output on the screen
Show program output back to the computer
Show program output on the keyboard
Show program output on the printer
Show program output in 3D
3.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
#include<stdio.h>
void main() {
printf("Hello");
}
Infinite loop
Prints “Hello” once.
No output
Compiler error
The program will crash
4.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Which printf() statement will you use to print out a (float value) and b (double value)?
Float a = 3.14;
Double b = 3.14;
printf("%f %lf", a, b);
printf("%f %f", a, b);
printf("%ll %f", a, b);
printf("%f %ff", a, b);g
printf("%fl %Lf", a, b);
5.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
void function1 () {
int i = 0.5;
i++;
printf("%d", i);
}
What value of i will be displayed?
0.5
1.5
Error value and data type does not match
-1.5
-0.5
6.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
#include<stdio.h>
void main ( )
{
printf(“Hello”);
}
What do we call #include<stdio.h>?
Library
Function header
Parameter
Function name
Return type
7.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
#include<stdio.h>
void main ( )
{
printf(“Hello”);
}
What do we call void?
Library
Function header
Parameter
Function name
Return type
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
ID Quiz
Quiz
•
11th Grade
10 questions
Scratch_SM
Quiz
•
10th - 12th Grade
12 questions
App Inventor 3. Тест после занятия
Quiz
•
1st - 12th Grade
15 questions
Bluetooth and Wi-Fi Quiz
Quiz
•
7th Grade - University
10 questions
CHƯƠNG TRÌNH CON BT1
Quiz
•
10th - 12th Grade
10 questions
Berfikir Komputesional
Quiz
•
9th - 12th Grade
15 questions
Uji Pemahaman Formula Excel
Quiz
•
9th Grade - University
10 questions
DTJSQuiz
Quiz
•
11th Grade
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
11 questions
NEASC Extended Advisory
Lesson
•
9th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade