Fichas
Input, Output, and Processing
Fichas del conjunto (21)
- 1What is syntax in programming?Rules that dictate how code must be written in a programming language.
- 2What is debugging?Process of finding and fixing errors in program code.
- 3What is an algorithm?A step-by-step set of instructions for solving a problem.
- 4What's the main advantage of pseudocode?Allows focusing on program design without worrying about syntax rules.
- 5What do oval symbols represent in flowcharts?Start and End points (Terminal symbols).
- 6What do parallelogram symbols represent in flowcharts?Input and Output operations.
- 7What do rectangle symbols represent in flowcharts?Processing steps.
- 8What are the three basic steps of program processing in order?1. Receive input 2. Process data 3. Produce output
- 9What is an IPO chart used for?Planning program's Input, Processing, and Output components.
- 10What is a sequence structure?Program statements that execute in order, one after another.
- 11What is a variable in programming?A named storage location in memory that can hold data.
- 12What are three main rules for naming variables?1. No spaces allowed 2. Can't start with numbers 3. Use only letters and numbers
- 13What's the difference between underscore and camelCase naming?underscore_uses_underscores vs camelCaseUsesCapitalLetters
- 14What happens to a variable's old value when assigned a new one?The old value is replaced completely.
- 15What is variable initialization?Assigning an initial value to a variable when it's declared.
- 16Why are uninitialized variables dangerous?They may contain unpredictable "garbage" values.
- 17What's special about named constants?Their values cannot be changed after initialization.
- 18What is the correct order of mathematical operations in programming?1. Parentheses 2. Exponents 3. Multiplication/Division/Modulus 4. Addition/Subtraction
- 19What happens in integer division when the result has decimals?The decimal portion is truncated (removed).
- 20What's the difference between external and internal documentation?External is for users (guides/tutorials), internal is for programmers (code comments).
- 21What are the two types of code comments?Block comments (multiple lines) and line comments (single line).
Información
- Descripción
- Book (C2: Input, Output, and Processing) Programming Logic & Design Fichas sobre Input, Output, and Processing, creado por Filipi Melo el 31/10/2024.
- Creado por
- Filipi Melo
- Visitas
- 0
- Valoración