欢迎访问24帧网!

Intro to Python for Computer Science and Data Science by Paul Deitel Test bank

分享 时间: 加入收藏 我要投稿 点赞

 

 

1.3 Q3: Which one of the following statements is true?

a. a terabyte is larger than a petabyte.

b. a kilobyte is exactly 1000 bytes.

c. a gigabyte is 1024 megabytes.

d. an exabyte is 1024 zettabytes.

Answer: c.

 

1.4      Machine Languages, Assembly Languages and High-Level Languages

1.4 Q1: Which of the following statements is false?

a. Any computer can directly understand only its own machine language, defined by its hardware design.

b. The most widely used Python implementation—CPython (which is written in the C programming language for performance)—uses a clever mixture of compilation and interpretation to run programs.

c. Translator programs called assemblers convert assembly-language programs to machine language at computer speeds.

d. Interpreter programs, developed to execute high-level language programs directly, avoid the delay of compilation, and run faster than compiled programs.

Answer: d. Actually, interpreter programs run slower than compiled programs.

 

 

1.4 Q2: Which of the following statements is false?

a. With the advent of assembly languages, computer usage increased rapidly, but programmers still had to use numerous instructions to accomplish even the simplest tasks.

b. To speed the programming process, high-level languages were developed in which single statements could be written to accomplish substantial tasks.

c. Translator programs called assemblers convert high-level-language source code into machine language.

d. High-level languages instructions look almost like every-day English and contain commonly used mathematical notations.

Answer: c. Actually, those translator programs are compilers. Assemblers convert assembly language programs into machine language.

 

1.5      Introduction to Object Technology

1.5 Q1: Which of the following statements a), b) or c) is false?

a. The classes that objects come from are essentially reusable software components.

b. Almost any verb can be reasonably represented as a software object in terms of attributes (e.g., name, color and size) and behaviors (e.g., calculating, moving and communicating).

c. A class that represents a bank account might contain one method to deposit money to an account, another to withdraw money from an account and a third to inquire what the account’s balance is.

精选图文

221381