
DCS1101 - Week 2 (Intro to CPP)
Presentation
•
Computers
•
University
•
Easy
Yasmin Basiran
Used 8+ times
FREE Resource
24 Slides • 18 Questions
1
2
3
Take note of the words on the screen...
4
Open Ended
Write down how many you can catch!
5
6
7
8
9
10
11
12
Hotspot
Which part of the code tells the compiler that the program has been run successfully?
13
Open Ended
What do you think will happen if you don't add #include<iostream> at the top?
14
15
16
17
18
19
Multiple Select
Select all the correct statements about variables based on the lesson.
A variable stores values used by the program
A variable must have a name, type, and value
A variable is used to display output to the user
A variable can only store numbers
20
21
22
Multiple Choice
Which of the following is a valid C++ variable name?
23
Multiple Choice
Which variable name is valid in C++?
student name
studentName
student-name
student@name
24
Multiple Choice
A teacher is writing a program to take note of students. Which one is an appropriate variable name according to good programming practices?
x
a1
totalStudents
ts
25
Open Ended
What is a variable name you would write if you, the student, are storing the value of the total subjects taken in a course?
26
27
28
Multiple Choice
What is the result of 5 + 3 * 2?
29
Multiple Choice
What is the output of 7 % 3?
30
Multiple Choice
What is the value of 20 / 5 * 2?
31
Multiple Choice
What is the result of (6 + 4) / 2?
32
33
34
35
36
Multiple Choice
What is the main purpose of a program?
37
Multiple Choice
Which component is required to use cout in C++?
return 0;
int main()
string
#include <iostream>
38
Multiple Choice
What does using namespace std; allow us to do?
Write slower code
Avoid writing std:: before standard names
Include libraries
End the program
39
Multiple Choice
Which data type is best for storing a whole number?
40
Multiple Choice
What does return 0; indicate in a C++ program?
41
Multiple Choice
Which is an example of good programming practice?
42
Show answer
Auto Play
Slide 1 / 42
SLIDE
Similar Resources on Wayground
33 questions
Hakikat Karya Ilmiah
Presentation
•
University
38 questions
MS ACCESS
Presentation
•
University
38 questions
Rhetorical Appeals and Strategies
Presentation
•
9th Grade
37 questions
Internet & WWW & Software & Computation Thinking Case Review
Presentation
•
University
38 questions
JavaScript Introduction
Presentation
•
KG - University
35 questions
Week 3 - Loops (DCS1101)
Presentation
•
University
35 questions
NOS Revision
Presentation
•
University
39 questions
Gerbang Logika
Presentation
•
University
Popular Resources on Wayground
10 questions
Safety Day 2026 – Student Review
Quiz
•
9th Grade
21 questions
Continents and Oceans
Quiz
•
6th Grade
20 questions
Parts of Speech
Quiz
•
5th Grade
16 questions
Subject & Predicate
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
12 questions
Map Skills
Quiz
•
3rd Grade
22 questions
Continents and Oceans
Quiz
•
5th Grade
15 questions
Rounding Decimals
Quiz
•
5th Grade
Discover more resources for Computers
20 questions
Disney Trivia
Quiz
•
University
10 questions
Spanish Greetings and Goodbyes!
Presentation
•
6th Grade - University
20 questions
Physical or Chemical Change/Phases
Quiz
•
8th Grade - University
39 questions
Unit 7 Key Terms
Quiz
•
11th Grade - University
25 questions
SER and Subject Pronouns
Quiz
•
8th Grade - University
38 questions
Unit 6 Key Terms
Quiz
•
11th Grade - University
19 questions
Key Concepts in Buddhism
Quiz
•
University
0 questions
Cell Domain Basic Review (Biology)
Quiz
•
University