zoukankan      html  css  js  c++  java
  • Python for everyone chapter 1

    Chapter 1

    10 试题

    1. 

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

    What is the next machine language instruction to run?

    What is your favourite color?

    What Python statement would you like me to run?

    What Python script would you like me to run?

    2. 

    What will the following program print out:

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

    20

    5

    15

    "print x"

    x + 5

    3. 

    Python scripts (files) have 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 way 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 "code" in the context of this course?

    A way to 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 is the best way to think about a "Syntax Error" while programming?

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

    The computer needs to have its software upgraded

    The computer did not understand the statement that you entered

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

    10. 

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

    Conditional Steps

    Random steps

    Sequential Steps

    Repeated Steps

  • 相关阅读:
    软件技术发展的几个阶段
    MOOONscheduler核心设计图(初稿)
    Write Read Writeln Readln console
    Win32Check对Windows操作 注销 重新启动 关闭计算机_Win32Check
    WM_nclButtonDblClk响应标题栏事件_message
    使用 “+”号实现多个字符串的连接
    TRichEdit_控制TRichEdit组件滚动
    取得字符串中指定的字符str[]
    undo RichEdit1
    使Memo 原有的右键功能失效 _OnContextPopup
  • 原文地址:https://www.cnblogs.com/GarfieldEr007/p/5164520.html
Copyright © 2011-2022 走看看