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
Q

Enumerate: STEPS OF PDLC

A
  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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

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

A
  1. To Define the Problem/ Defining the Problem
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
27
Q

determine the requirements like variables,
functions, etc. to solve the problem.

A
  1. Designing the Program
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
28
Q

_________ 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.

A

Program Design/ Designing the Program

29
Q

This approach of program design is called __________ ___________ or
_____________.

A

Top-Bottom Program Design/ Modular Programming

30
Q

translating an
algorithm into specific programming language and errors must be eliminated before
going to the next step

A
  1. Coding the Program
31
Q

The technique of programming using only well
defined control structures is known as ____________

A

Structured Programming

32
Q

Programmer must follow the
____________, violation of any rule causes
________.

A

Language Rules; Error

33
Q

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

A
  1. Testing and Debugging the Program
34
Q

is a mistake that the
programmer made while designing the solution to a
problem

A

Logical Error

35
Q

Syntax error and Logical error are collectively
known as ______

A

Bugs

36
Q

The process of identifying errors and
eliminating them is known as _________

A

Debugging

37
Q

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.

A
  1. Documenting the Program
38
Q

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

A
  1. Deploying and Maintaining the Program
39
Q

In ___________, the
programming team fixes program errors and updates
the software

A

Software Maintenance

40
Q

Enumerate: ANATOMY OF THE JAVA PROGRAM

A
  1. Text Filename
  2. Main Method
  3. Body
  4. Statement
41
Q

package amurao_lab1;

-> amurao_lab1;

A
  1. Text Filename
42
Q

public class Amurao_Lab1 {
public static void main(String[] args){
System.out.println(“Hello World”);
}
}

A
  1. Main Method
43
Q

public static void main(String[] args){
System.out.println(“Hello World”);
}

A
  1. Body
44
Q

System.out.println(“Hello World”);

A
  1. Statement
45
Q

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

A

Comments

46
Q

Enumerate: 2 TYPES OF COMMENTS

A
  1. Single-line Comments
  2. Multi-line Comment
47
Q

start with two forward slashes(/ /)

A
  1. Single-line Comments
48
Q

start with /* and ends with
*/

A
  1. Multi-line Comment
49
Q

is an illegal operation performed by the user which results
in the abnormal working of the program

A

Error

50
Q

Programming error often remain undetected until the program is compiled or executed and some inhibit the program from getting compiled or executed

A

Run Time Error

51
Q

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

A
  1. Runtime Errors
52
Q

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

A
  1. Run Time Errors
53
Q

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

A
  1. Compile Time Errors
54
Q

Compile
Time Errors are sometimes also referred to as ________

A

Syntax Errors

55
Q

used to perform common mathematical
operations

A

Arithmetic Operators

56
Q

used to assign values to variables

A

Assignment Operators

57
Q

used to compare two values (or variables)

A

Comparison Operators

58
Q

used to determine the logic between variables or values

A

Logical Operators

59
Q

are containers for storing data values

A

Variables

60
Q

Enumeration: TYPES OF VARIABLES

A
  1. String
  2. int
  3. float
  4. char
  5. double
  6. boolean
61
Q

stores text, such as “Hello” and surrounded by double quotes

A

String

62
Q

stores integers (whole numbers), without decimals, such as 123 or -123

A

int

63
Q

stores floating point numbers, with decimals, such as 19.99 or -19.99

A

float

64
Q

stores single characters, such as ‘a’ or ‘B’ and its values are surrounded by
single quotes

A

char

65
Q

can hold very large (or small) numbers. It uses 64 bits to store a
variable value and has a range greater than float type

A

double

66
Q

stores values with two states: true or false

A

boolean

67
Q

It prints string inside the quotes

A

print()

68
Q

It prints string inside the quotes similar like print()
method. Then the cursor moves to the beginning of the next line.

A

println()

69
Q

It provides string formatting

A

printf()