Lesson 2: Introduction To Programming Flashcards

1
Q

detailed plan or procedure for solving with a computer; unambiguous sequence of computational instruction

A

Computer Program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

process of creating set of instruction that tell a computer how to perform a task

A

Programming

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

this process involves describing the problem in the form of a special code
or algorithm so that computers solve the problem

A

Programming

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

it is required for programmers to learn basic concepts of ___________ to write programs

A

Mathematics

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

is a computer language programmers use to develop programs, scripts, or other sets of instructions for computers to execute

A

Programming Language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

many languages share similarities, each has its own ______

A

Syntax

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Once a programmer learns the languages rules, syntax, and
structure, they write the ________ in a ___________

A

Source Code; Text Editor/IDE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

IDE stands for?

A

Integrated Development Environment

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

is an iterative process that allows for feedback and adjustments to be
made at each phase, to ensure that the final product meets the needs of the stakeholders and is of high quality

A

PDLC

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

PDLC stands for?

A

Program Development Life Cycle

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

is a systematic way of
developing quality software

A

PDLC

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

it provides an organized plan for breaking down the task of program
development into manageable chunks, each of which must be
completed before moving on to the next phase

A

PDLC

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Enumeration: PHASES OF PDLC

A
  1. Planning
  2. Analysis
  3. Design
  4. Implemetation
  5. Testing
  6. Deployment
  7. Maintenance
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

In this phase, the goals and objectives of the program are
defined, and a plan is developed to achieve them.

A
  1. Planning
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

This includes
identifying the resources required and determining the budget and
schedule for the program

A
  1. Planning
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

In this phase, the requirements for the program are
defined and analyzed

A
  1. Analysis
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

This includes identifying the stakeholders,
their needs and expectations, and determining the functional and
non-functional requirements for the program

A
  1. Analysis
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

In this phase, the program’s architecture and design
are developed

A
  1. Design
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

This includes creating a detailed design of the
program’s components and interfaces, as well as determining
how the program will be tested and deployed.

A
  1. Design
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

In this phase, the program is developed and
coded

A
  1. Implementation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

This includes writing the program’s source code and
creating any necessary documentation

A
  1. Implementation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

In this phase, the program is tested to ensure that it
meets the requirements and is free of defects

A
  1. Testing
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

In this phase, the program is deployed and made
available to users

A
  1. Deployment
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

After the deployment, the program is maintained
by fixing any bugs or errors that are found and updating the
program to meet changing requirement

A
  1. Maintenance
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Enumerate: STEPS OF PDLC
1. Defining the Problem 2. Designing the Program 3. Coding the Program 4. Testing and Debugging the Program 5. Documenting the Program 6. Deploying and Maintaining the Program
26
we decide the boundaries of the problem. In major software projects, this is a job for system analyst, who provides the results of their work to programmers in the form of a program specification
1. To Define the Problem/ Defining the Problem
27
determine the requirements like variables, functions, etc. to solve the problem.
2. Designing the Program
28
_________ starts by focusing on the main goal that the program is trying to achieve and then breaking the program into manageable components, each of which contributes to this goal.
Program Design/ Designing the Program
29
This approach of program design is called __________ ___________ or _____________.
Top-Bottom Program Design/ Modular Programming
30
translating an algorithm into specific programming language and errors must be eliminated before going to the next step
3. Coding the Program
31
The technique of programming using only well defined control structures is known as ____________
Structured Programming
32
Programmer must follow the ____________, violation of any rule causes ________.
Language Rules; Error
33
After removal of syntax errors, the program will execute. However, the output of the program may not be correct. This is because of logical error in the program
4. Testing and Debugging the Program
34
is a mistake that the programmer made while designing the solution to a problem
Logical Error
35
Syntax error and Logical error are collectively known as ______
Bugs
36
The process of identifying errors and eliminating them is known as _________
Debugging
37
After testing, the software project is almost complete and the structure charts, pseudocodes, flowcharts and decision tables developed during the design phase become documentation for others who are associated with the software project.
5. Documenting the Program
38
the program is deployed (installed) at the user’s site. Here also, the program is kept under watch till the user gives a green signal to it and even after the software is completed, it needs to be maintained and evaluated regularly
6. Deploying and Maintaining the Program
39
In ___________, the programming team fixes program errors and updates the software
Software Maintenance
40
Enumerate: ANATOMY OF THE JAVA PROGRAM
1. Text Filename 2. Main Method 3. Body 4. Statement
41
package amurao_lab1; -> amurao_lab1;
1. Text Filename
42
public class Amurao_Lab1 { public static void main(String[] args){ System.out.println("Hello World"); } }
2. Main Method
43
public static void main(String[] args){ System.out.println("Hello World"); }
3. Body
44
System.out.println("Hello World");
4. Statement
45
can be used to explain Java code, and to make it more readable and it can also be used to prevent execution when testing alternative code
Comments
46
Enumerate: 2 TYPES OF COMMENTS
1. Single-line Comments 2. Multi-line Comment
47
start with two forward slashes(/ /)
1. Single-line Comments
48
start with /* and ends with */
2. Multi-line Comment
49
is an illegal operation performed by the user which results in the abnormal working of the program
Error
50
Programming error often remain undetected until the program is compiled or executed and some inhibit the program from getting compiled or executed
Run Time Error
51
occur or we can say, are detected during the execution of the program and sometimes these are discovered when the user enters an invalid data or data which is not relevant
1. Runtime Errors
52
occur when a program does not contain any syntax errors but asks the computer to do something that the computer is unable to reliably do
1. Run Time Errors
53
are those errors which prevent the code from running because of an incorrect syntax such as a missing semicolon at the end of a statement or a missing bracket, class not found, etc. and these errors are detected by the java compiler and an error message is displayed on the screen while compiling
2. Compile Time Errors
54
Compile Time Errors are sometimes also referred to as ________
Syntax Errors
55
used to perform common mathematical operations
Arithmetic Operators
56
used to assign values to variables
Assignment Operators
57
used to compare two values (or variables)
Comparison Operators
58
used to determine the logic between variables or values
Logical Operators
59
are containers for storing data values
Variables
60
Enumeration: TYPES OF VARIABLES
1. String 2. int 3. float 4. char 5. double 6. boolean
61
stores text, such as "Hello" and surrounded by double quotes
String
62
stores integers (whole numbers), without decimals, such as 123 or -123
int
63
stores floating point numbers, with decimals, such as 19.99 or -19.99
float
64
stores single characters, such as 'a' or 'B' and its values are surrounded by single quotes
char
65
can hold very large (or small) numbers. It uses 64 bits to store a variable value and has a range greater than float type
double
66
stores values with two states: true or false
boolean
67
It prints string inside the quotes
print()
68
It prints string inside the quotes similar like print() method. Then the cursor moves to the beginning of the next line.
println()
69
It provides string formatting
printf()