GoodScores

Business Application Development – Flashcards & Quiz Questions

How business software is built: programming fundamentals, problem solving, object-oriented design, user interfaces, databases, web applications, testing and deployment.

319 flashcards · 160 quiz questions · 8 topics

Get all 319 cards with Lifetime

1. Business Applications and the Development Process

What Are Business Applications · Ways to Acquire Business Applications · The Software Development Life Cycle · Compilers and Interpreters Compared · Integrated Development Environments and Their Tools

What is a business application?
A business application is software that supports business activities such as accounting, inventory, sales and customer management. It is built to help an organisation carry out and record its day-to-day work.
Name a business application that supports accounting and describe what it does.
An accounting application records financial transactions such as sales, payments and expenses, then uses them to produce financial records and reports. Its focus is the flow of money.
What business activity does an inventory application support?
An inventory application tracks stock items and the quantities held, so the business knows what is available and when goods need to be replaced. Its focus is goods rather than money.

Software that supports business activities such as accounting, inventory, sales and customer management is known as what?

  1. A. A hardware device driver
  2. B. A general text editor
  3. C. A business application
  4. D. An operating system

A business application is software that supports business activities, including accounting, inventory, sales and customer management. An operating system, device driver or text editor is general-purpose or system software rather than software built around a business activity.

An inventory application uses this rule: reorderPoint = 20; stock = 18; if stock < reorderPoint: status = 'REORDER'; else: status = 'OK'. What status value is assigned?

  1. A. NO_ORDER
  2. B. IN_STOCK
  3. C. LOW_STOCK
  4. D. REORDER

The rule sets reorderPoint to 20 and stock to 18. Since 18 is less than 20, the condition stock < reorderPoint is true, so the if branch assigns the status REORDER.

40 flashcards and 20 quiz questions in this topic.

2. Problem Solving, Algorithms and Program Design

Problem Analysis and the IPO Model · Algorithm Fundamentals and Key Characteristics · Top-Down Design and Modular Decomposition · Sequence, Selection and Iteration Structures · Pseudocode and Flowchart Algorithm Representation

What is the input-process-output (IPO) model?
The IPO model analyses a problem by identifying three parts: the data needed (inputs), the steps that transform that data (processing), and the result produced (outputs). It gives a simple structure for understanding what a program must do before code is written.
In the IPO model, what counts as an input?
An input is any data or value the problem needs in order to work, such as a number typed by a user, a value read from a file, or data passed from another part of a program. Inputs are the raw material that processing uses.
What happens in the processing part of the IPO model?
Processing is the rule or set of steps that transforms the inputs into the required output, such as calculating, comparing, sorting, or checking a condition. It describes how the result is obtained, not just what the result is.

Which statement describes the input-process-output (IPO) model?

  1. A. It breaks a large program into smaller modules that each solve one sub-problem.
  2. B. It is a diagram that uses ovals, rectangles and diamonds to show the steps.
  3. C. It is a finite ordered set of unambiguous steps for solving a problem.
  4. D. It analyses a problem by naming the data required, the transformations applied, and the result produced.

The IPO model organises problem analysis into inputs, processing and outputs, so it names what data is needed, how it is transformed and what result appears. The other descriptions match top-down design, flowcharts and algorithms instead.

A program reads a number, doubles it, adds 1, then prints the result. Trace the processing for an input of 5. What does the program print?

  1. A. The program prints 10.
  2. B. The program prints 11.
  3. C. The program prints 12.
  4. D. The program prints 6.

Starting from 5, doubling gives 10, and then adding 1 gives 11, so the printed result is 11. The other values come from stopping after one step or adding the wrong amount.

40 flashcards and 20 quiz questions in this topic.

3. Variables, Data Types and Control Structures

Variables and Constants · Fundamental Data Types · Conditions and Selection Structures · Repetition Structures: For and While Loops · Arrays and Lists

What is a variable in programming?
A variable is a named storage location whose value can change while a program runs. The name allows the program to read or update that stored value later.
What is a constant?
A constant is a named value that is set once and cannot change during execution. Trying to assign it a new value is normally treated as an error.
What does declaring a variable do?
Declaration creates the name and reserves storage for the value; in typed languages it also fixes the data type. It may include an initial value, but that is optional.

Which description correctly defines a variable in a program?

  1. A. A collection of values reached through an index starting at zero
  2. B. A named storage location whose value can change while the program runs
  3. C. A named value that stays fixed once it has been set
  4. D. A construct that repeats a block while a condition is true

