GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

GradePack

Consider the following procedure. Procedure Call Expla…

Consider the following procedure. Procedure Call Explanation drawLine (x1, y1, x2, y2) Draws a line segment on a coordinate grid with with endpoints at coordinates (x1, y1)and (x2, y2) The drawLine procedure is to be used to draw the following figure on a coordinate grid. The numbers 1 through 8 are indicated on both axes. All three segments have an endpoint at 1 comma 5. The other endpoints for each segment are as follows. Segment 1: 6 comma 5. Segment 2: 6 comma 7. Segment 3: 6 comma 3. Let the value of the variable xVal be 6 and the value of the variable yVal be 5 . Which of the following code segments can be used to draw the figure?

Read Details

Consider the code segment below: is unknown equals false. …

Consider the code segment below: is unknown equals false.  equals true.  equals false.  If the output must equal true, what is the required value for A? Inputs A and B feed into an AND gate. Inputs C and D feed into an XOR gate, which outputs true when exactly one input is true. The outputs of the AND and XOR gates feed into an OR gate. The final output is labeled TRUE, showing how multiple Boolean operations combine.

Read Details

To display the square of a number in a flowchart, put the st…

To display the square of a number in a flowchart, put the statement “Print square of number” in a/an:

Read Details

Consider the following code segment. [Begin Block] Line 1: I…

Consider the following code segment. [Begin Block] Line 1: IF [begin block] x is greater than y [end block] [begin block] Line 2: [begin block] DISPLAY [begin block] x plus y [end block] [end block] [end block] Line 3: ELSE [begin block] Line 4: [begin block] DISPLAY [begin block] x minus y [end block] [end block] [end block] [End Block] If the value of x is 3 and the value of y is 5 , what is displayed as a result of executing the code segment?

Read Details

What is an example of plagiarism?

What is an example of plagiarism?

Read Details

A city planner is using simulation software to study crowd f…

A city planner is using simulation software to study crowd flow out of a large arena after an event has ended. The arena is located in an urban city. Which of the following best describes a limitation of using a simulation for this purpose?

Read Details

Working with computational thinking must include all of thes…

Working with computational thinking must include all of these except 

Read Details

In the following code segment, assume that x and y have been…

In the following code segment, assume that x and y have been assigned integer values. sum 0REPEAT x times{ REPEAT y TIMES { sum sum + 1 }} At the end of which of the following code segments is the value of sum the same as the value of sum at the end of the preceding code segment? Select two answers.

Read Details

Consider the following code segment. Line 1: [begin block]…

Consider the following code segment. Line 1: [begin block] yourList ← [begin block] 20, 40, 60, 80 [end block] [end block] Line 2: [begin block] myList ← [begin block] 10, 30, 50, 70, [end block] [end block] Line 3: [begin block] yourList ← myList [end block] What are the contents of yourList after the code segment is executed?

Read Details

Consider the following code segment. Throughout the blocks…

Consider the following code segment. Throughout the blocks of code there are nested blocks of code, as follows. Line 1: [begin block] i ← 1 [end block] [begin block] Line 2: REPEAT UNTIL [begin block] i greater than 4 [end block] [begin block] Line 3: [begin block] rand ← RANDOM [begin block] 1, i [end block] [end block] Line 4: [begin block] DISPLAY [begin block] rand [end block] [end block] Line 5: [begin block] i ← i + 1 [end block] [end block] [end block] Which of the following CANNOT be displayed as a result of executing the code segment?

Read Details

Posts pagination

Newer posts 1 … 58 59 60 61 62 … 86,438 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top