Selection Statements Quiz

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson
Download our mobile app to listen on the go
Get App

Questions and Answers

Which of the following is not a selection statement?

  • switch statement
  • if statement
  • for loop (correct)
  • while loop

What is the purpose of a selection statement?

  • To repeat a block of code
  • To declare a variable
  • To define a function
  • To execute a block of code based on a condition (correct)

Which of the following is an example of a selection statement?

  • print statement
  • return statement
  • input statement
  • if statement (correct)

Flashcards are hidden until you start studying

More Like This

Use Quizgecko on...
Browser
Browser