Docsity

SCRIPTING AND PROGRAMMING FOUNDATIONS PRACTICE QUESTIONS WITH VERIFIED SOLUTIONS, Exams of Programming Paradigms

Toggle sidebar
bg1
1
SCRIPTING AND PROGRAMMING FOUNDATIONS PRACTICE
QUESTIONS WITH VERIFIED SOLUTIONS
Question 1. What is a characteristic of compiled language?
Answer: Converts to machine language before running
Question 2. What is a characteristic of interpreted programs?
Answer: They can be modified at run time
Question 3. Which characteristic specifically describes a markup language?
Answer: Tags surround text to describe desired formatting
Question 4. Which characteristic specifically describes interpreted language?
Answer: They can run on any machine having the right interpreter
Question 5. Which data type is used for items that are measured in length?
Answer: Float
Question 6. What is the purpose of parentheses () in a programming
expression?
Answer: To group expressions
Question 7. Which data type should be used to keep track of how many planes
are in a hanger?
Answer: Integer
Question 8. What is a valid user-defined function name?
Answer: Variable identifier
Question 9. What is the return value of a function?
Answer: Output of a function
Question 10. When should a programmer develop an algorithm to solve a
problem?
Answer: Before writing a program to solve the problem.
Question 11. 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 12. Which phase of an agile approach would define a hypothesis to
find a problem in a program?
Answer: Testing
Question 13. Which phase of an agile approach would create an executable
program?
Answer: Implementation
Question 14. Which phase of an agile approach would create a list of
components needed to build an online auction site?
pf3

Partial preview of the text

Download SCRIPTING AND PROGRAMMING FOUNDATIONS PRACTICE QUESTIONS WITH VERIFIED SOLUTIONS and more Exams Programming Paradigms in PDF only on Docsity!

SCRIPTING AND PROGRAMMING FOUNDATIONS PRACTICE

QUESTIONS WITH VERIFIED SOLUTIONS

Question 1. What is a characteristic of compiled language?

Answer: Converts to machine language before running

Question 2. What is a characteristic of interpreted programs?

Answer: They can be modified at run time

Question 3. Which characteristic specifically describes a markup language?

Answer: Tags surround text to describe desired formatting

Question 4. Which characteristic specifically describes interpreted language?

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

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

Answer: Float

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

Answer: To group expressions

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

Answer: Integer

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

Answer: Variable identifier

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

Answer: Output of a function

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

Answer: Before writing a program to solve the problem.

Question 11. 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 12. Which phase of an agile approach would define a hypothesis to find a problem in a program?

Answer: Testing

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

Answer: Implementation

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

Answer: Design

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

Answer: Analysis

Question 16. Hierarchical Debugging

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

Question 17. 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 18. Define Library Functions

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

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

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

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

Answer: It supports decomposing programs into objects (C++, Java, Python, C#)

Question 21. What is the main characteristic of Interpreted/Scripting Language

Answer: It runs sequential statements by another program called an interpreter (Python, Javascript)

Question 22. What is the main characteristics of a Compiled Language?

Answer: A program which is converted by a compiler into machine code which runs on particular machines (C++, Java)

Question 23. What is SDLC?

Answer: The System Development Life Cycle is the development phases of programs

Question 24. What is the Waterfall Approach?

Answer: A program built by carrying out each SDLC phase in sequence

Question 25. What are the four phases of SDLC?

Answer: Analysis, Design, Implementation, and Testing

Question 26. What is the Agile (Spiral) Approach?

Answer: A program built by doing small amounts of each SDLC phases in sequence, then repeating the process

Question 27. What does UML mean and what is its definiton?

Answer: Univeral Modeling Language is a model for software design that uses different types of diagrams to visualize the structure and