Data Types & Variables

Data Types & Variables

University

15 Qs

quiz-placeholder

Similar activities

COA_QUIZ_UNIT I

COA_QUIZ_UNIT I

University

20 Qs

TES AWAL MODUL 2

TES AWAL MODUL 2

University

10 Qs

Computer Science: CPU performance

Computer Science: CPU performance

University

13 Qs

GEE-LIE-Intro to ICT

GEE-LIE-Intro to ICT

University

10 Qs

The Internet

The Internet

University

20 Qs

Recording Software Button Identification Quiz

Recording Software Button Identification Quiz

8th Grade - University

10 Qs

Round 2 for Preplacement Bootcamp

Round 2 for Preplacement Bootcamp

University

15 Qs

Computer Hardware foundation degree 1

Computer Hardware foundation degree 1

University

12 Qs

Data Types & Variables

Data Types & Variables

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Karen Ahmed

Used 15+ times

FREE Resource

AI

Enhance your content in a minute

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

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Set the variable toy equal to 1

++

+=

=

--

-=

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

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

Media Image

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

Media Image

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

Media Image

Set the variable hours equal to 10.

++

-=

=

--

+=

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

hours = 10;

Decrease the value of hours by 2 so that hours now equals 8.

++

-=

=

--

+=

Create a free account and access millions of resources

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?