CompuScholar | Python | Chapter 1

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

Which of the following lines contains a valid Python comment?

# Look at what I can do

What file extension is normally given to Python source code?

.py

How many major releases have there been of the Python language?

3

Which of the following best describes the Python Software Foundation?

A non-profit organization created in 2001 to maintain Python

What kinds of things can you find at the www.python.org website?

Python blogs and community events Python success stories and documentation Python updates and downloads

Which of the following approaches can you use to run Python programs?

Run Python from the command line Use an Integrated Development Environment (IDE) Use the online python engine within the course lesson pages

Which of the following buttons are NOT available when running code in our online Python engine?

Test

On which computer systems will python run?

Windows Mac OS Linux

Which of the following is an advantage to using our online Python engine?

You don't need to install Python on your local computer

What statement will display the phrase "Python is great!"?

print("Python is great!")

Which of the following steps must be taken to create and run Python programs on your own computer?

Install the Python interpreter

Which of the following terms best describes the Python component that translates Python source code into program output?

Interpreter

Why is Python a good language for beginning programmers to learn?

It's free and easy to use

Which of the following best describes how Python statements are executed?

One at a time, from top to bottom

The Python language was named after what thing?

Monty Python's Flying Circus TV show

How do you safely break a long Python statement across multiple lines?

Add a backslash (\) at the end of each line that has more to follow on the next line

Why did Guido van Rossum create the Python language?

As a hobby project over a Christmas break.

What happens if you write code that does not follow Python syntax rules?

The program will not run, and you will see an error message instead

How does Python use indentation (spacing of statements to the right)?

To identify blocks of code that belong together

What is the purpose of leaving comments in your source code?

To make the code easier for human readers to understand


Ensembles d'études connexes

convection question for science final

View Set

Lesson 1: The Sales Comparison Approach

View Set

4-Priniciples of Delegation and Prioritization of Care Exam

View Set