Data Types & Variables

Data Types & Variables

University

15 Qs

quiz-placeholder

Similar activities

Geeks for Geeks PCCOER Info Session CP Quiz

Geeks for Geeks PCCOER Info Session CP Quiz

University

20 Qs

Code-O-Fiesta Round 1

Code-O-Fiesta Round 1

University

15 Qs

CSC301 Chapter 2

CSC301 Chapter 2

University

10 Qs

Arithmetic Types Declare Initialize Relation Logical Ops

Arithmetic Types Declare Initialize Relation Logical Ops

9th Grade - University

16 Qs

C Program Array and strings

C Program Array and strings

University

10 Qs

C programming-1

C programming-1

University

13 Qs

002_Java Methods

002_Java Methods

12th Grade - University

15 Qs

Java Method

Java Method

University

15 Qs

Data Types & Variables

Data Types & Variables

Assessment

Quiz

Computers

University

Hard

Created by

Strawberry Bytes

Used 15+ times

FREE Resource

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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?