Set the variable toy equal to 1
Data Types & Variables

Quiz
•
Computers
•
University
•
Hard
Strawberry Bytes
Used 15+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
++
+=
=
--
-=
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Increase the value of toy by 4 so that toy now equals 5.
++
+=
=
--
-=
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
In C#, a computer checks for type errors:
While a program runs
After a program runs
Before a program runs
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Write a program that uses string interpolation and the variables treeName and treefamily to print: “The maple tree is part of the deciduous family.”
$ {treeName} {treeFamily}
$ [treeName] [treeFamily]
& {treeName} {treeFamily}
$ {treeFamily} {treeName}
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If the output of this code is 2, which operator would appear between the operands 14 and 6?
*
+
-
/
%
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Set the variable hours equal to 10.
++
-=
=
--
+=
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
hours = 10;
Decrease the value of hours by 2 so that hours now equals 8.
++
-=
=
--
+=
Create a free account and access millions of resources
Similar Resources on Quizizz
17 questions
Coding Titans

Quiz
•
University
15 questions
BASIC C QUIZ

Quiz
•
University
10 questions
Quiz 1

Quiz
•
University
16 questions
Arithmetic Types Declare Initialize Relation Logical Ops

Quiz
•
9th Grade - University
13 questions
C programming-1

Quiz
•
University
15 questions
002_Java Methods

Quiz
•
12th Grade - University
15 questions
Java Method

Quiz
•
University
10 questions
T_4.2 Identifier, Data Types, Operators & Expressions

Quiz
•
12th Grade - University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade