Unit 8

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/36

flashcard set

Earn XP

Description and Tags

Defensive Design, Testing and IDEs (J277)

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

37 Terms

1
New cards

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)

2
New cards

What are Low-level languages?

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

3
New cards

What is a Compiler?

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

4
New cards

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.

5
New cards

What is Machine code?

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

6
New cards

What is Assembly language?

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

7
New cards

What is an Assembler?

Program that converts assembly language into machine code.

8
New cards

What is Source code?

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

9
New cards

What is Object code?

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

10
New cards

What is Input Sanitization?

Removing any unwanted characters before passing data through the program

11
New cards

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)

12
New cards

How to perform a Range Check?

knowt flashcard image
13
New cards

How to perform a Length Check?

knowt flashcard image
14
New cards

What does isalnum() do?

Checks if all characters are alphanumerical (letters or numbers)

15
New cards

What does isdigit() do?

Checks if all characters are digits (0-9)

16
New cards

What does islower() do?

Checks if all characters are lowercase

17
New cards

What does isupper() do?

Checks if all characters are uppercase

18
New cards

What does startswith() do?

Checks if the string starts with a specific substring

19
New cards

What does endswith() do?

Checks if the string ends with a specific substring

20
New cards

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.

21
New cards

How can you maintain/improve your code?

Use:

  • Comments

  • Indentation

  • Variable (names)

22
New cards

What is the purpose of comments?

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

23
New cards

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.

24
New cards

Why should you use useful naming conventions?

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

25
New cards

What is a syntax error?

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

26
New cards

What is a Logic Error?

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

27
New cards

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.

28
New cards

What is Final Testing?

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

29
New cards

What is Normal Data?

Data that is accepted by the program.

30
New cards

What is Boundary Data?

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

31
New cards

What is Erroneous Data?

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

32
New cards

What is Invalid Data?

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

33
New cards

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>
34
New cards

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>
35
New cards

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>
36
New cards

What is an IDE (Integrated Development Environment)?

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

37
New cards

What are some features of IDEs?

  • Line numbers

  • Autocorrect

  • Auto complete

  • Auto indent

  • Auto color coding

  • Error diagnostics and debug tools

  • Breakpoints

  • Syntax highlighting