Shared Flashcard Set

Details

Module 7
Decision Making Statement Review
23
Computer Science
9th Grade
02/12/2020

Additional Computer Science Flashcards

 


 

Cards

Term
What are the only two answers for a computer?
Definition
True or False.
Term

If…Then is a decision structure that executes a set of statements when.....

Definition

a condition is true.

Term
¨When the question is ______, the statements after THEN (and down to ENDIF) execute.  They are skipped if the question is _____.
Definition
True; False.
Term
In Visual Studio we use the ________ statement to tell the computer we want it to make a decision.
Definition
IF/THEN/ELSE
Term

What is this an example of?


 
If a = b then
        c= 10
 
Else
            
 c=13
 
End If
Definition
IF/THEN/ELSE
Term
Else is __________.
Definition
Optional.
Term
If ELSE is used, the statements after the ELSE will execute if the “question” is ________. 
Definition
Not true.
Term
If…Then…Else statement is within an If…Then…Else statement it is called what?
Definition
Nested/Nested Statement.
Term

What is this an example of?

 

 

  If intNum = 10 Then

  Me. lblMsg.text = “Ten”

  Else

  If IntNum > 10 Then

  Me.lblMsg.text = “More than 10”

  Else

  Me. lblMsg.text = “Less than 10”

  End If

  End If

Definition

 

Nested If Statement.

Term
An IF statement can have multiple else statements- each one a new question or condition to check. This is also called a(n) ___________.
 
Definition
ElseIf Ladder.
Term

The following code is an example of what?

        If a = b Then

            c = 10

        ElseIf a > b Then

            c = 14

        ElseIf a < b Then

            c = 16

        Else

            c = 12

        End If

Definition
If/Then/ElseIf
Term
What is used instead of multiple else if statements?
Definition
Select Case Decision
Term

In select case, the _______  type should match the _______ type.

 
Definition
Value; Expression
Term
What muse you use with relational operators?
Definition
Case Is
Term
¨In most cases _____  is good for a ____ decision and a ______  is correct to use when there are multiple possible answers with only one correct answer.
Definition
If..Then/Single/Select Case
Term
 __________ are used to create compound Boolean expressions.
Definition
Logical Operators.
Term
Which two operators do you use to form a boolean expression?
Definition
And or Or
Term
The order of precedence for logical operators is what?
Definition
Not, then And, then Or.
Term
When using And or & with IF, both (all) conditions MUST be ______ for the entire IF (or else if) question to evaluate to ______.
Definition
True; True.
Term
An _____ can also be used in assignment statements to set the value of a variable.
Definition
IF.
Term
To generate a random integer, we can use the what? 
Definition
System Random Class.
Term
What What returns a random number between 0.0 and 1.0?
Definition
NextDouble
Term
________ returns a nonnegative random number between 0 and the MaxValue (2,147,483,647)
Definition
Next
Supporting users have an ad free experience!