Computer Science-SYNTAX

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

What symbol starts all single-line Python comments?

#

What symbol finds a remainder from division?

%

Who invented Python?

Guido van Rossum

A body of code that returns a value

Python function

What are the three symbols at the end of all python function definition statements?

():

What symbols raise a number to an exponent?

**

What file extension is used by Python files?

.py

How many indents are used to indent function indent, loop, or boolean code?

4

Why was Python created?

As a hobby

Code that is based on an 8-bit system for representing characters

Bytecode

The rules of syntax for a particular coding language. It is available to a code interpreter to convert typed code to byte code

Code Library

How is Python syntax different than other code languages?

Easier to read/more readable

To actually convert Python code to byte code for use by the CPU. This is also known as run

Execute

Integrated Development and Learning Environment. It is bundled with Python which interprets and executes code

IDLE

What is the name of each line in Python code?

Instruction

An application and library that converts typed code to byte code to be interpreted by a computer at the CPU

Interpreter

Special words in computer code that cannot be used as variable names

Keyword

The name of the remainder that results from the division of two numbers using the % symbol between the two numbers

Modulo

Mathematical function that adds, subtracts, multiplies, divides, or performs some other math operation on numerical values

Operator

Application that executes Python code and displays the result in the Terminal console

Python Launcher

Line of code that is not executed by the computer CPU. It is marked with a hashtag or triple quotes before and after in Python

Python comment

The specific rules of code that allow it to be read by an interpreter or by the CPU

Syntax

A container that can hold numbers or strings in code

Variable

How does Python separate lines of code?

Whitespace

The name for spaces and carriage returns in Python code used to identify and separate functions, loops, assignments, etc

Whitespace

What keyword starts all function statements?

def


Ensembles d'études connexes

ATI Standard Quiz- Fundamentals Final

View Set

Dentistry in Society - GDC principles and laws

View Set

Real Estate Principles Unit 5 Encumbrances

View Set

Econ 202 Hayes Quiz answers & Mid-Term

View Set

Chem 2 Exam 1 Practice Questions (Kinetics)

View Set