GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

GradePack

Based on the CollegeBoard requirements of loops, what will b…

Based on the CollegeBoard requirements of loops, what will be displayed after this code segment is run? Throughout the second block of code there are nested blocks of code. Line 1: [begin block] a ← 0 [end block] Line 2: [Begin Block] REPEAT 3 TIMES [end block] Line 3: [begin block] a ← a + 1 [end block] Line 4: [begin block] DISPLAY [begin block] a [end block] [end block] Line 5: [begin block] a ← a + 1 [end block] [End Block]

Read Details

Convert the following binary number to the equivalent decima…

Convert the following binary number to the equivalent decimal number. (1101)

Read Details

When a cellular telephone user places a call, the carrier tr…

When a cellular telephone user places a call, the carrier transmits the caller’s voice as well as the voice of the person who is called. The encoded voices are the data of the call. In addition to transmitting the data, the carrier also stores metadata. The metadata of the call include information such as the time the call is placed and the phone numbers of both participants. For which of the following goals would it be more useful to computationally analyze the metadata instead of the data?   To determine if a caller frequently uses a specific word To estimate the number of phone calls that will be placed next Monday between 10:30 A.M. and noon. To generate a list of criminal suspects when given the telephone number of a known criminal

Read Details

Which of the following algorithms display all integers betwe…

Which of the following algorithms display all integers between 1 and 20, inclusive, that are not divisible by 3 ? Select two answers.

Read Details

Historically, it has been observed that computer processing…

Historically, it has been observed that computer processing speeds tend to double every two years. Which of the following best describes how technology companies can use this observation for planning purposes?

Read Details

Consider the code segment below: equals true. equals false….

Consider the code segment below: equals true. equals false.  equals true.  If the output must equal true, what is the required value for C? Inputs A and B feed into an OR gate. Input C feeds into a NOT gate. The outputs of the OR gate and the NOT gate feed into an AND gate. The result of the AND gate then feeds into another NOT gate, producing a final output labeled TRUE. This diagram illustrates how combining OR, AND, and NOT operations affects the final Boolean result.

Read Details

A large spreadsheet contains information about the schedule…

A large spreadsheet contains information about the schedule for a college radio station. A sample portion of the spreadsheet is shown below.   College Radio Station Spreadsheet   A Show Name B Genre C Day D Start Time E End Time 1 Dot Dot Dash rock Sunday 11:00 A.M. 1:00 P.M. 2 New Afternoon Show talk Sunday 1:00 P.M. 3:00 P.M. 3 Thursday Beats hip-hop Thursday 7:00 P.M. 9:00 P.M. 4 Gossip Time talk Friday 4:00 P.M. 6:00 P.M. 5 Campus Chat talk Saturday 6:00 P.M. 8:00 P.M. 6 Jazz Brunch jazz Saturday 12:00 P.M. 3:00 P.M.   A student wants to count the number of shows that meet both of the following criteria.   Is a talk show Is on Saturday or Sunday   For a given row in the spreadsheet, suppose genre contains the genre as a string and day contains the day as a string. Which of the following expressions will evaluate to true if the show should be counted and evaluates to false otherwise?

Read Details

The following grid contains a robot represented as a triangl…

The following grid contains a robot represented as a triangle, which is initially in the bottom-left square of the grid and facing the top of the grid. The robot can move into a white or a gray square but cannot move into a black region. The robot is represented by a triangle, which is located in the bottom leftmost square and is initially facing upward. Black squares represent barriers that the robot cannot pass through. The first row contains black shading in the first, second, third, and fourth squares from the left and gray shading in the fifth square from the left. The second row contains black shading in the first, second, third, and fourth squares from the left. The fourth row contains black shading in the second, third, fourth, and fifth squares from the left. The fifth row contains black shading in the second, third, fourth and fifth squares from the left. The following code segment implements an algorithm that moves the robot from its initial position to the gray square and facing the top of the grid. Throughout the first, third, and fifth blocks of code are nested blocks of code. [begin block] Line 1: REPEAT 2 TIMES [begin block] Line 2: [begin block] MOVE_FORWARD [end block] [end block] [end block] Line 3: [begin block] ROTATE_RIGHT [end block] [begin block] Line 4: REPEAT 4 TIMES [begin block] Line 5: [begin block] MOVE_FORWARD [end block] [end block] [end block] Line 6: [begin block] ROTATE_LEFT [end block] [begin block] Line 7: REPEAT 2 TIMES [begin block] Line 8: [begin block] MOVE_FORWARD [end block] [end block] [end block] When the robot reaches the gray square, it turns around and faces the bottom of the grid. Which of the following changes, if any, should be made to the code segment to move the robot back to its original position in the bottom-left square of the grid and facing toward the bottom of the grid?

Read Details

Directions: The question or incomplete statement below is fo…

Directions: The question or incomplete statement below is followed by four suggested answers or completions. Select the one that is best in each case.   Byte pair encoding is a data encoding technique. The encoding algorithm looks for pairs of characters that appear in the string more than once and replaces each instance of that pair with a corresponding character that does not appear in the string. The algorithm saves a list containing the mapping of character pairs to their corresponding replacement characters.   For example, the string “THIS_IS_THE_BEST_WISH” can be encoded as “%#_#_&E_BEST_W#H” by replacing all instances of ” TH” with ” % ” and replacing all instances of “IS” with “#”.   Which of the following statements about byte pair encoding is true?

Read Details

A library system contains information for each book that was…

A library system contains information for each book that was borrowed. Each time a person borrows or returns a book from the library, the following information is recorded in a database.   Name and the unique ID number of the person who was borrowing the book Author, title, and the unique ID number of the book that was borrowed Date that the book was borrowed Date that the book was due to be returned Date that the book was returned (or 0 if the book has not been returned yet)   Which of the following CANNOT be determined from the information collected by the system?

Read Details

Posts pagination

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

GradePack

  • Privacy Policy
  • Terms of Service
Top