Search Header Logo

Data Types & Variables

Authored by Karen Ahmed

Computers

University

Used 15+ times

Data Types & Variables
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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.

++

-=

=

--

+=

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?