Want to create interactive content? It’s easy in Genially!

Get started free

Programming Trivia 10th

Carmen Carrion

Created on September 28, 2022

python review

Start designing with a free template

Discover more than 1500 professional designs like these:

Transcript

QUIZ

CS REVIEW

SHOW OFF YOUR SKILLS!

START

question 1/6 - pROGRAMMING LANGUAGES

Which of the next programming languages did you learned?

C++

Javascript

Python

question 1/6 - Programming languages

Right answer!

Python: Is a popular programming language. It was created by Guido van Rossum, and released in 1991. It is used for: -web development (server-side), -software development, mathematics, system scripting.

question 2/6 - PROGRAMMING LANGUAGES

What is syntax?

The commands to control actions

The grammar rules of the language

The input that the program receives

question 2/6 - Programming languages

Right answer!

Python syntax: Python uses a syntax that has some similarities to the English language with influence from mathematics, using symbols like (),",',/.*,=,>,<,+,-, : aong with identation.

question 3/6 - Python

What is identation?

Using conditions to make the program decide what to execute next

Using whitespace, to define commands from loops, conditions, etc.

Using variables to store input information to use in a process

question 3/6 - python

Right answer!

Identation: is how python organize the code in blocks of commands that usually belong to a control statements like loops, conditionals, functions, etc.

question 4/6 - Python

What is a conditional statement?

Tells the computer to execute certain actions, when certain conditions are met.

Tells the computer to execute certain actions several times in a row.

Are used to store multiple items in a single variable.

question 4/6 - Python

Right answer!

Conditional Statements: are used through the various programming languages to instruct the computer on the decision to make when given some conditions. These decisions are made if and only if the pre-stated conditions are either true or false

question 5/6 - Python

What is a comparison expression?

Is composed of a variable (or data) followed by an operator, followed by another variable, the expression compares the values to get a true or false value.

Is composed of a command if/else a comparison expression and a colon(:), it compares the values to get a true or false value and execute instructions.

This example:(35 + Y ) * 2

question 5/6 - Python

Right answer!

Expressions: are a combination of operators and operands that is interpreted to produce some other value. In any programming language, an expression is evaluated as per the precedence of its operators.Comparisson operators: >,<,>=,<=,!=,==

question 6/6 - Python

Which of the next are logical operators?

AND, OR, NOT

+ , - , * , // , **, %

>, <, >=, <=, != , ==

QUESTION 6/6 - PYTHON

Right answer!

Logical operators: A logical operator is a symbol or word used to connect two or more expressions, the result of the expression is affected by the operator used to connect them.

YOU'RE GREAT!

congratulations!

ERROR

Wrong answer!

Try again