Programming Concepts Flashcard

Programming Concepts Flashcard

Assessment

Flashcard

Computers

7th Grade

Hard

Created by

Bouazza Bilam

FREE Resource

Student preview

quiz-placeholder

4 questions

Show all answers

1.

FLASHCARD QUESTION

Front

Which of the following is a correct structure of an "if" statement? Options: if (condition) { block of statements }, loop (condition) { block of statements }, define (condition) { block of statements }, store (condition) { block of statements }

Back

if (condition) { block of statements }

2.

FLASHCARD QUESTION

Front

What is the purpose of the `input()` function in the Python program shown?

Back

To take user input

3.

FLASHCARD QUESTION

Front

How can you modify the program to greet a user named "John" differently?

Back

Add an if statement to check if the user is "John"

4.

FLASHCARD QUESTION

Front

What does the program ask the user to do? Options: Enter their name, Guess a number, Choose a color, Solve a puzzle

Back

Guess a number