
[20232] CSC126: Quick Exercise 2-2
Authored by ZALIKHA ZULKIFLI
Computers
University
Used 42+ times
![[20232] CSC126: Quick Exercise 2-2](https://cf.quizizz.com/img/studentpreview.webp)
AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
7 questions
Show all answers
1.
OPEN ENDED QUESTION
5 mins • 2 pts
Write a C++ declaration statement for each of the following questions:
Declare three variables as integer. Assign the first variable to 10.
Evaluate responses using AI:
OFF
Answer explanation
int num1 = 10, num2, num3;
OR
int num1 = 10;
int num2;
int num3;
2.
OPEN ENDED QUESTION
5 mins • 1 pt
Write a C++ declaration statement for each of the following questions:
Declare a constant variable named RATE as float and assign it to 0.125.
Evaluate responses using AI:
OFF
Answer explanation
const float RATE = 0.125;
3.
OPEN ENDED QUESTION
5 mins • 1 pt
Write a C++ declaration statement for each of the following questions:
Declare a floating-point variable named initial with value 100.
Evaluate responses using AI:
OFF
Answer explanation
float initial = 100;
4.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Given the following declaration:
int w = 5, x = 7, y = 3, z = 12;
What is the result of the following expression?
w * x % y + z
14
17
21
22
5.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
What is the result of the following expression if data type of y is int?
y = 4 + (3 * (8 + 6) – 3) / 2
17.5
23.5
23
29
6.
OPEN ENDED QUESTION
5 mins • 1 pt
Evaluate the following expression:
x = 42 % 5 + 7 – (2 + 8) / 3;
Evaluate responses using AI:
OFF
Answer explanation
6
7.
OPEN ENDED QUESTION
5 mins • 1 pt
Evaluate the following expression:
y = 13.0 + 9 / 2.0
Evaluate responses using AI:
OFF
Answer explanation
17.5
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?
Similar Resources on Wayground
10 questions
Data Warehouse - Foundations
Quiz
•
University
7 questions
Data mining-Clustering-1
Quiz
•
University
10 questions
Python with DataScience
Quiz
•
7th Grade - University
9 questions
Rounding Numbers in Python
Quiz
•
University
10 questions
Quiz-AIML
Quiz
•
University
10 questions
DL Refresher
Quiz
•
KG - Professional Dev...
11 questions
COMPUTER NETWORKS
Quiz
•
University
10 questions
UTILITY PROGRAM
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
7 questions
Fragments, Run-ons, and Complete Sentences
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
10 questions
DNA Structure and Replication: Crash Course Biology
Interactive video
•
11th Grade - University
5 questions
Inherited and Acquired Traits of Animals
Interactive video
•
4th Grade - University
5 questions
Examining Theme
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University