Programming Logic Pre-Assessment

Programming Logic Pre-Assessment

Assessment

Flashcard

Computers

9th - 12th Grade

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

32 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What are the two possible results of evaluating a logical expression?

Back

true or false

2.

FLASHCARD QUESTION

Front

What is an "if" statement used for in a program?

Back

To execute a block of code if a condition is true

3.

FLASHCARD QUESTION

Front

Which of these is not a relational operator? Options: >, <, +, <=

Back

+

4.

FLASHCARD QUESTION

Front

Given the following pseudocode, what will be displayed when the program is run?
int A = 10;
int B = 5;
Console.Write(A < B);
Console.Write(" ");
Console.Write(A >= B);
Console.Write(" ");
Console.Write(A != B);

Back

False True True

5.

FLASHCARD QUESTION

Front

Which of the following expressions (A, B, C) are considered logical expressions? A) 6 + 4 B) (6 + 4) >= 10 C) 4 < 10

Back

B and C only

6.

FLASHCARD QUESTION

Front

What is the difference between the following three if() statements?
double sodaCost = 2.50;
if (sodaCost > 2.00) Console.WriteLine("I'll have water instead");
if (sodaCost > 2.00)
Console.WriteLine("I'll have water instead");
if (sodaCost > 2.00)
Console.WriteLine("I'll have water instead");

Back

All three work exactly the same way and produce the same output

7.

FLASHCARD QUESTION

Front

In a switch() statement, what comes between the "case" keyword and the colon?

Back

A specific number, letter, or quoted-string value

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?