大家的编程(Python入门)-第三周Quiz

请大家自己做,不要交头接耳 =3=

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

(A) What Python script would you like me to run?
(B) What is your favourite color?
(C) What is the next machine language instruction to run?
(D) What Python statement would you like me to run?

2. What will the following program print out:
>>> x = 15
>>> x = x + 5
>>> print x
(A) 20
(B) 5
(C) 15
(D) "print x"
(E) x + 5

3. Python scripts (files) have names that end with:
(A) .exe
(B) .doc
(C) .py
(D) .png

4. Which of these words is a reserved word in Python ?
(A) for
(B) names
(C) pizza
(D) payroll

5. What is the proper way to say “good-bye” to Python?
(A) // stop
(B) while
(C) quit()
(D) #EXIT

6. Which of the parts of a computer actually executes the program instructions?
(A) Secondary Memory
(B) Input/Output Devices
(C) Central Processing Unit
(D) Main Memory

7. What is "code" in the context of this course?
(A) A way to encrypt data during World War II
(B) A sequence of instructions in a programming language
(C) A password we use to unlock Python features
(D) 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?
(A) Main Memory
(B) Central Processing Unit
(C) Secondary Memory
(D) Output Device

9. What is the best way to think about a "Syntax Error" while programming?
(A) The computer has used GPS to find your location and hates everyone from your town
(B) The computer needs to have its software upgraded
(C) The computer did not understand the statement that you entered
(D) The computer is overheating and just wants you to stop to let it cool down

10. Which of the following is not one of the programming patterns covered in Chapter 1?
(A) Random steps
(B) Repeated Steps
(C) Sequential Steps
(D) Conditional Steps
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值