Questions LLC
Login
or
Sign Up
Ask a New Question
Conditional Statements
Page 7
Questions (388)
The program below is designed to tell a knock-knock joke using nested "if / else" statements and the "not equal" (!=) operator.
1 answer
asked anonymously
31 views
The program below asks the user to enter how many lives they have left in a game. Your code should respond to the user's input
1 answer
asked anonymously
34 views
The program below asks the user to enter how many lives they have left in a game. Your code should respond to the user's input
7 answers
asked anonymously
41 views
which of these conditions is used to begin a conditional statement
A when B input C if D unit
1 answer
asked anonymously
15 views
which word should be used to begin the line of code that will direct the program to do something when condition is not met
A if B
1 answer
asked anonymously
28 views
if you want to add a third option to if and else, you can use:
A print b input C alter D elf
1 answer
asked anonymously
10 views
under what circumstances will the intended line of code immediately after an if statement be executed
A if the condition is false
1 answer
asked anonymously
38 views
which symbol must be used at the end of a line that begins with else
A # B * C == D :
1 answer
asked anonymously
21 views
the line after an if statement should begin with what
A # B a print statement C a colon D a indentation
1 answer
asked anonymously
29 views
what are three keywords that can begin conditional statements
A if,elif,else B if,when,then c if,also,then D if,then ,else
1 answer
asked anonymously
21 views
what are three necessary parts of an if statement
A if ,a variable, a semi-colon B if, a print statement , a colon C if, a
1 answer
asked anonymously
30 views
The program below asks the user to enter their age and whether or not they have a driver's license. The age value from the first
3 answers
asked anonymously
32 views
The program below asks the user to enter how many lives they have left in a game. Your code should respond to the user's input
1 answer
asked anonymously
37 views
The program below asks the user to enter their age and whether or not they have a driver's license. The age value from the first
1 answer
asked anonymously
33 views
The program below asks the user to enter their grade (0-100) and whether or not they are finished with their homework (Yes/No,
1 answer
asked anonymously
33 views
The program below was written to determine ticket prices based on the day of the week and the age of the customer. The following
1 answer
asked anonymously
19 views
In this chapter, you learned how to test numeric and string values using conditional operators (e.g. <, >, ==) and join logical
1 answer
asked anonymously
33 views
Write a program in python whose inputs are three integers, and whose output is the smallest of the three values.
Ex: If the input
1 answer
asked anonymously
40 views
Suppose you are writing a program that requires you take different paths depending on the response to a prompt. The prompt has
1 answer
asked by
Hayden
30 views
A group of students is writing a program that will convert their letter grades into a 4.0 scale. For their program, they want a
1 answer
asked by
Hayden
33 views
Every conditional has two parts.
The part following if is the ____ . (1 point) hypothesis conclusion inverse converse
3 answers
asked anonymously
21 views
Write the two conditional
statements that make up the following biconditional. I drink juice if (and only if) it is breakfast
1 answer
asked anonymously
27 views
When a conditional and its
converse are true, you can combine them as a true ____. (1 point) counterexample biconditional
1 answer
asked anonymously
22 views
Is the conditional statement
true? If not, find a counterexample. If a vegetable is green, then it is broccoli. (1 point) The
1 answer
asked anonymously
31 views
The program below should give the user four chances to guess a secret number from 1 to 10. If the guess is too high or too low,
1 answer
asked anonymously
31 views
there is still a problem whith line 10 it's the if choice == "1":
1 answer
asked by
mznxbvcxvzbn
16 views
Which term describes an if statement inside of another if statement?
(1 point) Responses contested contested contained contained
1 answer
asked anonymously
73 views
Cynthia is writing a program in which the user will have three choices, and the code will be executed differently based on the
1 answer
asked anonymously
70 views
Question
A program should end if the number of the player’s lives is equal to zero. Which of the following lines of code would
1 answer
asked anonymously
61 views
Marco is writing a program in which the users will be told that they cannot enter the castle if they do not have 50 armor
1 answer
asked anonymously
35 views
Which biconditional is not a good definition?
A. A whole number is odd if and only if the number is not divisible by 2. B. An
1 answer
asked anonymously
39 views
Marco is writing a program in which the users will be told that they cannot enter the castle if they do not have 50 armor
1 answer
asked anonymously
30 views
Cynthia is writing a program in which the user will have three choices, and the code will be executed differently based on the
1 answer
asked by
Kee
130 views
A program should end if the number of the player’s lives is equal to zero. Which of the following lines of code would do that?
1 answer
asked anonymously
83 views
Cynthia is writing a program in which the user will have three choices, and the code will be executed differently based on the
1 answer
asked anonymously
35 views
2. If both the conditional statement and its converse are true, the statements can be combined to be written as a/an _______(2
1 answer
asked by
tim
38 views
Every conditional has two parts. The part following if is the ____ .
(1 point) Responses hypothesis hypothesis conclusion
1 answer
asked by
some one
28 views
Which conditional has the same truth value as its converse?
(1 point) Responses A. If x = 7, then | x | = 7. B. If a figure is a
1 answer
asked by
some one
13 views
Write the two conditional statements that make up the following biconditional.
I drink juice if (and only if) it is breakfast
1 answer
asked by
some one
26 views
Write the two conditional statements that make up the following biconditional.
I drink juice if (and only if) it is breakfast
1 answer
asked by
some one
29 views
Is the conditional statement true? If not, find a counterexample.
If a vegetable is green, then it is broccoli. (1 point)
1 answer
asked by
some one
35 views
Which statement is logically equivalent to the following conditional statement?
"If it has exactly four sides, then it is not a
1 answer
asked by
nickolia paul
35 views
What is the converse of the following conditional statement?
"If a person is a teenager, then the person is 13 years old or
1 answer
asked by
nickolia paul
57 views
Read the following statements.
Statement 1: "If she is stuck in traffic, then she is late." Statement 2: "If she is late, then
1 answer
asked by
nickolia paul
27 views
Read the following statements.
Statement 1: "If she is stuck in traffic, then she is late." Statement 2: "If she is late, then
1 answer
asked by
nickolia paul
31 views
Question 1(Multiple Choice Worth 1 points)
(01.05 MC) Which is a counterexample of the following conditional? "If a number is
1 answer
asked by
nickolia paul
60 views
Which statement is logically equivalent to the following conditional statement?
"If it has exactly five sides, then it is not an
1 answer
asked by
nickolia paul
23 views
What is the converse of the following statement?
"If the shoes are clean, then the shoes are new." If the shoes are not clean,
1 answer
asked by
nickolia paul
18 views
What is the converse of the following conditional statement. Determine the truth value of the converse. If it is false, then
1 answer
asked by
tim
53 views
What is the converse of the following conditional statement. Determine the truth value of the converse. If it is false, then
1 answer
asked by
tim
47 views
Pages
1
2
3
4
5
6
7
8
Parent Categories (77)
Algebra
Algorithms
Algorithms and Data Structures
Algorithms and Logic
Angle relationships
Angles
Basic Programming Concepts
C programming
C++
Cause-and-effect
Code Execution
Coding
Coding or Programming
Coding/Programming
Computer Programming
Concepts
Control Flow
Control Statements
Control structures
Data Processing
Decision-Making
Decision-making structures
Deductive Reasoning
English Language Arts
Equivalence
Equivalent Statements
Flowcharts and C code
Functions
Game Development
Geometry
Geometry/theory
Grammar
Grammar and Syntax
Grammar or Linguistics
Grammar rules
Java programming
Javascript
Language and Communication
Language and Grammar
Logic
Logic and Programming
Logic and Reasoning
Logic and Statements
Logic/formal reasoning
Logical Equivalence
Logical operations
Logical Reasoning
Mathematical Statements
Mathematics and Logic
Program Design
Programming
Programming and Logic
Programming Basics
Programming Concepts
Programming Language Constructs
Programming Languages
Programming logic
Programming/Computer Science
Propositional Logic
Pseudo Code
Pseudocode
Python
Python Programming
Sentence Structure
Statement Types
Statements
Symbolic Logic
Symbolic statements
Syntax
Syntax and Grammar
Syntax Errors
Troubleshooting
Truth tables
Truth Values
Truth Values and Logic
Types of Statements
Variables and Data Types