Python for everyone Chapter 1

Source: Internet
Author: User

Chapter 1

Ten questions

1.

When Python was running in the interactive mode and displaying the chevron prompt (>>>)-what question is Python Asking?

What's the next machine language instruction to run?

What is your favourite color?

What Python statement would do I like me to run?

What is the Python script would you like me to run?

2.

What would the following program print out:

>>> x = 15>>> x = x + 5>>> print x

20

5

15

"Print X"

X + 5

3. 

Python scripts (files) has names that end with:

. exe

. py

. doc

. png

4. 

Which of these words is a reserved word in Python?

For

Names

Pizza

Payroll

5. 

What is the proper-to-say "good-bye" to Python?

Quit ()

#EXIT

While

//Stop

6.

Which of the parts of a computer actually executes the program instructions?

Secondary Memory

Main Memory

Input/output Devices

Central processing Unit

7.

What is the ' code ' in the context of this course?

A-Encrypt data during World War II

A sequence of instructions in a programming language

A password we use to unlock Python features

A set of rules that govern the style of programs

8.

A USB Memory Stick is an example of which of the following components of computer architecture?

Output Device

Central processing Unit

Main Memory

Secondary Memory

9.

What's the best-of-the-think about a "Syntax Error" while programming?

The computer is overheating and just wants you to stop it cool down

The computer needs to has its software upgraded

The computer did not understand the statement and that's you entered

The computer have used GPS to find your location and hates everyone from your town

.

Which of the following is not one of the programming patterns covered in Chapter 1?

Conditional Steps

Random steps

Sequential Steps

Repeated Steps

Python for everyone Chapter 1

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.