A variable is a name for a storage location that can be reassigned during execution. The fixed-value description defines a constant, while repetition and indexed collections describe other constructs.

Trace this program step by step and state the value it prints. total = 4 total = total + 3 total = total * 2 print(total)

  1. A. It prints seven.
  2. B. It prints fourteen.
  3. C. It prints twelve.
  4. D. It prints eleven.

The variable begins at 4, the second line stores 4 + 3 = 7, and the third stores 7 * 2 = 14, so the program prints fourteen.

40 flashcards and 20 quiz questions in this topic.

4. Functions and Modular Programming

Function Fundamentals: Definition and Calling · Parameters, Arguments and Data Passing · Return Values and Function Results · Variable Scope: Local and Global · Modular Programming Design and Benefits

What is a function (also called a procedure) in programming?
A named block of code that performs a specific task and can be called from other parts of the program. Giving the block a name lets other code ask it to run.
Which two parts make up a function definition?
A header that names the function (and lists any parameters), and a body containing the statements the function executes. The header introduces the block; the body holds what it does.
What rule should guide the naming of a function?
The name should clearly describe the task the function performs, usually as an action word or short action phrase. A reader should be able to guess what it does from the name alone.

Which statement correctly describes a function (procedure)?

  1. A. A marker that ends the program without running any statements
  2. B. A loop that repeats statements while a condition holds
  3. C. A named block of code that carries out one task and can be called from other parts of the program
  4. D. A variable whose value stays the same for the whole program

A function is defined as a named block of code for a specific task that other code can call. The other options describe a constant, an end marker or a loop, none of which is a callable named block.

A program contains the call process_order(), but no function named process_order has been defined. What happens when execution reaches that call?

  1. A. The program creates an empty function automatically and continues
  2. B. The program reports an error because there is no block of code to run for that name
  3. C. The program repeats the previous statement until a matching function appears
  4. D. The program skips the call and carries on with the following statement

A call can only run a function that has been defined; without a matching definition there is no block to execute, so the program fails with an error. It does not skip, invent a function or loop back automatically.

40 flashcards and 20 quiz questions in this topic.

5. Object-Oriented Programming

Classes, Objects, and Constructors · Encapsulation and Data Hiding · Inheritance and Class Hierarchies · Polymorphism and Method Overriding · Abstraction and Interfaces

What is a class in object-oriented programming?
A class is a blueprint that defines the attributes (data) and methods (behaviour) that its objects will have. It describes the structure and behaviour but is not itself an object.
What is an object, and how does it relate to a class?
An object is an instance of a class, created from that class's blueprint. It holds its own values for the attributes and can use the methods defined in the class.
What is the difference between an attribute and a method in a class?
Attributes are the data or state an object stores, such as a name or a price. Methods are the behaviour: the actions an object can perform, often reading or changing its attributes.

Which statement correctly describes a class in object-oriented programming?

  1. A. A special method that runs automatically when an object is created
  2. B. A copy of an object that is made after the object already exists
  3. C. A blueprint that defines the attributes and methods of objects created from it
  4. D. A single object that stores data but has no methods of its own

A class is a blueprint that defines the attributes and methods that objects created from it will have. It is not an individual object, a constructor, or a duplicate of an object.

Consider this pseudocode: class Counter constructor(start): value = start increment(): value = value + 1 c = Counter(10) c.increment() c.increment() What value is stored in c at the end?

  1. A. 11
  2. B. 12
  3. C. 13
  4. D. 10

The constructor sets value to 10 when c is created, the first increment makes it 11, and the second increment makes it 12. The stored value at the end is therefore 12.

40 flashcards and 20 quiz questions in this topic.

6. User Interfaces and Event-Driven Programming

GUI Components and Interface Elements · Principles of Good Business Interface Design · Events and Event Handler Functions · Input Validation Techniques · Exception Handling with Try and Catch

What is a graphical user interface (GUI)?
It is a way of interacting with a program through visual elements such as windows, buttons, text boxes, menus and lists. The user sees and manipulates these elements on screen instead of relying only on typed commands.
What is the purpose of a window in a GUI?
A window is a bounded area of the screen that acts as a container for other controls and gives the program its own workspace. It usually has a title and controls to close, resize or move it.
What is a button used for in an interface?
A button is a clickable control that requests one specific action, such as confirming, cancelling or opening a dialog. Pressing it is the user's way of signalling 'do this now'.

