Computer Programming Basics
29 Questions
100 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

What is a compiler?

A program that translates a high-level language program into a separate machine language program.

What is an interpreter?

A program that both translates and executes instructions in a high-level language program.

What are keywords in programming?

The words that make up a high-level programming language.

What do operators do?

<p>Perform various operations on data.</p> Signup and view all the answers

What is syntax in programming?

<p>Set of rules that must be strictly followed when writing the program.</p> Signup and view all the answers

What are statements in a programming language?

<p>The individual instructions used to write a program in a high-level programming language.</p> Signup and view all the answers

What is the maximum value for a byte?

<p>255 bits.</p> Signup and view all the answers

What is R.A.M?

<p>Primary storage device for a computer.</p> Signup and view all the answers

What are disk drives and solid state drives?

<p>Secondary storage devices.</p> Signup and view all the answers

How is information stored on a disk drive?

<p>Magnetically.</p> Signup and view all the answers

How is information stored on a CD/DVD?

<p>Laser burning.</p> Signup and view all the answers

What is digital data?

<p>Data that is stored in binary.</p> Signup and view all the answers

What is a digital device?

<p>A device that works with binary data.</p> Signup and view all the answers

What is a logic error?

<p>A mistake that does not prevent the program from running, but causes it to produce incorrect results.</p> Signup and view all the answers

What is a syntax error?

<p>A mistake that prevents the program from running beyond the point of the mistake.</p> Signup and view all the answers

How many steps are there in the program development cycle?

<p>Five steps.</p> Signup and view all the answers

What is the basic order of operations?

<p>Multiplication and division precede addition and subtraction.</p> Signup and view all the answers

What is an initial variable?

<p>A variable that is only recognized within the module it is coded in and can change throughout the program.</p> Signup and view all the answers

What is a constant variable?

<p>A variable that cannot change.</p> Signup and view all the answers

What is a global variable?

<p>A variable that can be recognized anywhere within the program.</p> Signup and view all the answers

What do you surround all strings with in programming?

<p>Quotation marks.</p> Signup and view all the answers

What is a string?

<p>A sequence of characters that is used as data.</p> Signup and view all the answers

What is a string literal?

<p>When a string appears in the actual code of a program.</p> Signup and view all the answers

What two steps form the process of designing a program?

<p>Understand the task that the program is to perform and determine the steps that must be taken to perform the task.</p> Signup and view all the answers

What is a hierarchy chart?

<p>Used to display a relationship between modules.</p> Signup and view all the answers

What is an argument in programming?

<p>A piece of data that is sent from one module to another.</p> Signup and view all the answers

What is a parameter?

<p>A special variable that receives an argument when a module is called.</p> Signup and view all the answers

What are some synonyms for modules?

<p>Procedures, functions, methods, subroutines.</p> Signup and view all the answers

What must be done for a module to run?

<p>Call it.</p> Signup and view all the answers

Study Notes

Compiler

  • Translates high-level language programs into separate machine language programs for later execution.

Interpreter

  • Translates and executes high-level language instructions by converting them to machine language in real-time.

Keywords

  • Reserved words in a programming language that cannot be used as variable names.

Operators

  • Symbols that perform operations on data, including addition (+), subtraction (-), greater than (>), and less than (<).

Syntax

  • A strict set of rules governing the structure of code, such as the use of quotation marks to denote statements.

Statements

  • Individual instructions written in high-level programming languages to perform tasks.

255 bits

  • Maximum value for a byte, which consists of combinations of 0s and 1s.

R.A.M

  • Primary storage used for data processing; it temporarily holds data that the CPU accesses.

Disk drives, solid state drives

  • Types of secondary storage devices used for data retention and retrieval over the long term.

Magnetically

  • Method used for storing information on a disk drive.

Laser burning

  • Technique for encoding data onto CDs and DVDs.

Digital data

  • Information represented in binary format, consisting of 0s and 1s.

Digital device

  • Equipment that operates using binary data, facilitating computing tasks.

Logic error

  • An error that allows a program to run but results in incorrect output.

Syntax error

  • A coding mistake that prevents a program from executing past the point of error.

Five steps

  • The number of stages involved in the program development cycle.

Basic order of operations

  • Multiplication and division take precedence over addition and subtraction during calculations.

Initial variable

  • A type of variable recognized only within its module; can change throughout the program.

Constant variable

  • A variable whose value remains unchanged throughout the program's execution.

Global variable

  • A variable accessible from any part of the program, which can complicate programming logic.

Quotation marks

  • Required punctuation used to surround strings in programming for interpretation as textual data.

String

  • A data type comprised of a sequence of characters.

String literal

  • A specific instance of a string represented directly in the program's source code.

Design process steps

  • Understanding the task to be performed and determining the necessary steps to complete that task.

Hierarchy chart

  • A visual representation showing the relationship between different modules in a program.

Argument

  • A data piece passed from one module to another when calling a function or procedure.

Parameter

  • A special type of variable that receives values (arguments) when a module is invoked.

Synonyms for modules

  • Terms like procedures, functions, methods, and subroutines refer to code organization units.

Running a module

  • A module must be called explicitly for it to execute and perform its designated tasks.

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

Description

Test your knowledge on the fundamentals of computer programming with this quiz. Explore key concepts like compilers, interpreters, reserved words, and operators. Ideal for beginners looking to strengthen their understanding of programming languages.

More Like This

Use Quizgecko on...
Browser
Browser