In Python, 8**2 will give an output of:
Author: Anonymous
Consider the following code segment with an integer variable…
Consider the following code segment with an integer variable num. IF(num > 0){ DISPLAY(“positive”)}IF(num < 0){ DISPLAY("negative")}IF(num = 0){ DISPLAY("zero")} Which of the following code segments is equivalent to the code segment above?
Which of the following is true about lossless data compressi…
Which of the following is true about lossless data compression?
Which of the following is a primary reason for the use of op…
Which of the following is a primary reason for the use of open protocols on the Internet?
A computer has two processors that are able to run in parall…
A computer has two processors that are able to run in parallel. The table below indicates the amount of time it takes either processor to execute four different processes. Assume that none of the processes is dependent on any of the other processes. Table 1. Process Execution Time W 20 seconds X 30 seconds Y 45 seconds Z 50 seconds A program is used to assign processes to each of the processors. Which of the following describes how the program should assign the four processes to optimize execution time?
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 “#”. For which of the following strings is it NOT possible to use byte pair encoding to shorten the string’s length?
The figure below represents a network of physically linked c…
The figure below represents a network of physically linked computers labeled A through G. A line between two computers indicates that the computers can communicate directly with each other. Any information sent between two computers that are not directly connected must go through at least one other computer. For example, information can be sent directly between computers A and B, but information sent between computers A and C must go through other computers. A is in the lower left. B is to the right of A, and connected to it by a straight line. C is to the right and up from B, and connected to it by a straight line. D is to the right and up from C, and it is connected to C by a straight line and to B by a curved line that goes around C from below. E is to the left and down from D, directly above B. E is connected to D, C, and A by straight lines. F is to the right of E, above and to the left of A. F is connected to E and A by straight lines. G is to the right and up from F, directly above A and to the left of D. G is connected to F and D by straight lines. What is the minimum number of connections that must be broken or removed in the network before computer E can no longer communicate with computer F?
A student is developing a program that allows users to look…
A student is developing a program that allows users to look up the definitions of words that appear in a book. The student plans to perform a large number of searches through a dictionary containing words and their definitions. The student will use a procedure written by a computer scientist to quickly search the dictionary (and knows that the procedure will return a definition if one is available). The student cannot modify the search procedure written by the computer scientist but can call the procedure by supplying a word. Which of the following is a true statement about the student’s use of the computer scientist’s search procedure?
In computational thinking, identifying and extracting releva…
In computational thinking, identifying and extracting relevant information to define the main idea(s) while ignoring unrelated or irrelevant details is
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 0 1 0 0 1 0