Which interface element lets a user switch a single option on or off without affecting other options?

  1. A. A command button that starts an action
  2. B. A menu item that belongs to a drop-down
  3. C. A check box that can be ticked or cleared on its own
  4. D. A list box that shows several items in a panel

A check box is a small square the user can tick or clear independently, which matches switching one option on or off. A list or menu is for choosing among items, and a button requests an action.

How does a list box differ from a menu in an interface?

  1. A. A list box starts an action when pressed, while a menu stores the numbers the user typed
  2. B. A list box shows the window title, while a menu is a field for entering an amount
  3. C. A list box keeps several items visible for selection, while a menu is opened to pick one command at a time
  4. D. A list box accepts typed sentences from the user, while a menu is used to resize the window

A list box displays a set of items in a panel that stays visible, while a menu offers commands that are opened and chosen one at a time. Typed input belongs to a text box and actions belong to a button.

40 flashcards and 20 quiz questions in this topic.

7. Database Connectivity and Web Applications

Client-Server Model and HTTP Methods · HTML, CSS and JavaScript Roles · Database Connectivity and CRUD Operations · REST APIs and Web Resources · SQL Injection and Parameterised Queries

What is the client-server model in a web application?
It is an arrangement in which a browser acts as the client and sends requests to a web server. The server processes each request and returns a response to the browser.
What role does the browser play in the client-server model?
The browser is the client: it sends a request to the web server when the user needs a page or data, then displays the response it receives.
What does a web server do when it receives a request?
It processes the request, performs any needed work such as fetching stored data, and sends back a response containing the result or a status.

In the client-server model of a web application, which statement correctly describes the two roles?

  1. A. The web server sends requests to a browser, which processes them and returns responses
  2. B. The browser processes requests and the web server displays the returned responses
  3. C. The browser and web server each send requests and return responses at the same time
  4. D. The browser sends requests to a web server, which processes them and returns responses

The browser is the client that initiates requests, and the web server processes those requests and returns responses. Reversing or sharing those roles contradicts the client-server model.

Which statement about the HTTP GET method is correct?

  1. A. GET hides all submitted values from the server so they cannot be logged
  2. B. GET submits form data in the request body and changes the server's stored data
  3. C. GET requests data from a server and sends the data as part of the URL
  4. D. GET is used only when the server must create a new record before responding

GET is designed to request data, and any values it supplies are placed in the URL where they are visible. Submitting form data in the request body and changing stored data is the role of POST.

40 flashcards and 20 quiz questions in this topic.

8. Testing, Debugging and Deployment

Types of Program Errors · Debugging Tools and Techniques · Black-Box and White-Box Testing · Boundary Value Testing · Version Control and Deployment

What is a syntax error, and what effect does it have on a program?
A syntax error breaks the rules of the programming language, such as missing punctuation or a misspelled keyword. It stops the program from running at all.
When is a syntax error found relative to program execution?
A syntax error is found before execution, while the code is being translated or parsed. None of the program's instructions run until it is fixed.
In pseudocode, what kind of error occurs if a required 'THEN' or colon is omitted after 'IF total > 0'?
This is a syntax error, because the structure required by the language is incomplete. The program is rejected before it runs.

A program is rejected before any of its instructions execute because a required punctuation mark is missing. What kind of error is this?

  1. A. An input error, since the supplied values were invalid
  2. B. A syntax error, since a rule of the language was broken
  3. C. A runtime error, since a failure happened during execution
  4. D. A logic error, since the results would be incorrect

A syntax error breaks the rules of the language and stops the program before it runs, which matches code rejected for missing punctuation. A runtime error would occur only after execution begins.

What does this pseudocode print? total = 0 FOR each score IN [10, 20, 30]: total = total + score average = total / 2 PRINT average

  1. A. Sixty (60)
  2. B. Fifteen (15)
  3. C. Thirty (30)
  4. D. Twenty (20)

The loop adds 10 + 20 + 30, so total becomes 60, and the next line divides by the fixed value 2 to give 30. The program prints 30; because the divisor should have been the number of scores, the result is wrong even though nothing crashes.

39 flashcards and 20 quiz questions in this topic.

Study every card

Every card and question in this course comes with the Lifetime package. Add it to GoodScores and practise with flashcards, quizzes and spaced review.

Get all 319 cards with Lifetime