C++ Basics for Grade 12 Students

C++ Basics for Grade 12 Students

12th Grade

10 Qs

quiz-placeholder

Similar activities

1.1 Computer Systems Essential Knowledge

1.1 Computer Systems Essential Knowledge

9th - 12th Grade

15 Qs

ICT Computer Basics pt1

ICT Computer Basics pt1

10th - 12th Grade

12 Qs

Kuis Dadakan ;)

Kuis Dadakan ;)

10th Grade - University

15 Qs

k12 bai4

k12 bai4

12th Grade

10 Qs

ICT as Social Change

ICT as Social Change

12th Grade

10 Qs

phần mềm trình chiếu

phần mềm trình chiếu

1st - 12th Grade

10 Qs

การสร้างสื่อดิจิตอล Quiz

การสร้างสื่อดิจิตอล Quiz

9th - 12th Grade

10 Qs

HTML & Google Site Seatwork

HTML & Google Site Seatwork

12th Grade

10 Qs

C++ Basics for Grade 12 Students

C++ Basics for Grade 12 Students

Assessment

Quiz

Computers

12th Grade

Practice Problem

Medium

Created by

Jacqueline Edwards

Used 6+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a variable in C++?

A variable in C++ is a function that performs a specific task.

A variable in C++ is a type of loop used for iteration.

A variable in C++ is a constant value that cannot be changed.

A variable in C++ is a named storage location that can hold a value of a particular data type.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

List the basic data types in C++.

string

void

array

int, float, double, char, bool

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Explain the difference between '==' and '=' operators in C++.

'==' is used for bitwise operations, '=' is used for logical operations.

'==' is for assignment, '=' is for comparison in C.

'==' is for comparison, '=' is for assignment.

'==' is for assignment, '=' is for comparison.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the different types of control structures in C++?

pointers, classes, inheritance

if-else, switch-case, functions

if-else, switch-case, loops (for, while, do-while), jump statements (break, continue, return, goto)

conditions, loops, variables

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you declare a constant variable in C++?

const int myConstant = 5;

constant int myConstant = 5;

const myConstant = 5;

int myConstant = 5;

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the '&&' operator used for in C++?

Addition operation

Logical OR operation

Logical AND operation

Bitwise AND operation

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Give an example of a for loop in C++.

for(int i = 0; i < 10; i+=2) { cout << i << endl; }

for(int i = 5; i > 0; i--) { cout << i << endl; }

for(int i = 0; i < 5; i++) { cout << i << endl; }

for(int i = 0; i <= 5; i++) { cout << i << endl; }

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?