Exam 2: Software Development Data Types and Expressions

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

In the maintenance phase of the waterfall model, the parts of a program are brought together into a smoothly functioning whole, usually not an easy task.

Free
(True/False)
4.8/5
(35)
Correct Answer:
Verified

False

You are working on a Python script that relies heavily on the cos and sin functions of the math module. As these are the only functions you require, what should you do to import only these functions, rather than the whole math module?

Free
(Multiple Choice)
4.8/5
(33)
Correct Answer:
Verified

D

What statement accurately reflects the difference between the quotient operator and the division operator?

Free
(Multiple Choice)
4.9/5
(36)
Correct Answer:
Verified

D

In Python, what data type is used to represent real numbers between -10^308 and 10^308 with 16 digits of precision?

(Multiple Choice)
4.8/5
(41)

Text processing is by far the least common application of computing.

(True/False)
4.9/5
(27)

How does the int function convert a float to an int?

(Multiple Choice)
4.8/5
(43)

What must be done in order to concatenate a string and a float object?

(Multiple Choice)
4.9/5
(46)

1,500 is a valid integer literal in Python.

(True/False)
4.9/5
(39)

What is the largest value of an int data type in the Python programming language?

(Multiple Choice)
4.9/5
(39)

When attempting to produce a correct program, what is the point of developing a test suite?

(Multiple Choice)
4.7/5
(45)

What will be the return value of running the following function? chr(ord('T') + 5)?

(Multiple Choice)
4.7/5
(38)

What function can you call inside of IDLE to show the resources of the math module, once it has been imported?

(Multiple Choice)
4.7/5
(32)

What term describes the process of substituting a simple process for a complex process in a program to make the program easier to understand and maintain?

(Multiple Choice)
4.8/5
(34)

You can use parentheses to change the order of evaluation in an arithmetic expression.

(True/False)
4.9/5
(28)

Which of the following functions and expressions will convert the ASCII character "Z" to its numeric equivalent ASCII code?

(Multiple Choice)
4.8/5
(40)

string is an example of a data type in Python.

(True/False)
4.8/5
(38)

The + operator allows you to build a string by repeating another string a given number of times.

(True/False)
4.9/5
(41)

Testing is a deliberate process that requires some planning and discipline on the programmer's part.

(True/False)
4.9/5
(31)

You are reviewing the code written by another programmer, and encounter a variable whose name is entirely in capital letters. What might you discern from this variable name?

(Multiple Choice)
4.9/5
(35)

In Python, a floating-point number must be written using scientific notation.

(True/False)
4.8/5
(40)
Showing 1 - 20 of 50
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)