Python Test 1

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

An example of 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

What best describes the Python Software Foundation?

A non-profit organization created in 2001 to maintain Python

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 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

The Python language was named after what thing?

Monty Python's Flying Circus TV show

What best describes how Python statements are executed?

One at a time, from top to bottom

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

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

Python is free and easy to use

What 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

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

Python was the main language used in imaging the Black Hole at the centre of Messier 87 [1], a massive galaxy in the nearby Virgo galaxy cluster. T or F

True

Python will run on which computer systems?

Windows, Mac OS, Linux

Which of the following statements will display the phrase "Python is great!"?

print("Python is great!")

You can find out more about Python @

python.org


Kaugnay na mga set ng pag-aaral

Introduction to Psychology M 39: LearningCurve 39a. Basic Concepts of Psychological Disorders and Mood Disorders

View Set

U.S. History 3-6-14 Study this for test next week

View Set

PN Adult Medical Surgical Online Practice 2020 B

View Set

Solving Quadratic Equations with Square Roots: Mastery Test

View Set

Chapter 43: Hematologic and Immunologic Dysfunction

View Set

EAQ 48 Skin integrity and wound assessment

View Set