Unit 8

studied byStudied by 0 people
0.0(0)
learn
LearnA personalized and smart learning plan
exam
Practice TestTake a test on your terms and definitions
spaced repetition
Spaced RepetitionScientifically backed study method
heart puzzle
Matching GameHow quick can you match all your cards?
flashcards
FlashcardsStudy terms and definitions

1 / 36

flashcard set

Earn XP

Description and Tags

Defensive Design, Testing and IDEs (J277)

37 Terms

1

What are High-level languages?

Programming languages that have statements resembling English or math, making them easier to learn and understand. (Like Python, C++, Java)

New cards
2

What are Low-level languages?

Programming languages that are closely related to machine code, requiring detailed knowledge of the hardware.

New cards
3

What is a Compiler?

A program that translates a high-level language into machine code, producing object code.

New cards
4

What is an Interpreter?

A program that translates and executes high-level language code line by line, with no object code produced, it translates each line of the source code then executes it. The interpreter needs to be installed on your device to run the code.

New cards
5

What is Machine code?

The fundamental language of computers, consisting of binary instructions that are directly executed by the CPU.

New cards
6

What is Assembly language?

A low-level programming language that uses symbolic instructions corresponding directly to machine code.

New cards
7

What is an Assembler?

Program that converts assembly language into machine code.

New cards
8

What is Source code?

The code written by a programmer in a high-level language before translation to machine code.

New cards
9

What is Object code?

The machine code generated by a compiler from a high-level programming language.

New cards
10

What is Input Sanitization?

Removing any unwanted characters before passing data through the program

New cards
11

What is Input Validation?

Checking if the data meets certain criteria before passing it into the program. (E.g. Checking if an email address contains an @ symbol)

New cards
12

How to perform a Range Check?

knowt flashcard image
New cards
13

How to perform a Length Check?

knowt flashcard image
New cards
14

What does isalnum() do?

Checks if all characters are alphanumerical (letters or numbers)

New cards
15

What does isdigit() do?

Checks if all characters are digits (0-9)

New cards
16

What does islower() do?

Checks if all characters are lowercase

New cards
17

What does isupper() do?

Checks if all characters are uppercase

New cards
18

What does startswith() do?

Checks if the string starts with a specific substring

New cards
19

What does endswith() do?

Checks if the string ends with a specific substring

New cards
20

What is Authentication?

Authentication is when you confirm the identity of a user before they’re allowed to access certain pieces of data or features of a program.

New cards
21

How can you maintain/improve your code?

Use:

  • Comments

  • Indentation

  • Variable (names)

New cards
22

What is the purpose of comments?

Useful for explaining what are the key features of a program.

New cards
23

What is the purpose of indentation?

Used to separate different statements in a program, allowing other users to clearly understand the logic of the code.

New cards
24

Why should you use useful naming conventions?

Allows users and other programmers to keep track and recognize what the variables are.

New cards
25

What is a syntax error?

The program doesn’t run because the code doesn’t follow the rules or grammar of the programming language,

New cards
26

What is a Logic Error?

When the program can run, but produces an unexpected output.

New cards
27

What is Iterative Testing?

The program goes through the development cycle multiple times, and the program is tested while it is written and before it is published.

New cards
28

What is Final Testing?

The program only goes through the development cycle once, and all the features are added at the same time.

New cards
29

What is Normal Data?

Data that is accepted by the program.

New cards
30

What is Boundary Data?

Data that is at the limit of the program (should be accepted)

New cards
31

What is Erroneous Data?

Data that is of the invalid data type, and should not be accepted.

New cards
32

What is Invalid Data?

Data that is outside of the program’s acceptable range.

New cards
33

What is a NOT gate?

The gate will invert the input. (1 —> 0) (0 —> 1)

<p>The gate will invert the input. (1 —&gt; 0) (0 —&gt; 1)</p>
New cards
34

What is an AND gate?

Both inputs must be true for the program to proceed.

<p>Both inputs must be true for the program to proceed.</p>
New cards
35

What is an OR gate?

One of the inputs must be true for the program to proceed.

<p>One of the inputs must be true for the program to proceed.</p>
New cards
36

What is an IDE (Integrated Development Environment)?

Piece of software that provides features to help a programmer to develop their program.

New cards
37

What are some features of IDEs?

  • Line numbers

  • Autocorrect

  • Auto complete

  • Auto indent

  • Auto color coding

  • Error diagnostics and debug tools

  • Breakpoints

  • Syntax highlighting

New cards

Explore top notes

note Note
studied byStudied by 23 people
680 days ago
5.0(1)
note Note
studied byStudied by 5220 people
688 days ago
4.6(34)
note Note
studied byStudied by 2 people
16 days ago
5.0(1)
note Note
studied byStudied by 9 people
684 days ago
5.0(2)
note Note
studied byStudied by 8 people
1019 days ago
5.0(1)
note Note
studied byStudied by 16 people
448 days ago
5.0(1)
note Note
studied byStudied by 42 people
84 days ago
5.0(1)
note Note
studied byStudied by 3 people
126 days ago
5.0(1)

Explore top flashcards

flashcards Flashcard (75)
studied byStudied by 8 people
319 days ago
5.0(1)
flashcards Flashcard (69)
studied byStudied by 37 people
80 days ago
5.0(2)
flashcards Flashcard (114)
studied byStudied by 9 people
673 days ago
5.0(1)
flashcards Flashcard (51)
studied byStudied by 4 people
665 days ago
5.0(1)
flashcards Flashcard (35)
studied byStudied by 18 people
117 days ago
4.5(2)
flashcards Flashcard (159)
studied byStudied by 5 people
769 days ago
5.0(1)
flashcards Flashcard (88)
studied byStudied by 9 people
531 days ago
4.0(1)
flashcards Flashcard (24)
studied byStudied by 38 people
1 day ago
5.0(1)
robot