p.40
Steps in Program Development
How can the steps in a solution be expressed?
Precisely and concisely using flowcharts.
p.8
Introduction to Programming
What does software refer to?
A collection of instructions for the computer to follow and execute.
p.20
Java Compilation Process
What must be done to source codes before they can be executed?
They have to be compiled.
p.13
Machine Language and Assembly Language
Why are assembly and machine languages considered difficult for humans?
They are very difficult to read, write, and understand.
p.42
Control Structures in Programming
What is the purpose of a Connector in a flowchart?
To join different flowlines.
p.19
Steps in Program Development
What is the first step in the Java program development process?
Defining the problem and requirements.
p.1
Basic Programming Concepts
What is the primary focus of ITP3914?
Basic Programming Concepts.
p.20
Java Compilation Process
What is the role of a compiler?
To translate a high-level language program to a machine language program.
p.9
Machine Language and Assembly Language
What is a characteristic of Machine Language programming?
It is very tedious and can make errors easily.
p.7
Basic Computer Functions
What are examples of computer programs?
Windows-8, MS Office 2013, Internet Explorer, Adobe Photoshop.
p.9
Machine Language and Assembly Language
Is Machine Language programming machine dependent?
Yes, it is machine dependent.
p.43
Control Structures in Programming
What is the significance of the Structure Theorem in programming?
It emphasizes that all computer programs can be constructed using just three control structures.
p.7
Basic Computer Functions
What role does software play in a computer's intelligence?
It is the software that makes the computer intelligent.
p.18
Java Programming Basics
What does the line 'System.out.println("Hello World!");' do?
It prints 'Hello World!' to the console.
p.44
Basic Computer Functions
What is the sequence of steps in the speed calculation process?
Input distance, Input time, Calculate speed.
p.41
Control Structures in Programming
What operations does the processing symbol represent?
Arithmetic and data-manipulation operations.
p.39
Control Structures in Programming
What is the repetition operation?
Repeating a group of actions.
p.17
High-Level Programming Languages
What is COBOL primarily used for?
Business data processing; still in use in banks.
p.11
Machine Language and Assembly Language
What operation does 'ADD R0, $1234' perform?
It adds the value at memory address $1234 to the value in register R0.
p.31
Java Programming Basics
What is the main purpose of the Java program provided?
To calculate and print the area of a circle given its radius.
p.5
Key Components of a Computer
What is Secondary Storage used for?
Storing programs or data that are not actively being used by other units.
p.50
Basic Computer Functions
What does 'END' signify in a document?
It indicates the conclusion or termination of the content.
p.37
Steps in Program Development
What happens in the sixth step of program development?
Run the program on a computer.
p.17
High-Level Programming Languages
What type of programming language is Java?
An object-oriented language with networking and many other features.
p.21
Java Compilation Process
What is the first step in the Java compilation process?
Edit the Java source code.
p.25
Java Programming Basics
What does the Java class library provide?
A huge library with more than 3000 ready-for-use classes in J2SE 7.
p.9
Machine Language and Assembly Language
What is the process of instructing a computer directly using binary called?
Machine Language Programming.
p.15
High-Level Programming Languages
What is a characteristic of high-level programming languages?
They allow for writing more 'English-like' instructions.
p.14
High-Level Programming Languages
What is the purpose of high-level programming languages?
To close the gap between human programmers and computers.
p.15
High-Level Programming Languages
What do high-level languages contain that is commonly used?
Commonly used mathematical operations.
p.41
Control Structures in Programming
What is the purpose of a flow line in a flowchart?
To connect symbols and indicate the flow of logic.
p.41
Control Structures in Programming
What does the terminal symbol represent in a flowchart?
The beginning (Start) or the end (End) of a task.
p.19
Steps in Program Development
What is the purpose of coding in the Java program development process?
To translate the design into Java code.
p.4
Key Components of a Computer
What does the motherboard do?
It connects all components of the computer and allows communication between them.
p.47
Control Structures in Programming
What inputs are required for the Octopus payment process?
Octopus balance and payment amount.
p.20
High-Level Programming Languages
What are HLL programs written as?
Text files (source code).
p.46
Control Structures in Programming
What is the purpose of a decision flow chart?
To compare two different values and select alternative actions.
p.43
Control Structures in Programming
What does the Structure Theorem state?
It is possible to write ANY computer program using only three basic control structures.
p.4
Key Components of a Computer
What is the primary function of the CPU in a computer?
To process instructions and manage operations.
p.26
Java Programming Basics
What is JBuilder and who developed it?
An IDE developed by Borland.
p.4
Key Components of a Computer
What role does RAM play in a computer system?
It temporarily stores data and instructions for quick access by the CPU.
p.42
Control Structures in Programming
What does a Predefined Process represent in a flowchart?
A group of statements that perform one processing task.
p.4
Key Components of a Computer
What is the purpose of a hard drive?
To permanently store data and files.
p.42
Control Structures in Programming
What is the function of an Annotation in a flowchart?
To provide additional information about another flowchart symbol.
p.26
Java Programming Basics
What does IDE stand for?
Integrated Development Environment.
p.6
Introduction to Programming
What is the primary focus of Part 2 in the programming course?
A first taste on programming.
p.7
Basic Computer Functions
What is a computer program?
A set of instructions for which a computer processes data.
p.10
Machine Language and Assembly Language
Why might someone hesitate to program in machine language?
Because it is complex and difficult to read compared to higher-level programming languages.
p.10
Machine Language and Assembly Language
What is a key characteristic of machine language?
It consists of binary code that the computer can execute directly.
p.7
Basic Computer Functions
Can a computer function without software?
No, a computer can't do anything without software.
p.12
Machine Language and Assembly Language
Why is assembly language considered low-level?
Because it is difficult for human programmers to understand.
p.8
Introduction to Programming
What is the primary job of a programmer?
To design a complete and precise set of instructions for a computer to carry out a particular problem-solving task.
p.30
Java Programming Basics
What is the focus of the current discussion?
More details in a Java program.
p.32
Variables and Data Types
What are variables in programming?
Storage spaces for your program to hold data values.
p.30
Java Programming Basics
What is implied about the amount of detail in the current context?
There are too many details to understand at this moment.
p.46
Control Structures in Programming
What happens if the condition in a decision flow chart is true?
It follows Process step(s) 1.
p.46
Control Structures in Programming
What happens if the condition in a decision flow chart is false?
It follows Process step(s) 2.
p.48
Control Structures in Programming
What happens if the condition in a looping flow chart is true?
Process step(s) are executed.
p.5
Key Components of a Computer
What is the function of the Input Unit in a computer?
Obtains information (data and programs) from various input devices, such as keyboard and disk drive.
p.48
Control Structures in Programming
What happens if the condition in a looping flow chart is false?
The loop ends or moves to the next step.
p.11
Machine Language and Assembly Language
What is Assembly Language?
A low-level programming language that uses English-like abbreviations to represent computer operations.
p.49
Steps in Program Development
What is the first step in the process of calculating the average mark?
Sum individual marks to a total.
p.34
Variables and Data Types
What is the formula used to calculate the area of the circle in the program?
area = radius * radius * 3.14.
p.23
Java Programming Basics
What is the purpose of the 'main' method in a Java program?
It serves as the entry point for the application.
p.8
Introduction to Programming
What does a computer do in relation to a programmer's instructions?
It only follows what the programmer tells it to do.
p.25
Java Programming Basics
What are the Java APIs?
Application Programming Interfaces that collectively represent the Java class library.
p.24
Java Compilation Process
What does 'javac' command do?
It compiles the Java source file.
p.22
Java Programming Basics
What is the first step in creating a Java program?
Edit the source code using a text editor, e.g., textpad.
p.44
Basic Computer Functions
What do students prefer regarding data input in their programs?
They like their programs to rush for calculation before data input.
p.45
Steps in Program Development
How is the total calculated in the program?
total = number1 + number2 + number3.
p.4
Key Components of a Computer
What is the function of a power supply unit?
To convert electrical power from an outlet into usable power for the computer.
p.11
Machine Language and Assembly Language
What does the instruction 'LD R0, #05' do in Assembly Language?
It loads the value 05 into register R0.
p.16
Machine Language and Assembly Language
What does the instruction 'LD R0, #05' do in Assembly Language?
Loads the value 05 into register R0.
p.16
Machine Language and Assembly Language
What is the purpose of the 'ADD R0, $1234' instruction?
Adds the value at memory address $1234 to the value in register R0.
p.23
Java Programming Basics
What is the correct syntax to print 'Hello World!' in Java?
System.out.println("Hello World!");
p.16
High-Level Programming Languages
What happens if the score is less than 40 in the given High-Level Language example?
The function retake() is called.
p.36
Basic Computer Functions
What does VTC stand for?
Vocational Training Council.
p.9
Machine Language and Assembly Language
What do computers work with at the lowest level?
Binary numbers (0s and 1s).
p.21
Java Compilation Process
What is the final step after compiling Java code?
Execute the compiled code.
p.13
Machine Language and Assembly Language
What is a key characteristic of assembly and machine languages regarding CPU?
They are CPU dependent; a CPU cannot read programs written for other CPU architectures.
p.48
Control Structures in Programming
What is the first step in a looping flow chart?
Check if the condition is true.
p.45
Steps in Program Development
What process is performed in the program?
Calculate the total of the three numbers.
p.28
Java Programming Basics
What does the class header in a Java program define?
It defines the name of the class.
p.39
Basic Computer Functions
What is the purpose of storing data into variables?
To hold data for processing and retrieval.
p.47
Control Structures in Programming
What is the problem to be solved regarding Octopus payment?
Determine if Octopus payment is accepted and what the new balance is.
p.33
Basic Computer Functions
How can you print the value stored in a variable in Java?
Using System.out.println().
p.17
High-Level Programming Languages
What are the key features of C++?
An enhancement over C with object-oriented features.
p.17
High-Level Programming Languages
What is a key characteristic of object-oriented programming languages?
They allow for reusable software components that model real-world items.
p.38
Steps in Program Development
What is the second component in problem-solving according to the description?
Perform processing steps needed to produce the required outputs.
p.48
Control Structures in Programming
What does a looping flow chart represent?
Repetition of a group of actions.
p.28
Java Programming Basics
What is the purpose of the HelloWorld application in Java?
To print 'Hello World!' on the screen.
p.39
Basic Computer Functions
What is involved in the processing operation?
Performing processing and calculation.
p.49
Steps in Program Development
What is the problem to solve in the example?
Calculate and report the average mark for a class of an examination.
p.5
Key Components of a Computer
What does the Output Unit do?
Places processed information onto various output devices, such as screen or printer.
p.29
Java Programming Basics
What does the header of a class definition define?
The name of the class and other attributes.
p.19
Steps in Program Development
What is the final step in the Java program development process?
Deployment and maintenance of the program.
p.18
Java Programming Basics
What is the purpose of the 'public' keyword in the class definition?
It makes the class accessible from other classes.
p.22
Java Programming Basics
What does the output 'Hello World!' indicate?
It shows that the Java program executed successfully.
p.34
Basic Computer Functions
What is the output statement used to display the area?
System.out.println("Area = " + area);
p.16
Machine Language and Assembly Language
What does 'SUB R0, #22' accomplish?
Subtracts 22 from the value in register R0.
p.17
High-Level Programming Languages
What do C++, Java, and C# have in common?
They are all object-oriented programming languages.
p.3
Basic Computer Functions
How does the speed of a computer compare to human brains?
Millions, billions, or trillions of times faster.
p.40
Steps in Program Development
What is a flowchart?
A graphical representation that depicts the logical steps to carry out a task and shows how the steps relate to each other.
p.26
Java Programming Basics
What is the primary purpose of an IDE?
To help programmers develop and debug their programs.
p.46
Control Structures in Programming
What does the decision flow chart evaluate?
Whether a condition is true or false.
p.45
Steps in Program Development
What is the problem described in the example?
A program is required to get three numbers and then add them together to give their total.
p.39
Basic Computer Functions
What does the output operation involve?
Outputting the result and other intermediate messages.
p.32
Variables and Data Types
What must be declared when creating a variable?
The type of data to be stored and the name of the variable.
p.34
Java Programming Basics
What is the purpose of the main method in the Circle class?
It serves as the entry point for the program.
p.28
Java Programming Basics
What is the main method in a Java program?
The core part of the program that defines what the program should do.
p.18
Java Programming Basics
What is the syntax for defining a class in Java?
public class ClassName { }
p.41
Control Structures in Programming
What is unique about the decision symbol in a flowchart?
It has one entry and two exit paths, depending on a 'yes' or 'no' answer.
p.18
Java Programming Basics
What does 'String [] argv' represent in the main method?
It represents an array of strings passed as command-line arguments.
p.5
Key Components of a Computer
What is the function of the Control Unit?
Supervises and coordinates the entire operations of a computer.
p.49
Steps in Program Development
What condition is checked to continue inputting marks?
Whether there are more student marks.
p.16
High-Level Programming Languages
How is a score calculated in High-Level Language?
score = Homework + Quiz + Test.
p.31
Basic Computer Functions
What is the significance of the line 'System.out.println' in the program?
It is used to print output to the console.
p.27
Java Programming Basics
What is the primary focus of Part 4 in the Java programming context?
Some more details on Java programs.
p.10
Machine Language and Assembly Language
What is machine language?
A low-level programming language that is directly understood by a computer's CPU.
p.43
Control Structures in Programming
What are the three basic control structures mentioned in the Structure Theorem?
Sequence, Selection, and Repetition.
p.14
High-Level Programming Languages
What is the formula for calculating the High Level Program score?
High Level Program score = Homework + Quiz + Test.
p.14
Control Structures in Programming
What happens if the score is less than 40?
The program calls the retake() function.
p.15
High-Level Programming Languages
How does the speed of translated programs compare to low-level language programs?
Translated programs are slower than low-level language programs.
p.45
Steps in Program Development
What is the output of the program?
The total of the three numbers.
p.24
Java Compilation Process
What indicates a compilation error in the example?
Compilation Error message.
p.11
Machine Language and Assembly Language
How does Assembly Language compare to Machine Language?
Assembly Language is more human-readable than Machine Language.
p.47
Control Structures in Programming
What is the first step in the Octopus payment process?
Check the existing balance.
p.29
Java Programming Basics
What must the filename of a Java class be?
The same as the class name with .java appended (e.g., HelloWorld.java).
p.37
Steps in Program Development
What is involved in the fifth step of program development?
Code the steps into a targeted programming language.
p.23
Java Compilation Process
What does the error message '1 error' indicate?
There was one compilation error in the code.
p.37
Steps in Program Development
What is the final step in program development?
Document and maintain the program.
p.42
Control Structures in Programming
What does an Offpage Connector indicate in a flowchart?
That the flowchart continues to a second page.
p.35
Steps in Program Development
What is the purpose of designing the program?
To create a blueprint for coding.
p.33
Java Programming Basics
What is the purpose of the class 'Circle' in the provided code?
To calculate and print the area of a circle based on a given radius.
p.39
Control Structures in Programming
What does the selection operation entail?
Comparing two different values and selecting alternative actions.
p.28
Java Programming Basics
What does the statement 'System.out.println("Hello World!");' do?
It prints the string 'Hello World!' on the screen.
p.34
Basic Computer Functions
What is the output statement used to display the radius?
System.out.println("Radius = " + radius);
p.50
Basic Computer Functions
What does '50 (C) VTC' refer to?
It is likely a course code or identifier for a specific program at VTC.
p.2
Basic Computer Functions
What is the role of data in a computer?
Data is processed to produce meaningful information.
p.17
High-Level Programming Languages
What is C# developed for?
Developed by Microsoft in competition with Java.
p.10
Machine Language and Assembly Language
What is one advantage of programming in machine language?
It allows for maximum control over hardware and performance optimization.
p.41
Control Structures in Programming
What is the function of the input/output symbol?
Used for input and output operations, such as reading and displaying data.
p.19
Steps in Program Development
What is an important step after coding in the Java program development process?
Testing the program for errors.
p.23
Java Compilation Process
What happens if you type anything incorrect in your Java program?
Your program will fail to be compiled.
p.4
Key Components of a Computer
What is the purpose of a graphics card?
To render images and video for display.
How is the area of the circle calculated in the code?
area = radius * radius * 3.14.
p.49
Steps in Program Development
What should be done after inputting an individual mark?
Add 1 to numStudent and add the mark to total.
p.11
Machine Language and Assembly Language
What does the instruction 'SUB R0, #22' do?
It subtracts the value 22 from the value in register R0.
p.16
Machine Language and Assembly Language
What does the instruction 'LD $2345, R0' do?
Loads the value from memory address $2345 into register R0.
p.5
Key Components of a Computer
What is the role of the Memory Unit?
Retains information entered from the input unit, stores programs, and stores intermediate results during processing.
p.5
Key Components of a Computer
What does the Arithmetic and Logic Unit (ALU) perform?
Actual calculations and comparisons.
p.2
Basic Computer Functions
What are the main functions of a computer?
Input, processing, output, and storage of data.
p.34
Steps in Program Development
What issue does the text highlight about students' programming practices?
Students often put everything into a program and hope it works correctly.
p.2
Basic Computer Functions
What does a computer use to perform tasks?
A set of instructions, often referred to as software.
p.37
Steps in Program Development
What is the purpose of the fourth step in program development?
Test the steps for correctness.
p.28
Java Programming Basics
What is a multi-line comment in Java?
A comment that spans multiple lines, used for documentation.
p.2
Basic Computer Functions
What is a computer?
A device that processes data and performs tasks according to a set of instructions.
p.47
Control Structures in Programming
What happens if the payment amount is less than or equal to the balance plus 50?
Deduct the payment amount from the balance to get the new balance.
p.37
Steps in Program Development
What do you do in the third step of program development?
Turn the outline into steps for solving the problem.
p.11
Machine Language and Assembly Language
What is the purpose of the instruction 'LD $2345, R0'?
It loads the value from memory address $2345 into register R0.
p.31
Basic Computer Functions
How is the area of the circle calculated in the program?
Using the formula: area = radius * radius * 3.14.
p.31
Basic Computer Functions
What is the output of the program when executed?
Radius = 3, Area = 28.26.
p.3
Basic Computer Functions
What are the main functions of a computer?
Accepts external input, processes data, and produces output.
p.17
High-Level Programming Languages
What is Pascal known for?
A sophisticated but overly complicated high-level language.
p.3
Basic Computer Functions
What types of operations can a computer perform?
Computations and logical decisions.