CodeHS - Unit 2: Lessons 1 - 3

CodeHS - Unit 2: Lessons 1 - 3

11th - 12th Grade

13 Qs

quiz-placeholder

Similar activities

Python Testing

Python Testing

9th - 12th Grade

10 Qs

Java Collection

Java Collection

12th Grade

10 Qs

KIỂM TRA TX L2-2-2122

KIỂM TRA TX L2-2-2122

1st Grade - University

10 Qs

TIN 11 BÀI 11 KIỂU MẢNG

TIN 11 BÀI 11 KIỂU MẢNG

11th Grade

18 Qs

Начала программирования на языке Паскаль

Начала программирования на языке Паскаль

8th - 11th Grade

15 Qs

11° Evaluación bimestral de informática

11° Evaluación bimestral de informática

11th Grade

15 Qs

Program Implementation

Program Implementation

10th - 12th Grade

15 Qs

Quiz 9 (15.09.2021)

Quiz 9 (15.09.2021)

1st - 12th Grade

10 Qs

CodeHS - Unit 2: Lessons 1 - 3

CodeHS - Unit 2: Lessons 1 - 3

Assessment

Quiz

Computers

11th - 12th Grade

Practice Problem

Medium

Created by

Courtney Yatteau

Used 35+ times

FREE Resource

AI

Enhance your content in a minute

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

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is the correct way to declare an integer variable?

int x = 3;

integer x = 3;

integer x is 3;

int x is 3;

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is the correct numeric java type to use for decimals?

Integer

Double

Char

Boolean

String

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which variable declaration below is correct?

int a = 4.5;

char grade = 95;

int a = 3/4;

char grade = 'A';

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which option correctly declares a string variable?

String name = Chris;

string name = "Chris";

string name = 'Chris';

String name = "Chris";

String name = 'Chris';

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which variable name is invalid?

eightName

_8name

8name

$eightname

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is the correct way to obtain user input for a string?

readLine()

readInt()

readDouble()

readBoolean()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You must use quotations around a prompt in a readLine().


Example:

readLine("What's your name?");

True

False

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?