C++
Quiz by Natalina Bernardo
Feel free to use or edit a copy
includes Teacher and Student dashboards
Measure skillsfrom any curriculum
Measure skills
from any curriculum
Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.
With a free account, teachers can
- edit the questions
- save a copy for later
- start a class game
- automatically assign follow-up activities based on students’ scores
- assign as homework
- share a link with colleagues
- print as a bubble sheet
4 questions
Show answers
- Q1What is a function in C++?A named collection of code that performs a specific task and can return a valueA variable that stores dataA loop that runs a certain number of timesAn if statement that checks a condition30s
- Q2What is a pointer in C++?A function that takes no argumentsA variable that stores the memory address of another variableA variable that stores a boolean valueA loop that iterates through an array30s
- Q3What is inheritance in C++?The ability of one class to inherit properties and methods from another classThe act of initializing a variableThe process of converting a data type to anotherA loop that runs continuously30s
- Q4What is the difference between a struct and a class in C++?A class can have multiple instances while a struct can only have one instanceA struct can inherit from another struct but not from a classIn a class, members are private by default, while in a struct members are public by defaultA struct can have methods while a class cannot30s