CP1 Assessment

Quiz
•
Computers
•
11th Grade
•
Hard
Karen Tan
FREE Resource
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
Similar Resources on Wayground
11 questions
INFORMATIKA SUMATIF GANJIL XI

Quiz
•
9th - 12th Grade
12 questions
week 1 basic java coding language

Quiz
•
9th - 12th Grade
10 questions
Arduino - Exercise 1 Blink

Quiz
•
10th - 11th Grade
10 questions
Pemrograman Bahasa C_09-02-2023

Quiz
•
11th Grade
12 questions
C++ References

Quiz
•
6th - 12th Grade
10 questions
ข้อสอบวิทยาการคำนวณม.2

Quiz
•
11th Grade
7 questions
Komponen C++

Quiz
•
11th Grade
13 questions
OCR A Level Computer Science (H446) - Component 1.1.3 - Input, Output and Storage

Quiz
•
9th Grade - University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade