1. Home
  2. Explore
  3. Computer Science
  4. Introduction to Programming

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Introduction to Programming

  • 49Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Programming Fundamentals
The process of
involves preparing an instructional program for a device to perform a specific task.

49 questions

  1. 1
    The process of
    _____
    involves preparing an instructional program for a device to perform a specific task.
    Hint

    Think of giving instructions to a computer to complete a task.

    Answer

    programming

  2. 2
    Computers only understand machine code, which is a numerical language known as
    _____
    .
    Hint

    This language consists of only two digits: 0 and 1.

    Answer

    binary

  3. 3
    Programming languages act as a
    _____
    between human instructions and machine code.
    Hint

    They translate what you write into something the computer understands.

    Answer

    middle man

  4. 4
    A low-level programming language is
    _____
    to binary than a high-level language.
    Hint

    Compare how similar the code is to machine code.

    Answer

    closer

  5. 5
    An integrated development environment (IDE) provides a
    _____
    interface for writing, running, and debugging code.
    Hint

    It's visual, not just text-based.

    Answer

    graphic

  6. 6
    The set of rules that defines how code must be written in a programming language is called its
    _____
    .
    Hint

    Similar to grammar in human languages.

    Answer

    syntax

  7. 7
    The
    _____
    is a text interface within the IDE used to output information from a program.
    Hint

    It's where print statements show their results.

    Answer

    console

  8. 8
    A command that prints text to the console is called a
    _____
    statement.
    Hint

    It outputs information for the developer to see.

    Answer

    print

  9. 9
    The arithmetic operator that returns the remainder of a division is called
    _____
    .
    Hint

    It's not one of the four basic operations; think of getting the remainder.

    Answer

    modulus

  10. 10
    A sequence of characters enclosed in quotation marks is called a
    _____
    in programming.
    Hint

    It represents text data.

    Answer

    string

  11. 11
    Combining multiple strings together using the plus sign is known as
    _____
    .
    Hint

    Think of 'adding' strings to form a longer string.

    Answer

    concatenation

  12. 12
    A variable that can store an integer value without decimals is called an
    _____
    .
    Hint

    Whole numbers, both positive and negative.

    Answer

    integer

  13. 13
    A boolean variable can only hold one of two values: true or
    _____
    .
    Hint

    It's a binary state.

    Answer

    false

  14. 14
    A variable that can store numbers with decimal places is called a floating-point number; two common types are float and
    _____
    .
    Hint

    This type typically has more precision than float.

    Answer

    double

  15. 15
    A variable that can hold a single character is called a
    _____
    .
    Hint

    Short for character.

    Answer

    char

  16. 16
    The naming convention where the first word is lowercase and subsequent words are capitalized (e.g., playerScore) is called
    _____
    .
    Hint

    Think of the humps of a camel.

    Answer

    camelCase

  17. 17
    An if statement evaluates a condition and executes code inside its
    _____
    only if the condition is true.
    Hint

    These symbols enclose the block of code to run.

    Answer

    brackets

  18. 18
    The
    _____
    statement is used after an if statement to test another condition if the first one was false.
    Hint

    It chains conditions together.

    Answer

    else if

  19. 19
    A
    _____
    statement is used to select one of many blocks of code to be executed, based on the value of a variable.
    Hint

    It's an alternative to many else if statements.

    Answer

    switch

  20. 20
    In an array, the position of an element is called its
    _____
    .
    Hint

    It starts at 0, not 1.

    Answer

    index

  21. 21
    When an array is initialized, its size is
    _____
    and cannot be changed.
    Hint

    It's not flexible like an ArrayList.

    Answer

    fixed

  22. 22
    A two-dimensional array can be thought of as an array of arrays, similar to a
    _____
    .
    Hint

    Think rows and columns.

    Answer

    matrix

  23. 23
    A for loop typically consists of three parts: an initial value, a condition, and an
    _____
    to modify the value each iteration.
    Hint

    It changes the loop variable (e.g., increment by 1).

    Answer

    operation

  24. 24
    An infinite loop occurs when the condition to exit the loop is
    _____
    .
    Hint

    The loop runs forever.

    Answer

    never met

  25. 25
    A
    _____
    loop is used to iterate through each element in an array or list.
    Hint

    It simplifies traversal without using an index.

    Answer

    for each

  26. 26
    A while loop continues executing as long as its
    _____
    is true.
    Hint

    It checks before each iteration.

    Answer

    condition

  27. 27
    A do-while loop will execute its code block at least
    _____
    before checking the condition.
    Hint

    It's a variant of while that guarantees one execution.

    Answer

    once

  28. 28
    An error caused by breaking the grammar rules of a programming language is called a
    _____
    error.
    Hint

    Think misspelling or missing punctuation.

    Answer

    syntax

  29. 29
    An error that occurs while a program is running, such as an infinite loop, is called a
    _____
    error.
    Hint

    It happens after the program starts executing.

    Answer

    runtime

  30. 30
    When a program runs without errors but produces incorrect results, it is due to a
    _____
    error.
    Hint

    The code is syntactically correct but does not do what you intended.

    Answer

    logic

  31. 31
    Using
    _____
    statements in the console is a common way to debug logic errors by printing variable values at key points.
    Hint

    You output information to see what's happening.

    Answer

    print

  32. 32
    A
    _____
    pauses program execution when a specified line is reached, allowing inspection of variable states.
    Hint

    It's a marker set in the code.

    Answer

    breakpoint

  33. 33
    Commenting out code by placing special symbols before it makes the computer
    _____
    the code.
    Hint

    It becomes non-executable text.

    Answer

    ignore

  34. 34
    A function that does not return a value is called a
    _____
    function.
    Hint

    It performs an action but gives nothing back.

    Answer

    void

  35. 35
    Values passed into a function are called
    _____
    .
    Hint

    They are inputs to the function.

    Answer

    arguments

  36. 36
    The
    _____
    statement is used to send a value back from a function to the caller.
    Hint

    It exits the function and optionally provides a result.

    Answer

    return

  37. 37
    An
    _____
    statement is used to bring external libraries or packages into a program for use.
    Hint

    It gives access to pre-written code.

    Answer

    import

  38. 38
    An
    _____
    is like a growing array that automatically increases its size when elements are added.
    Hint

    It's a dynamic list structure.

    Answer

    ArrayList

  39. 39
    In a dictionary, each element is stored as a key/value pair, where each key must be
    _____
    .
    Hint

    No two keys can be the same.

    Answer

    unique

  40. 40
    A linear search checks each element in sequence from the
    _____
    of the list to the end.
    Hint

    It begins at the first element.

    Answer

    start

  41. 41
    A binary search requires the list to be
    _____
    before it can be applied.
    Hint

    Elements must be in order.

    Answer

    sorted

  42. 42
    In recursion, a function calls
    _____
    .
    Hint

    It repeats the same function within its own definition.

    Answer

    itself

  43. 43
    A
    _____
    case is a condition in a recursive function that stops the recursion.
    Hint

    It provides a simple, non-recursive solution.

    Answer

    base

  44. 44
    The data structure that follows the Last In, First Out (LIFO) principle is called a
    _____
    .
    Hint

    Think of a stack of plates.

    Answer

    stack

  45. 45
    Writing informal, human-readable steps to plan a program before coding is known as writing
    _____
    .
    Hint

    It's not actual code but a plan.

    Answer

    pseudocode

  46. 46
    A
    _____
    is a graphical representation of a program's flow using boxes and arrows.
    Hint

    It visually maps out decisions and processes.

    Answer

    flowchart

  47. 47
    A
    _____
    language like Python or Java can be used for a wide variety of applications.
    Hint

    It's not specialized for one task.

    Answer

    general purpose

  48. 48
    HTML and CSS are specialized languages for designing
    _____
    .
    Hint

    They structure and style web pages.

    Answer

    websites

  49. 49
    A
    _____
    language, like JavaScript, can be run without being compiled and is often used for web scripting.
    Hint

    It is interpreted rather than compiled.

    Answer

    scripting

1 of 49
Question 1 of 49

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent