2.1.1 Problem-solving and programming

    Cards (87)

    • What are the five steps in the problem-solving process?
      Understand, plan, implement, test, evaluate
    • Match the data type with its example:
      Integer ↔️ 1
      Float ↔️ 3.14
      String ↔️ "Hello"
      Boolean ↔️ true
    • Declaring variables with appropriate data types improves program organization and performance.

      True
    • Match the flowchart shape with its meaning:
      Process ↔️ Action to be performed
      Decision ↔️ Branching point
      Input/Output ↔️ Data entry or output
    • An input/output in a flowchart is represented by a parallelogram
    • Flowcharts use standardized shapes to depict different elements of an algorithm.

      True
    • Match the data type with its description:
      Integer ↔️ Whole numbers
      Float ↔️ Numbers with decimal points
      String ↔️ Text in quotation marks
      Boolean ↔️ True or false values
    • What is the first step in developing an algorithm?
      Define the problem
    • Flowcharts are visual diagrams that use shapes to represent processes and data flow.

      True
    • What is pseudocode used for in algorithm design?
      Describe algorithm steps
    • Planning a solution involves devising a step-by-step strategy.

      True
    • The problem-solving process helps break down complex problems into manageable steps.

      True
    • Why is it important to choose the correct data type for a variable?
      Efficient memory usage
    • What does a rectangle symbol represent in a flowchart?
      A process
    • Programming syntax refers to the rules for structuring statements in a language
    • Operators in programming syntax perform arithmetic, logical, and comparison operations.

      True
    • Text enclosed in quotation marks in programming is a string
    • Control structures manage the flow of program execution

      True
    • Data types define the kind of values variables can hold

      True
    • Control structures include loops and conditional statements
      True
    • Data types define the kind of values variables can hold
    • Steps to learn basic programming syntax
      1️⃣ Define variables
      2️⃣ Specify data types
      3️⃣ Use operators
      4️⃣ Employ control structures
    • Match the data type with its description and example:
      Integer ↔️ Whole numbers | 1, -10
      Float ↔️ Numbers with decimal points | 3.14, -0.5
      String ↔️ Text in quotation marks | "Hello", "World!"
      Boolean ↔️ Logical true or false | true, false
    • Data types define the kind of values variables can hold
    • Control structures manage the flow of program execution
    • Operators perform arithmetic, logical, and comparison operations
      True
    • Pseudocode is a simple English-like notation for describing algorithms
      True
    • The pseudocode to calculate the sum of numbers in a list initializes the sum to zero
    • Flowcharts use visual diagrams to represent processes, decisions, and data flow
    • The problem-solving process involves continuous evaluation and refinement of the solution.

      True
    • The boolean data type stores values that are either true or false.
    • In a flowchart, a rectangle represents a process or action to be performed.
    • A diamond in a flowchart represents a branching point based on a condition.
      True
    • Steps in a simple flowchart to determine if a number is even or odd
      1️⃣ Start
      2️⃣ Get Number
      3️⃣ Is Number Even?
      4️⃣ Yes or No Branch
      5️⃣ End
    • What defines the kind of values variables can hold?
      Data types
    • Control structures in programming syntax control the flow of execution
    • What is a simple English-like notation used to describe the steps of an algorithm?
      Pseudocode
    • Testing an algorithm involves verifying that the solution produces correct results.
      True
    • The first step in the problem-solving process is to understand the problem
    • What should you do after testing a solution in the problem-solving process?
      Evaluate and refine
    See similar decks