Python-03-1-Comparision&Branching

Python-03-1-Comparision&Branching

7 Qs

quiz-placeholder

Similar activities

Nature & Environment

Nature & Environment

KG - University

12 Qs

Quick Functional Maths Questions

Quick Functional Maths Questions

KG - University

10 Qs

Romeo & Juliet Act 4 Scene 1 Questions

Romeo & Juliet Act 4 Scene 1 Questions

9th - 12th Grade

10 Qs

Marxism and Related Concepts Quiz

Marxism and Related Concepts Quiz

12th Grade

11 Qs

Ünlüler

Ünlüler

12th Grade

10 Qs

Python-03-1-Comparision&Branching

Python-03-1-Comparision&Branching

Assessment

Quiz

others

Practice Problem

Easy

Created by

Chun-Jung Lin

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

What is the result of the following: 1=2

True
SyntaxError:can't assign to literal
False

2.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

What is the output of the following code segment: i=6 i<5

SyntaxError: can't assign to literal
False
True

3.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

What is the result of the following: 5!=5

True
False

4.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

What is the output of the following code segment:'a'=='A'

True
False

5.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

In our example, if age=18 what would be the result.

You can enter
Move on

6.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

In our example what would be the result if we set the variable age as follows: age= -10

you can enter / move on
go see Meat Loaf / move on

7.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

What is the result of the following: True or False

False
True, an or statement is only False if all the Boolean values are False.