GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

GradePack

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

Consider the following procedures, which are used to control…

Consider the following procedures, which are used to control a device that draws lines on paper. Procedure Table Procedure Call Explanation penDown () Places the device’s pen on the paper so that a line is drawn when the device moves penUp () Lifts the device’s pen off of t he paper so that no line is drawn when the device moves goForward (x) Moves the device forward x units turnRight (x) Rotates the device in place x degrees clockwise (i.e., makes an in-place right turn) Consider the goal of using the device to produce the following drawing, where each line shown has a length of 10 units and the horizontal lines are 10 units apart. . . . . . . . . . The device is positioned at the upper-left corner of a sheet of paper and is facing right. Which of the following code segments will produce the drawing shown?

Read Details

What is the order of the software development process?

What is the order of the software development process?

Read Details

A video game character can face toward one of four direction…

A video game character can face toward one of four directions: north, south, east, and west. Each direction is stored in memory as a sequence of four bits. A new version of the game is created in which the character can face toward one of eight directions, adding northwest, northeast, southwest, and southeast to the original four possibilities. Which of the following statements is true about how the eight directions must be stored in memory?

Read Details

Posts pagination

Newer posts 1 … 59 60 61 62 63 … 86,439 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top