Data Types & Variables

Quiz
•
Computers
•
University
•
Hard
Karen Ahmed
Used 15+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Set the variable toy equal to 1
++
+=
=
--
-=
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 Wayground
20 questions
Geeks for Geeks PCCOER Info Session CP Quiz

Quiz
•
University
20 questions
Functions

Quiz
•
University
10 questions
Array

Quiz
•
University
20 questions
C - Strings

Quiz
•
University
10 questions
Variables and Constants

Quiz
•
11th Grade - University
18 questions
PBO Inheritance Episode 2

Quiz
•
University
10 questions
OOPJ- Data Types-Java

Quiz
•
University
15 questions
Code Craft : Java & Web Quiz"

Quiz
•
University
Popular Resources on Wayground
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade