Programming

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/13

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 2:49 PM on 6/17/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

14 Terms

1
New cards

What are the 4 file modes in file handling?

r = Read file, w = Write (creates/overwrites), a = Append (adds to file), open() = Opens file.

2
New cards

When do we use an if statement?

Used when a condition must be checked.

3
New cards

What are logical operators?

Used to combine conditions.

4
New cards

What is a nested if?

An if inside another if.

5
New cards

What are the 3 parts of a function?

Function Definition, Parameters, Function Call, Return Value.

6
New cards

What is a while loop?

Repeats while condition is True.

7
New cards

What is a sentinel value?

A special value that stops a loop.

8
New cards

What is a nested loop?

A loop inside another loop.

9
New cards

What is input validation?

Ensures correct user input.

10
New cards

What errors can appear in programming?

Syntax Error: Code written incorrectly; Logic Error: Program runs but answer is wrong.

11
New cards

What business calculations may appear?

VAT, Discount, Penalty.

12
New cards

What is the IPO principle?

I โ†’ Input, P โ†’ Processing, O โ†’ Output.

13
New cards

How do I answer programming questions?

Identify inputs, calculations, decisions, and required output; then write INPUT โžœ PROCESS โžœ OUTPUT.

14
New cards

Before submitting a program, what should you check?

Inputs collected, variables named properly, functions used, decisions made correctly, loops end correctly, output displays correctly, files opened/closed, no syntax errors, tested with different values.