Week #3  C++ Variable Types and Constants York College CS 172

Week #3 C++ Variable Types and Constants York College CS 172

12th Grade

20 Qs

quiz-placeholder

Similar activities

Arithmetic Types Declare Initialize Relation Logical Ops

Arithmetic Types Declare Initialize Relation Logical Ops

9th Grade - University

16 Qs

Java Chapter 7 Exam

Java Chapter 7 Exam

9th - 12th Grade

20 Qs

OPC MCQ's

OPC MCQ's

12th Grade - University

20 Qs

AP CSA Review Basics

AP CSA Review Basics

9th - 12th Grade

16 Qs

Java Review

Java Review

9th Grade - University

25 Qs

Java Script Quiz

Java Script Quiz

9th - 12th Grade

15 Qs

CSA Lessons 1 - 4

CSA Lessons 1 - 4

10th - 12th Grade

15 Qs

JAVA04 ชนิดของข้อมูล

JAVA04 ชนิดของข้อมูล

12th Grade

22 Qs

Week #3  C++ Variable Types and Constants York College CS 172

Week #3 C++ Variable Types and Constants York College CS 172

Assessment

Quiz

Computers

12th Grade

Easy

Created by

Mr. Martin

Used 10+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type is used to store whole numbers without decimals?

int

double

char

string

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type is used to store floating point numbers with decimals?

int

double

char

string

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type is used to store single characters?

int

double

char

string

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type is used to store text?

int

double

char

string

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type is used to store values with two states: true or false?

int

double

char

bool

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the following code? int x = 5, y = 6, z = 50; cout << x + y + z;

11

71

50

61

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the following code? int x, y, z; x = y = z = 50; cout << x + y + z;

11

61

50

150

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?