GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

GradePack

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

Three teams (Team A, Team B, and Team C) are participating i…

Three teams (Team A, Team B, and Team C) are participating in a trivia contest. Let scoreA represent the number of correct questions for Team A, scoreB represent the number of correct questions for Team B, and scoreC represent the number of correct questions for Team C. Assuming no two teams get the same number of correct questions, which of the following code segments correctly displays the team with the highest number of correct questions?

Read Details

ASCII is a character encoding scheme that uses a numeric val…

ASCII is a character encoding scheme that uses a numeric value to represent each character. For example, the uppercase letter ‘G’ is represented by the binary (base 2) value 0100 0111, which is equivalent to the decimal (base 10) value 71. A subset of characters and their corresponding ASCII values are shown in the table below: ASCII Table Decimal Binary Octal Hex ASCII 64 01000000 100 40 @ 65 01000001 101 41 A 66 01000010 102 42 B 67 01000011 103 43 C 68 01000100 104 44 D 69 01000101 105 45 E 70 01000110 106 46 F 71 01000111 107 47 G 72 01001000 110 48 H 73 01001001 111 49 I 74 01001010 112 4A J 75 01001011 113 4B K 76 01001100 114 4C L 77 01001101 115 4D M 78 01001110 116 4E N 79 01001111 117 4F O 80 01010000 120 50 P 81 01010001 121 51 Q 82 01010010 122 52 R 83 01010011 123 53 S 84 01010100 124 54 T 85 01010101 125 55 U 86 01010110 126 56 V 87 01010111 127 57 W 88 01011000 130 58 X 89 01011001 131 59 Y 90 01011010 132 5A Z 91 01011011 133 5B [ 92 01011100 134 5C \ 93 01011101 135 5D ] 94 01011110 136 5E ^ 95 01011111 137 5F _   What is the Binary and Decimal number for the letter K?

Read Details

For each ‘1’ digit in the binary number (bold), add the numb…

For each ‘1’ digit in the binary number (bold), add the number at the top of the column to convert to decimal. What is the equivalent decimal number?   Binary to Base 10 Conversion Table Powers of 2 row 128 64 32 16 8 4 2 1 Binary number 1 1 1 1  

Read Details

ASCII is a character encoding scheme that uses a numeric val…

ASCII is a character encoding scheme that uses a numeric value to represent each character. For example, the uppercase letter ‘G’ is represented by the binary (base 2) value 0100 0111, which is equivalent to the decimal (base 10) value 71. A subset of characters and their corresponding ASCII values are shown in the table below: ASCII Table Decimal Binary Octal Hex ASCII 64 01000000 100 40 @ 65 01000001 101 41 A 66 01000010 102 42 B 67 01000011 103 43 C 68 01000100 104 44 D 69 01000101 105 45 E 70 01000110 106 46 F 71 01000111 107 47 G 72 01001000 110 48 H 73 01001001 111 49 I 74 01001010 112 4A J 75 01001011 113 4B K 76 01001100 114 4C L 77 01001101 115 4D M 78 01001110 116 4E N 79 01001111 117 4F O 80 01010000 120 50 P 81 01010001 121 51 Q 82 01010010 122 52 R 83 01010011 123 53 S 84 01010100 124 54 T 85 01010101 125 55 U 86 01010110 126 56 V 87 01010111 127 57 W 88 01011000 130 58 X 89 01011001 131 59 Y 90 01011010 132 5A Z 91 01011011 133 5B [ 92 01011100 134 5C \ 93 01011101 135 5D ] 94 01011110 136 5E ^ 95 01011111 137 5F _   Reading the chart what is the ASCII for the Binary number 01011001

Read Details

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

Consider the following code segment. Line 1: [begin block] a ← true [end block] Line 2: [begin block] b ← false [end block] Line 3: [begin block] c ← true [end block] Line 4: [begin block] a ← [begin block] NOT [begin block] a OR b [end block] [end block] AND c [end block] Line 5: [begin block] c ← c AND a [end block] Line 6: [begin block] DISPLAY [begin block] a [end block] [end block] Line 7: [begin block] DISPLAY [begin block] b [end block] [end block] Line 8: [begin block] DISPLAY [begin block] c [end block] [end block] What is displayed as a result of executing the code segment?

Read Details

In a certain game, the integer variable bonus is assigned a…

In a certain game, the integer variable bonus is assigned a value based on the value of the integer variable score. • If score is greater than 100 , bonus is assigned a value that is 10 times score. • If score is between 50 and 100 inclusive, bonus is assigned the value of score. • If score is less than 50, bonus is assigned a value of 0 . Which of the following code segments assigns bonus correctly for all possible integer values of score? Select two answers. 

Read Details

A binary number is to be transformed by appending three 0 s…

A binary number is to be transformed by appending three 0 s to the end of the number. For example, 11101 is transformed to 11101000 . Which of the following correctly describes the relationship between the transformed number and the original number?

Read Details

Posts pagination

Newer posts 1 … 894 895 896 897 898 … 87,273 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top