5.5k views
2 votes
1} What are ways in which computer programs can be improved for efficiency?

A) Avoiding recognizing patterns
B) Breaking a problem down into smaller steps and recognizing relevant patterns
C) Writing functions in programs in large chunks, rather than as independent parts
D) Writing functions that can only be used to solve one problem

2} Which of the following would be an optimal data structure for storing a text information?
A) Dictionary
B) Integer
C) List
D) String

3} What data type is best suited to store the length of a string?
A) Boolean
B) Integer
C) List
D) String

4} Which of the following are best commenting practices?
A) Identify all of the output statements.
B) State the obvious.
C) Use block comments for long comments.
D) Use triple quotes to comment.

User Aea
by
4.9k points

1 Answer

4 votes

Answer: 1. B) Breaking a problem down into smaller steps and recognizing relevant patterns

2. D) String

3. B) Integer

4. D) Use triple quotes to comment.

Step-by-step explanation:

User Zaid Al Shattle
by
4.7k points