Question

True or False A dictionary is a random-access data structure. An array is a sequential access...

True or False

  1. A dictionary is a random-access data structure.
  2. An array is a sequential access data structure.
  3. Using functions to isolate code is a good programming practice.
  4. Lexicographical ordering starts by comparing the first letters of two strings to determine the order.
  5. Standard Input in Perl and Python is the keyboard.
  6. Standard Output in Perl and Python is the printer.
  7. The character “!” comes after “M” in the ASCII table.
  8. Regular expressions are used to process text.
  9. In Perl, the last calculation performed in a subroutine is returned by the subroutine, unless an explicit return value is provided with the return keyword.
  10. Python numpy arrays are homogenous data structures.
  11. A Python list is a mutable, random access data structure of mixed type.
  12. Dictionaries are useful to store pairs of data sets which are related and of the same length.

Homework Answers

Answer #1

1. true

Explanation: dictionary is random access data structure which stores pairs of data sets

2.true

Explanation: An array is sequential access data structure

3.false

Explanation: Create a function to perform that task, and just call it every time you need to perform that task is a good programming practice

4.true

Explanation:the first character where two strings differ determines which string comes dirst

5.true

6.false

7. false

Explanation: ASCII value of ! is 33 and M is 77

8.true

9.true

Explanation: if you are not returning a value from subroutine then whatever calculation last performed in subroutine is automatically returned

10. true

11.true

12.false

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT