Docsity

SCRIPTING AND PROGRAMMING FOUNDATIONS QUESTION BANK WITH FULL SOLUTIONS, Exams of Programming Paradigms

Toggle sidebar
bg1
1
SCRIPTING AND PROGRAMMING FOUNDATIONS QUESTION
BANK WITH FULL SOLUTIONS
Question 1. What relationship is common among a programming library's
functions?
Answer: Functions all relate to the same purpose.
Question 2. What is an advantage of using a programming library?
Answer: The code has already been tested.
Question 3. Which language is dynamically typed?
Answer: Python
Question 4. Which language is not built on object-oriented design principles?
Answer: C
Question 5. A language substantially supports a programmer creating items
like person, teacher, and students. Each item has internal data and
some operations.
Which characteristic describes that language?
Answer: Object-oriented
Question 6. A programmer wants a compiler to report an error if an integer
variable is assigned with a string.
Which type of language should the programmer use?
Answer: Statically Typed
Question 7. A language uses tags around text to indicate how that text should
be formatted.
Which characteristic describes a language having such tags?
Answer: Markup
Question 8. What is a characteristic of compiled language?
Answer: Converts to machine language before running
Question 9. What is a characteristic of interpreted programs?
Answer: They can be modified at run time
Question 10. Which characteristic specifically describes a markup language?
Answer: Tags surround text to describe desired formatting
Question 11. Which characteristic specifically describes interpreted language?
Answer: They can run on any machine having the right interpreter
Question 12. Which data type is used for items that are measured in length?
Answer: Float
Question 13. What is the purpose of parentheses () in a programming
expression?
Answer: To group expressions
pf3
pf4

Partial preview of the text

Download SCRIPTING AND PROGRAMMING FOUNDATIONS QUESTION BANK WITH FULL SOLUTIONS and more Exams Programming Paradigms in PDF only on Docsity!

SCRIPTING AND PROGRAMMING FOUNDATIONS QUESTION

BANK WITH FULL SOLUTIONS

Question 1. What relationship is common among a programming library's functions?

Answer: Functions all relate to the same purpose.

Question 2. What is an advantage of using a programming library?

Answer: The code has already been tested.

Question 3. Which language is dynamically typed?

Answer: Python

Question 4. Which language is not built on object-oriented design principles?

Answer: C

Question 5. A language substantially supports a programmer creating items like person, teacher, and students. Each item has internal data and some operations. Which characteristic describes that language?

Answer: Object-oriented

Question 6. A programmer wants a compiler to report an error if an integer variable is assigned with a string. Which type of language should the programmer use?

Answer: Statically Typed

Question 7. A language uses tags around text to indicate how that text should be formatted. Which characteristic describes a language having such tags?

Answer: Markup

Question 8. What is a characteristic of compiled language?

Answer: Converts to machine language before running

Question 9. What is a characteristic of interpreted programs?

Answer: They can be modified at run time

Question 10. Which characteristic specifically describes a markup language?

Answer: Tags surround text to describe desired formatting

Question 11. Which characteristic specifically describes interpreted language?

Answer: They can run on any machine having the right interpreter

Question 12. Which data type is used for items that are measured in length?

Answer: Float

Question 13. What is the purpose of parentheses () in a programming expression?

Answer: To group expressions

Question 14. Which data type should be used to keep track of how many planes are in a hanger?

Answer: Integer

Question 15. What is a valid user-defined function name?

Answer: Variable identifier

Question 16. What is the return value of a function?

Answer: Output of a function

Question 17. When should a programmer develop an algorithm to solve a problem?

Answer: Before writing a program to solve the problem.

Question 18. Which phase of a waterfall approach would create a sequence diagram that specifies the required order of events between completed program components?

Answer: Testing

Question 19. Which phase of an agile approach would define a hypothesis to find a problem in a program?

Answer: Testing

Question 20. Which phase of an agile approach would create an executable program?

Answer: Implementation

Question 21. Which phase of an agile approach would create a list of components needed to build an online auction site?

Answer: Design

Question 22. Which phase of a waterfall approach defines a program's goals?

Answer: Analysis

Question 23. Hierarchical Debugging

Answer: Dividing the statements into regions and inserts one debug output statements after each region

Question 24. What is a coding library?

Answer: a set of pre-written functions that carry out common tasks, that programmers can use to improve productivity.

Question 25. Define Library Functions

Answer: Functions that relate to the same purpose (i.e., teacher, student, grades)

Question 26. What is a characteristic of a Markup Language?

Answer: Allows a developer to describe a document's content, formatting

Question 27. What is the main characteristic of Object-Oriented Language

Answer: It is used to visually model how a user interacts with a software program

Question 41. What is a structural class diagram? And what does class mean?

Answer: It is used to visually model the classes of a computer program. A class is a code blueprint (flowchart) for creating an object

Question 42. What is a behavioral sequence diagram?

Answer: It shows interactions between software components and indicates the order of events.

Question 43. What are the equivalent UML diagrams used in SDLC phases?

  1. Analysis
  2. Design
  3. Implementation
  4. Testing

Answer: A Case Diagram, a Class Diagram, Flowchart (Activity Diagram), and a Sequence Diagram (respectively)

Question 44. SDLC - Define the Analysis Phase

Answer: Defines a program's goals

Question 45. SDLC - Define the Design Phase

Answer: Defines specifics of how to build a program

Question 46. SDLC - Define the Implementation Phase

Answer: Involves writing the program

Question 47. SDLC - Define the Testing Phase

Answer: Checks that the program correctly meets goals

Question 48. What is a popular Markup Language?

Answer: HTML: describes texts, links, images, and other features

Question 49. What is a characteristic of Interpreted/Scripting Language

Answer: Dynamically typed - changing variables

Question 50. What is an advantage of Interpreted/Scripting Language

Answer: Runs on most machines with an interpreter

Question 51. What is a characteristics of a Compiled Language?

Answer: Statically-typed - constant variable declaration

Question 52. What is an advantage of a Compiled Language?

Answer: Runs faster than interpreted language