
DCS1101 - Week 2 (Intro to CPP)
Presentation
•
Computers
•
University
•
Easy
Yasmin Basiran
Used 4+ times
FREE Resource
24 Slides • 22 Questions
1
2
3
Word Cloud
Name one thing you learnt last week
4
Take note of the words on the screen...
You have 30 seconds
5
Open Ended
Write down how many you can catch!
6
7
Fill in the Blanks
Type answer...
8
9
Hotspot
Which part of the code tells the compiler that the program has been run successfully?
10
11
12
Open Ended
What do you think will happen if you don't add #include<iostream> at the top?
13
14
15
16
17
18
19
20
21
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
22
23
24
Multiple Choice
Which of the following is a valid C++ variable name?
25
Multiple Choice
Which variable name is valid in C++?
student name
studentName
student-name
student@name
26
Open Ended
After learning about C++ syntax and basic code, what questions do you still have or what would you like to explore further about programming in C++?
27
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
28
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?
29
30
31
Multiple Choice
What is the result of 5 + 3 * 2?
32
Multiple Choice
What is the output of 7 % 3?
33
Multiple Choice
What is the value of 20 / 5 * 2?
34
Multiple Choice
What is the result of (6 + 4) / 2?
35
36
37
38
39
Multiple Choice
What is the main purpose of a program?
40
Multiple Choice
Which component is required to use cout in C++?
return 0;
int main()
string
#include <iostream>
41
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
42
Multiple Choice
Which data type is best for storing a whole number?
43
Multiple Choice
What does return 0; indicate in a C++ program?
44
Multiple Choice
Which is an example of good programming practice?
45
Multiple Choice
Which of the following topics is NOT listed in the contents for the C++ introduction session?
The #include directive
Object-oriented programming
Variables and assignment statements
Arithmetic operators
46
Show answer
Auto Play
Slide 1 / 46
SLIDE
Similar Resources on Wayground
41 questions
Problem- Solving
Presentation
•
KG
44 questions
Apps & applications
Presentation
•
Professional Development
39 questions
W4 - Build a Simple Network (301i)
Presentation
•
University
38 questions
IT145 4C - Cloud Computing Basics (2)
Presentation
•
University
43 questions
BBB3013 Noun (N) / Noun Phrase (NP)
Presentation
•
University
42 questions
M1: INTRODUCCIÓN A LA MICROECONOMÍA
Presentation
•
University
41 questions
Cisco CyberOps Review 1
Presentation
•
Professional Development
39 questions
Articles 101
Presentation
•
University
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations
Quiz
•
6th - 8th Grade
10 questions
HCS SCI 03 Summer School Assessment 2
Quiz
•
3rd Grade
11 questions
Home Scope
Quiz
•
7th - 8th Grade
12 questions
2026 TAP Technology in the Classroom
Presentation
•
Professional Development
15 questions
HCS SCI 05 Summer School Assessment 2 Review
Quiz
•
5th Grade
15 questions
HCS SCI 04 Summer School Review 2
Quiz
•
4th Grade
59 questions
Geometry Unit 3 Review
Quiz
•
9th - 12th Grade
14 questions
FAST ELA READING SMAPLE TEST MATERIALS
Passage
•
3rd Grade