Home
Ask directory
AP CS
December 2024
20
AP CS
Q&A Archive of
December 20, 2024
Select Question
December 20 of 2024
s1 \( i \) Question No. 5 "Consider that Selenium web driver is being used in a java web application to create automation test scripts. The test script has to check if an Element named 'btnClock' is present in the application:(i) Which code in Selenium is used to create a common method to test…
Explain this class diagram with an appropriate principal of an object orientation applied
Consider the following class diagram as the structure for the pattern.
Generate the three-address code for the following? C program fragment: while (a > b) { if (c < d) x = y + z; else x = y - z; }
- Lecture - 01 Q.01: What is an electrical circuit? How an electrical circuit is formed? Explain with appropriate diagram. Q.02: What are the basic components of a circuit?
generate nfa for : a(a/b)*b
Open with Google Docs I. A central monitoring computer is used to track and maintain the connections of the Internet. II. Data is routed between points in multiple ways so that if a connection fails, the data can be rerouted around the inoperative connections. III. Protocols for packets and…
/15EM4oyQ0-HKn21Yku2QbsPW8MFnhNZnc/view (D) Ine number or oicycies ue car passed on a parucurar day A small team of wildlife researchers is working on a project that uses motion-activated field cameras to capture images of animals at study sites. The team is considering using a "citizen…
Homework Design the sequential circuit specified by the following state diagram using T flip-flop
mester.pdf Open with Google Docs 9. The following code segment is used to determine whether a customer is eligible for a discount on a movie ticket \[ \begin{array}{l} \text { vall } \leftarrow(\text { NOT }(\text { category }=\text { "new") }) \text { OR (age } \geq 65) \\ \text { vald }…
inst Semerte ivengoogle.com/file/d/15EM4oyQ0-HKn21Yku2QbsPW8MFnhNZnc/view (C) spin \( ~ R \) RANDOM 1, 6 (D) spin ఒ RANDOM 1,8 8. Consider the following code segment, where exam and presentation are integer variables and grade is a string variable. ``` IF(fexam > 90) AND (presentation > 80)) l …
- Today at \( 20: 28 \) 241\% Q. 1 Generate the three address code for the following code fragment - while \( (a>b) \) \{ if(c>d) \( x=y+z ; \) else \( \mathrm{x}=\mathrm{y}-\mathrm{z} \); \}
AP COMPUTER SCIENCE PRINCIPLES Test Booklet CSP Fïnal Exam - First Semester 1. A certain game keeps track of the maximum and minimum scores obtained so far. If num represents the most recent score obtained, which of the following algorithms correctly updates the values of the maximum and the…
class 9 science chapter 1 to 9 syllabus half earali exam mein aane wala hai is syllabus ke hisab se most important question for the exam provide
Homework Design the sequential circuit specified by the following state diagram using T flip-flop
1. A) List the elements of each of the following suts i) ( \( x: x \) is natural number less than 5 \} ii) (xix is a negative integer greater than - 3) iii) (xix is a positive number less than - 5\( ) \cup(1,2,3) \) iv) (x: \( x \) is a positive even number less tian 10\( ) \cap(x \cdot x \) is…
for sturs for student, courses in students_with_courses.items(): ...print(f"Student: \{student[1]\} (\{student[0]\})")ๆ print(f"Courses: \{', '.join(courses)\}") ๆ print() ๆा Question 6: Why -is a dictionary used here to combine student details with their Bonus Challenge: Find students not in…
print("Part 3: Students and Their Courses")ๆा for student, courses in students_with_courses.items(): 17 - ...print(f"Student: \{student[1]\} (\{student[0]\})")१ "-print(f"Courses: \{','.join(courses)\}") ఇ ....print() ๆ \# Question 6: Why is a dictionary used here to combine student details…
print("Part 3: Students and Their Courses")१| for-student, courses in students_with_courses.items():ๆ] - print(f"Student: \{student[1]\} (\{student[0]\})")ๆ] -..print(f"Courses: \{', '.join(courses)\}")॥ ...print()ๆ \# Question 6: Why is a dictionary used here to combine student details with…
\#Question-4: Explain the purpose of the " \&" operator in the context of sets.9 ๆl \#Courses unique to Kofiף| unique_kofi_courses = kofi_courses - (ama_courses | yaw_courses) ๆl rrint("InCourses Unique to Kofi:")ๆI print(unique_kofi_courses)ๆ ๆl \#Question 5: Replace the subtraction operator…
\# Question 4: Explain the purpose of the "\&" operator in the context of sets. 9 ๆl \# Courses unique to Kofiףा unique_kofi_courses = kofi_courses - (ama_courses | yaw_courses)ๆ| mrint("\nCourses Unique to Kofi:") \ा print(unique_kofi_courses) \l ๆl \#Question 5: Replace the subtraction…
\# Question 4: Explain the purpose of the "\&" operator in the context of sets. 9 ๆl \# Courses unique to Kofiףा unique_kofi_courses = kofi_courses - (ama_courses | yaw_courses)ๆ| mrint("\nCourses Unique to Kofi:") \ा print(unique_kofi_courses) \l ๆl \#Question 5: Replace the subtraction…
2:-Working with Sets \( \ \) ging Enrolled Courses urses = \{"Math101", "Comp102", "Stat201"\}ๆ urses \( =\{ \) "Comp102", "Stat201", "Econs101" \}ๆ urses \( =\{ \) "Math101","Econs101","Stat201" \( \} \) ion 3: What are-the main advantages of using sets for managing course enrollme on courses…
student2 = ("UG1235","Ama Asantewaa", Intormation stuuies student3 = ("UG1236", "Yaw Oforl", "Mathematics")9 1 \#Question 1: What is a tuple, and why is it used here for storing student details? I \# Display-student details print("Part 1: Student Details") students_list = [student1, student2,…
The function \( f(x) \) contains the point \( P(2,3) \). If P is transformed by the function \( g(x)=2 f\left(\frac{-x}{2}\right)+1 \), what is the image (new position) of P ? \( (-1,7) \) \( (-4,7) \) \( (1,3) \) \( (4,7) \)
1. A) List the elements of each of the following suts i) ( \( x: x \) is natural number less than 5 \} ii) (xix is a negative integer greater than - 3) iii) (xix is a positive number less than - 5\( ) \cup(1,2,3) \) iv) (x: \( x \) is a positive even number less tian 10\( ) \cap(x \cdot x \) is…
1. Determine whether the following relations \( R \) on the set of all integers are reflexive, symmetric, antisymmetric, transitive, asymmetric, and/or irreflexive. (a) \( R_{1}=\{(x, y): x+y=0\} \) (b) \( R_{2}=\{(x, y): x= \pm y\} \) (c) \( R_{3}=\{(x, y): x=y+1 \) or \( x=y-1\} \) (d) \(…
\( \begin{array}{c}\vec{c}=2 \vec{a}-\vec{b} \\ \vec{a}=(3 ; 4 ; 0) ; \vec{b}=(-1 ;-2 ; 3)\end{array} \)
\begin{tabular}{l|l|l|l|ll} \hline & dentistName & patientNo & patientName & \multicolumn{2}{|c}{ appointment } \\ & & & & date & time \\ \hline & Tony Smith & P100 & Gillian White & 12-Aug-03 & 10.00 \\ \hline & Tony Smith & P105 & Jill Bell & 13-Aug-03 & 12.00 \\ \hline & Helen Pearson & P108…
Question Five Consider a relation Student (StudentID, ModuleID, ModuleName, StudentName, StudentAddress, TutorId, TutorName). Each student is given a StudentID and each module is given a ModuleID. A student can register more modules and a module can be registered by more students. TutorID is…
Client Project Chart Type CC1002 NY-MCD No HCC Found Start Auditing search Charts with "No HCC Found" \begin{tabular}{|c|c|c|c|c|c|c|c|c|c|c|} \hline Project Name & Chart ld & Client Name & Uploaded on & Coder Name & Auditor Name & Total Page & No of Codes & Coding Start Time & Auditing Start…
Q 9) Based on the provided dataset for credit risk analysis, which is the correct sequence of customers when we consider risk levels being low to high? \begin{tabular}{|l|l|l|l|l|} \hline Customer Id & Income (USD) & \begin{tabular}{l} Loan Amount \\ (USD) \end{tabular} & \begin{tabular}{l}…
4. MC^ Which technology allows a user to authenticate once for access to many resources? Single sign - on Database authentcasion Dual - Bacor aiatienscasen Muit-lacior authentication
Screenshot 2024-12-18 11.30.47 AM.png Complete the proof that \( m \angle X+m \angle Y=90^{\circ} \). Statement 1 \( \overline{y z} \perp \overline{x z} \) \( 2 m \angle Z=90^{\circ} \) \( 3 m \angle X+m \angle Y+m \angle Z=180^{\circ} \) \( 4 m \angle X+m \angle Y+90^{\circ}=180^{\circ}…
2. Find the eigen ralues \( \phi \) eigen reefor of the raprix \[ A=\left[\begin{array}{ccc} 3 & 0 & 0 \\ 1 & 2 & 0 \\ 4 & 6 & 5 \end{array}\right] \]
Question 5 1 pts Which of the following would be an implementation of a function named: mystery\_one, which takes the value of x in register r0 and value of y in register r1, computes $r = 4^*(x+y)$, and returns r in r0? O mystery\_one: add r0, r1 mov r0, r0, asl \#4 mov pc, lr O…
If you have the following input into a max pooling layer with a 2x2 filter and stride of 2, what would you expect the output to be? 4611 1313 4008 8540 Note: The answers are written in nested list/matrix format, so that the above matrix would be [[4,6,1,1], [1,3,1,3], [4,0,0,8], [8,5,4,0]] A…
Given the following code, what prints? (Do NOT type this code into your IDE - you should be able to solve it by hand. FILL in the values in the comments at lines 6, 10, 14, 21, 26, and 31. Take a pic if necessary. #include <iostream> using namespace std; int main() { int a{ 5), b{ 10), c{15},…
In telepharmacy, what does the pharmacist supervise at the remote site? Keyboard usage b. Hard drive maintenance c. Prescription preparation d. Scanner operation
Example 4.1 Consider the 4x4 gridworld shown below. actions 1 2 3 4 5 6 7 8 9 10 11 12 13 14 $R_t = -1$ on all transitions The nonterminal states are $S = \{1, 2, \dots, 14\}$. There are four actions possible in each state, $A = \{\text{up, down, right, left}\}$, which deterministically cause…
Describe the set $\left\{(\rho, \phi, \theta): \theta = \frac{5\pi}{6}\right\}$ in spherical coordinates.
class Vehicle { public: virtual void print() final; }; 1. Another class, such as a class named Train, could inherit from the Vehicle class. 2. The override keyword could be added to the prototype for the print() function, after the word final. 1.. False 2.. True 1.. True 2.. True 1.. False 2..…
Which one of the following correctly describes the single logical link formed by bundling all of a controller's distribution system ports together? A O GEC B O LAG C O PHY D O DSP
An example of an entity for an airline is: Departure and arrival airports Employee IDs of crew members Scheduled and actual departure and arrival times All of the above
Encryption that uses 16-character keys is known as ____. strong 128-bit encryption strong 256-bit encryption military-strength 256-bit encryption military-strength 1024-bit encryption
Question 23 Given n = "5" what is the result of $n + 3$? 53 Nothing - error $5 + 3$ 8 2 pts
Which of the following is not one of the benefits of using a wireless network? Multiple Choice Flexibility and scalability. Greater security. Mobility. Rapid deployment.
$\forall x \forall y (T(x,y) \rightarrow x=y) \vdash T(a,b) \rightarrow T(b,a)$ 1. Playground No Rule Found 1. $\forall x \forall y (T(x,y) \rightarrow x=y)$:PR 2. $\forall y (T(a,y) \rightarrow a=y)$: AE1 3. $\forall y (T(b,y) \rightarrow b=y)$: AE1 4. $T(a,b) \rightarrow a=b$: AE2 5.…
1. Johnson's counter For a twisted ring counter of 8-bits, if the time-zero value reads 0xCC, what does the counter read, after 23 clocks? Pick ONE option 0xCC 0x33 0x67 0xA8
Question 1 Multiple answers: Select all statements that are *true* regarding the three Process States which are Running, Ready, and Blocked. A process in Blocked state can only be moved to Ready state. Being moved from Running to Ready state means that the process has been descheduled. Being…
Question 32 2 pts Question 17 (5 points) Complexity The problem of finding whether an integer is a square (of an integer) is in the class NP but not in NP-Complete. Explain.
Part 1: Start from node 0 and write down the node traversal order for the following graph using the Depth First Traversal order and the Breadth First Traversal order.
Typically, how often does a major disaster occur in the world? A Monthly B Weekly C Daily D Yearly
How many machine instructions are required to execute the following RISC-V assembly instruction: addi x1,x0,0x1000 a. 3 b. 2 c. 1 d. impossible to determine from information given
Question 15 5 pts In our example use-after-free attack on Fast bins, we allocated and then freed 10 size 0x20 chunks as shown here: TCache Bin 7 chunks metadata fd pointer metadata 0x0 data data Fast Bin metadata fd pointer metadata fd pointer metadata 0x0 data data data In our lecture, we…
Question 27 1 pts Which of the following statements about memory hierarchies and the principle of locality is true? Data is stored in the memory closest to the processor and moved to lower levels only when it is no longer needed. Temporal locality refers to the tendency of a data item to be…
Object-oriented systems development (OOSD) uses object-oriented modeling to represent real ______ objects. O institutional O world O systems O user
What is the range of values that can be represented using 8 bits in binary? 0 to 2047 0 to 1023 0 to 255 0 to 127
In the following diagram: (If having trouble viewing image, link to image on Github) The Assembly Language code for it can be found at: button3.s The program uses the code: mov r0, #6 bl digitalRead to check to see if the user has pressed the tactile button on rows 34-36. O True O False
The main() method in Java serves as: O The entry point for the compiler. O The entry point for the application. O A mandatory method for all Java classes. O An optional method in Java applications.
The arrangement of the arguments in a function. A. Grammar B. Syntax C. Structure
What do we call the software/hardware used to detect intrusion and prevent unauthorized access to/from a private network (A) Encryption (B) Proxy Server (C) Firewall (D) VPN
Question 1 Write a shell script that takes a process name as input and checks if the process is running. If it's running, it should display the process ID; otherwise, it should display a message that the process is not running.
The gamelan is an important musical ensemble in: Turkey. Uganda. China. Java.
Which of the following actions is a best practice when storing payment card information? Use password protected and innocently named spreadsheets, databases, or accounting software to store full cardholder data. Only record and store security codes and PINs, but never the actual full card…
Q2:(2.1) Write the regular expression for the language L over $\Sigma = \{0, 1\}$ in which every 0 is immediately followed by 11. (1 mark)
Given the following code: x = 'a b c'; y = 'd e f'; z = [x y x]; What is the length(z)? 9 18 3 15
Pseudocode is used to describe the processing logic (the way data will be transformed) in the System and is created in the Development Phase. A True B False
A________ port number designates a specific application running on a server. Neither well-known nor ephemeral well-known Both well-known and ephemeral ephemeral
4) The Boston Massacre occurred when British soldiers (1pts) killed Indians who were raiding frontier towns fired into a mob and killed a number of Boston residents captured some members of the Sons of Liberty who were involved in the Boston Tea Party fired on local minutemen guarding an…
The 'this' keyword is used to: Access global variables Access local variables over class variables Differentiate between class and local variables when they have the same name Create new instances of the class
Which of the following is a traditional method of collecting systems requirements? Rapid application development Joint application design Observations Business process reengineering Prototyping
You are given the following sequence of integers to be inserted into a hash table: 23, 45, 12, 16, 8, 30 Use the hash function $h(x) = x \mod 7$ to determine the hash values for each integer, with linear probing to resolve collisions.
creates confusion that hampers the creation of information systems that integrate data from different source Batch processing Data redundancy Data independence OLAP
IP addresses are specified in a field of the TCP and UDP headers. Select one: O True O False
Which class of fire extinguishing is for fires involving electrical equipment? A Class A B Class D C Class C D Class B
Question 2 1 pts A template is a preformatted workbook that contains document design and some content already entered into the document. True False
C_{ij} i j 8 6 3 2 2 4 1 2 1 5 2 6 3 7 6 3 3 2 3 5 1 5 8 Figure 6.42: Network for exercise problems Show that the network in Figure 6.42 is TU. If it is not, provide a proof that it is not TU.
The object-oriented programming language principle of encapsulation is the ability to process objects differently depending on the False True
Question 22 In RAID, ____ improves read performance by breaking a large read operation into smaller parallel read operations.
q, protects data at rest from all type of breaches. \_\_\_ protects data at rest from all type of breaches.
You find a flash drive in the parking lot entitled "Payroll". You are curious about what the CEO earns, so you plug the device into your system and open a file. Suddenly, your screen flashes and a message appears saying you need to pay 500 Bitcoin in the next 24 hours to unlock the system and…
Question 16 Which of the following refers to the process of determining or validating a user's identity ? A Authorization Assessment B Identity audit C Authorization audit D Authentication
QUESTION 10 Visitor Pattern [Total marks: 10] [10 Marks] With the aid of example code, describe the Visitor pattern. Why is it particularly suited to "walking an abstract syntax tree"? [End Question 10]
Problem 1: Using the template Webots project included on Canvas. Write a robot controller (for the "mybot" differential drive robot used in the lectures) to move the robot from its initial position and orientation ($X_0$=-0.25 m, $Y_0$=0.25 m, $\theta_0$=1.3) to the final position and…
One of the first things developers of I of T applications should focus on is building in ______ from the start. A security B redundancy C backup D cost controls
3. (16 points) In this part we state graph theory properties in first order logic. Let G = (V, E) and let the predicate $E(x, y)$ mean that there is an (undirected) edge between $x$ and $y$. In your answers, all quantifiers should have universe V, the vertices of the graph. (a) (4 points) Write…
Q.4. (Marks:20) If ElGamal signature is generated using following steps. 1. Key generation: secret key a with 1<a<p-2 2. Public key, $\beta = \alpha^a \mod p$; $\alpha$,p are also public. 3. p→ large prime number and $\alpha$→generator of $Z_p^*$ 4. Calculate signature; a. repeat i. Choose…
In Java, memory for primitive data types is allocated: At compilation time At runtime Both at compilation and runtime None of the above
Question 9 The performance of a \_\_\_\_\_\_\_\_ sort can be improved if the sort is stopped when no swapping occurs in an iteration
Write a shell script that takes a filename as an argument and checks whether the file is readable, writable, and executable by group and others. Display appropriate messages.
Which scheduling algorithm prioritizes processes based on their estimated cpu time? SJF FCFS Priority Scheduling Round Robin
Which of the following is not an element in the NIST Cybersecurity Framework Protect function category? A Data security B Personnel management C Maintenance D Awareness and training
Question 20 2 pts Assume that radio references a JRadioButton object. To click the radio button in code, use the following statement: Click(radio); radio.doClick(); radio.Click(); Click(radio, true);
Question 36 (1.25 points) A CRC is _____. used to connect networks on the same protocol. a sum of all the 1s in the packet. the payload itself. the end of the packet.
Question 15 This is commonly used to hold and organize collections of related components: label frame list panel
In the context of protecting information, which of the following is defined as the process of granting verified users approved access to data, software, and systems? Encryption Authorization Decryption Authentication
In a maxheap, the object in each node is greater than or equal to the objects in the node's siblings ancestors descendants parents
What is the kinetic energy of a single molecule of chlorine if it is traveling at $3.9 \times 10^3 m/s$?
11) If you use an Internet cache, then the information displayed in your browser is automatically refreshed. True False
Question 6 10 Points Your boss has asked you to connect three new laptops to the wireless network "WLAN42." It runs at a speed of 54 Mbps only and a frequency of 2.4 GHz only. What IEEE 802.11 standard should you implement when connecting the laptops to the WAP? A) 802.11a B) 802.11b C)…
All employees of TC Technologies must presesnt a photo ID to the security guard before entering the headquarters. Entry to other more highly secure areas, such as the IT Department, requires further procedures. This is an example of a(an): a. hardening procedure. b. physical access control. c.…
Question 26 2 pts Suppose list1 is [8, 7, 5, 32, 8, 1, 2], what is list1 after executing list1.pop(1)? [8, 5, 32, 8, 1, 2] [8, 7, 5, 32, 8, 2] [8, 7, 5, 32, 8, 1] [7, 5, 32, 8, 1, 2]
5. (20 points) 5a) (10 pts) Given the circuit below, b p1 po State register no Z n1 no 5b.1) (6 pts) Determine (ignore inverters) number of gate inputs. 5b.2) (4 pts) Determine number of gate delays (ignore inverters) 5b) (10 pts) Given the state diagram of a sequential circuit with 1 input (w)…
[Question 3] We have a database with a buffer size of 12 buffers and two tables, R and S, with following properties: : R: 100,000 pages and 10,000,000 tuples total S: 2,000 pages and 200,000 tuples total Compute the total I/O cost and total time cost (at 0.1 ms/IO) of the following join…
Activity 4.5.2: Selection Sort Consider the following algorithm on an array of numbers $x_1, x_2, x_3, \dots, x_n$. The element in the first position is compared to the $n - 1$ remaining elements; whenever one is found that is less, the first element is swapped with it. Then the element in the…
def multiply_using_shift_and_add( A, B): # Initialize result result = 0 # While the multiplier (B) is not zero while B > 0: # If the least significant bit of B is 1 if B & 1: result += A # Add the multiplicand (A) to the result # Shift the multiplicand (A) left (multiply by 2) A = A << 1 #…
Question 23 Audit objectives for the database management system include all of the following EXCEPT: confirming that backup procedures are adequate verifying that unauthorized users cannot access data files ensuring that authorized users access only those files they need to perform their…
1. (25 pts) In this problem, we will compare the performance of a vector processor with a hybrid system that contains a scalar processor and a GPU-based coprocessor. In the hybrid system, the host processor has superior scalar performance to the GPU, so in this case all scalar code is executed…
Question 27 In the following diagram: (If having trouble viewing image, link to image on Github) The Assembly Language code for it can be found at: button3.s The program when the user presses down on the tactile button on rows 34-36 will light up the LED blue when the bl digitalRead instruction…
Which of the following companies is NOT built on web scraping? Expedia (airline booking website) All companies mentioned here are built on web scraping Google (search engine) Amazon (e-commerce platform)
2.6 You work on a system where a CUPS printer named epsonps is the default printer. There are other printers in the system called canyonps and hpps. a) Give the command that will print doc1.ps on canyonps by overriding the default printer setting. Do not change the default setting permanently.…
1. Let ∑ = {0,1, #} and consider a TM, T, given by the following diagram. Assume that the only input that this machine is meant to process is of the form #0<sup>n</sup> for some n ≥ 1 (e.g., #0000). (a) Suppose that the operator of this machine • stops T every time after it has just…
To better protect ePHI in accordance with HIPAA's Security Rule, which is true: Have a strong password Don't share your password Lock your PC or device when away Utilize virus/spyware protection All of the above
The connectedness of devices carries potential risks. True False The connectedness of devices carries potential risks. True False
Question 18 A computer virus is a destructive program that disrupts the normal functioning of information systems and spreads from one computer to the next. A True B False
8. Suppose you are analyzing the monthly temperature data for a region over a 5-month period. The temperature data for each month across different cities is stored in the following matrix: $$ \text{temperature} = \begin{bmatrix} 22 & 28 & 32 & 35 & 25 \\ 18 & 25 & 20 & 22 & 27 \\ 30 & 32 & 33 &…
QUESTION 14 1 PTS TABLE 10-3 A COMPANY HAS DECIDED TO USE 0-1 INTEGER PROGRAMMING TO HELP MAKE SOME INVESTMENT DECISIONS. THERE ARE THREE POSSIBLE INVESTMENT ALTERNATIVES FROM WHICH TO CHOOSE, BUT IF IT IS DECIDED THAT A PARTICULAR ALTERNATIVE IS TO BE SELECTED, THE ENTIRE COST OF THAT…
Question 6 1 pts Which of the following best describes the benefit of pipelining in a computer processor? Pipelining eliminates the need for sequential instruction processing, reducing the overall processing time. Pipelining reduces the time it takes to execute a single instruction. Pipelining…
1. Rule-Based Classification: Using a rule-based approach, create rules to classify samples into either the positive or negative class based on the given attributes (Color, Size, Temperature, Weight). 2. Rule Interpretation: Interpret the rules you created in 1). Explain the conditions under…
If the input into a Convolutional Neural Network is an image that is 64 px by 64 px, and you want to use 5x5 convolutional filters on it with a stride of 1 and no padding, what will the size of the output be? Please only enter one value--if your answer is 20x20, please enter 20.
Question 18 2 pts To use the ActionListener interface, as well as other event listener interfaces, you must have the following import statement in your code: import java.awt.*; import java.awt.event.*; import java.swing; import java.awt;
QUESTION 1 Convert this C++ program (and accompanying function) into x86 assembly language Make sure to use the proper best practices taught in Chapter 8 regarding parameter passing and local variables #include <iostream> using namespace std; // Use registers instead of variables listed…
Question 4 A(n) ______ is an interface between a computer and a printer that enables the computer to transfer multiple bits of information Oparallel port arithmetic logic unit Ocontrol unit O serial port Question 5 In a(n) ______ access file structure, records can be accessed in any order,…
Problem 2: Vehicles Characteristics Sample Make (Nominal) Type (Nominal) Fuel Efficiency (Continuous) Horsepower (Continuous) Num Seats (Ordinal) Price (Continuous) Class…
Each node of a linked list typically has one or more "data" fields and at least one pointer to the same data type as the node itself. True False
Standard SQL is introduced by the international standard organizations and all relational DB systems must follow the same interpretation. True False
Cu_(2)O(s)+O_(2)(q)->CuO(s)
Write a table in HTML that will look like exactly like the table below. The width of the table is 400 pixels. Don't worry about creating any additional markup other than the table markup. My Table Cell Cell Cell Cell Cell Cell Footer
You use a unary minus sign preceding a value to make the value \_\_\_\_\_\_. positive valid constant negative
In this question, you will learn to implement the Abstractive Summarization task using the encoder-decoder model. 1. Load the dataset cnn-dailymail¹. Use version 3.0.0. Use train set for training and test set for testing purposes. Use columns article which is the news article published in CNN…
Suppose that a static robot is equipped with a spot laser range scanner that continuously returns the distance to an object which is 6 m. The sensor returns a distance measurement with some known constant variance which is 20 m$^2$. Plot the estimate of the distance and the variance.…
Which of the following image consist of highest forest area? 3500 forest pixels from ASTER Image at 15m * 15m spatial resolution 2000 forest pixels from Landsat 5 TM at 30m * 30m spatial resolution 30 forest pixels from MODIS image at 250m * 250m spatial resolution 5 forest pixels from MODIS…
A function template is a pattern for a function that can work with multiple data types. The actual code for the function is generated by the compiler when it encounters a function call of the function template for a specific data type. O True O False
What is the function of a data warehouse in a business intelligence system? To hold temporary records for quick access To store structured data from multiple sources for historical analysis To generate real-time alerts based on data patterns To handle data encryption across tables
What technology characterized the fourth generation of computers? Transistors Artificial Intelligence Integrated circuit Microprocessors
What Network type would most likely be used in a small business ? A Personal Area Network (PAN) B Local Area Network (LAN) C Metropolitan Area Network (MAN) D Wide Area Network (WAN)
Question 1 of 13 Time remaining: 29:18 In the context of decrease-and-conquer algorithms, specifically focusing on the decrease-by-a-constant-factor variant, which of the following statements are true? (Multiple answers may be correct. Select all that apply.) Please be aware that there will be…
Question 17 1 pts Which of the following statements best describes the difference between fine-grained and coarse-grained multithreading? Fine-grained multithreading is less efficient than coarse-grained multithreading because it requires more processor cycles to switch threads. Fine-grained…
Identify the shortest path from A to C. Identify the shortest path from A to C.
Question 5 Which of the following is NOT a valid reason to acquire software externally? A Need a Niche skill B Implement Common Business Processes C Limited IT Budget D None of the Above (all are valid)
How many bytes are in a hexadecimal number 7CBD03? 3 4 5 6
1. For the given HLSM below, prepare Datapath components needed. Inputs: a, b Outputs: Z(8) OFF Z=20 $a'$ $a \ \&\& \ b$ $a'$ a ON Z=Z+1
A computer virus is a destructive program that disrupts the normal functioning of information systems and spreads from one computer to the next. A True B False
A(n) \_\_\_\_\_ hard disk is typically connected to a USB. Multiple Choice internal cloud external Ethernet
When calling this() from a constructor, it must be the ____ statement within the constructor. first second indented ending
What is the primary goal of text mining? To extract meaningful patterns and insights from hidden data To extract meaningful patterns and insights from structured data To extract meaningful patterns and insights from binary data To extract meaningful patterns and insights from unstructured data
Which XXX is the base case in the recursive function to find the factorial of a number, where n is the input of the function? int Factorial(int n) { if XXX { return n * Factorial(n - 1); } else { return 1; } } (n > 0) (n > 1) (n <= 0) (n < 1)
Which of the following statements about memory technologies is true? Flash memory is nonvolatile and commonly used in personal mobile devices, while magnetic disks are the slowest and largest memory technology used in servers. DRAM is faster than SRAM but has a higher cost per bit due to its…
Question 7 Question 3 (10 points) Dynamic Programming / Knapsack Problem item weight value 1 3 $18 2 5 $15 3 4 $20 4 2 $10 The knapsack has a capacity (weight limit) of 10. item 0 1 2 3 4 5 6 7 8 9 10 (empty) $w_1 = 3, v_1 = 18$ $w_2 = 5, v_2 = 15$ $w_3 = 4, v_3 = 20$ $w_4 = 2, v_4 =…
The switch S of the circuit shown below is closed at $t = 0$. 4.0 Ω 4.5 H 12 V 4.0 Ω 9.0 H (a) Determine the initial current through the battery (in A). 0 A (b) Determine the steady-state current through the battery (in A). A
Problem 4: Rule-based methods The goal is to build a rule-based classifier to predict the class label based on these attributes. Here's the dataset: Age Income Education Temperature ID (Continuous)…
List one possible solution of BFS and DFS of the following graph starting from node A. Your answer: BFS: DFS:
True or false: The following two code blocks are equivalent, i.e., they always produce the same result no matter what the value of month is. Code block 1: if month < 1: print("Invalid month.") else: if month < 4: print("Spring") else: if month < 7: print("Summer") else: if month <…
Robert Frost - The Road Not Taken Two roads diverged in a yellow wood, And sorry I could not travel both And be one traveler, long I stood And looked down one as far as I could To where it bent in the undergrowth; Then took the other, as just as fair, And having perhaps the better…
Question 40 2 pts (CFA Interpolation) From a Bayer pattern, we have the following incomplete red color plane. Which is the correct bilinear interpolation results?. 10 A 50 B E C 30 D 70 [A,B,C,D,E] = [20, 30, 60, 50, 80] [A,B,C,D,E] = [30, 20, 60, 50, 80] [A,B,C,D,E] = [30, 20, 80, 50,…
The relationship between file types and the programs or OS utilities that manipulate them is called _____. file launcher file association shell folder manager
In merge sort, allocating and initializing an array many times during the recursive calls to merge is the only way to ensure the algorithm will work correctly is the only way the merge process will work is a waste of time and space all of the choices
Which validation rule in a database ensures that only specific, preexisting options can be chosen for a field? Range check Multiple choice check Data type check Uniqueness check
Problem 3: Now we will use the methods of ridge regression and lasso to solve our models. 1. The ridge regression cost function we will use is of the form $$L(X, y, \alpha, s) = \frac{1}{n}||Xa - y||_2^2 + s||\alpha||_2^2$$ We can solve the normal equations directly to obtain our model…
Which type of AI is also known as AGI and can theoretically learn any intellectual task a human can? Generative AI Superintelligence Narrow AI General AI
The USA PATRIOT Act expanded definition of loss as result of hacking to include... the costs of infrastructure before the attack happens. the legal fees for suing the hackers. the costs for addressing the vulnerabilities exposed by the hack. the cost of responding to an attack, assessing damage…
Question 2 The dominant syntax clue in the English language is ____ A word meaning B word complexity C word order D word veracity 2 Points
Question 17 5 pts The esi, edi registers store memory addresses in... words bytes dwords 4-bit chunks
(8 pts) P5-1: We learned hierarchical clustering algorithms. Please list four measuring strategies and their strengths and limitations. - means & its variants -
What is the relationship of a core category to other categories and subcategories? â—‹ the category that explicitly relates to the research question â—‹ deepest level of subcategory â—‹ overarching category that contains the other â—‹ the most theorized category
is the ability to understand hierarchies to simultaneously consider relations between a general category and more specific subcategories. O transitive inference O classification O class inclusion O seriation
Which of the following is the set $L$ of all the letters that make up the word INDIANA? $L = \{A, D, I, N\}$ $L = \{I, N, D, I, A, N, A\}$ $L = \{D, I, N\}$ $L = \{A, D, I\}$
What are the contents of registers R0 and R1 after the call of the function named `mystery` in the following code fragment (assume numbers in decimal): ```assembly mov R0, #165 mov R1, #17 bl mystery ... mystery: add R1, R0, lsr #3 mov R0, R0, lsl #2 mov PC,…
Question 14 code is stored in a file, such as an .exe file in Windows, and contains CPU instructions that are ready for an OS to load and execute.
Question 30 Google AppEngine is an example of a private cloud service. O True O False
Question 72 of 85 This test: 85 point(s) possible This question: 1 point(s) possible Which of the following accesses a user's files and transmits information to someone outside the host system without the user ever being aware it happens? A. Spyware B. Antivirus software C. Spam D.…
Question 1 Why would you NOT want to send an email to security personnel in the event that your IDS alerts to a suspected attack?
A schizophrenic who said, "It's time for supper, supper, supper. Supper is on in the supper supper" is experiencing: clang perseveration neologism none of these
Question 2 1 pts Which of the following statements accurately describes a state element in a digital logic design? A state element does not require a clock signal for operation and is purely combinational in nature. A state element always produces the same output given the same input, with no…
What term refers to a visual pattern that represents numerical data by varying the thickness and pattern of vertical lines? Data mining Authentication Bar code Data encryption
One common way to deal with spam that makes it to your computer is to use a(n) \_\_\_\_\_\_. email filter war drive encryption scheme hot site
Using \_\_\_-bit pointers limits the size of a file to 4 GB. 64 256 32 128
Vectorization improves brevity at the expense of computational speed True False
Question 47 If your code does not handle and exception when it is thrown, this prints an error message and crashes the program. Java error handler default exception handler multi-catch try statement
The function definition below is taken from Chapter 4 and describes the general problem of finding the first occurrence of a given character in a given string. Function: first index Inputs: text, a string; character, a string Preconditions: |character| = 1 Output: index, an…
Question 41 In an expert system, the set of rules that models human knowledge is called: an inference engine. a genetic algorithm. the knowledge base. a deep learning neural network. the Internet of Things (IoT).
(6 pts) P5-2: Provide the definition of the proximity matrix for hierarchical clustering algorithms. Consider you have the following data points. Please show the proximity matrix (you can represent results without calculating the square roots). Figure 3: Hierarchical Clustering Data Points (6…
Question 33 What is the purpose of the following code? current = head; while (current != NULL) { //Process current current = current->link; } Traversal of a linked list Creation of a new list Insertion of a node Selection of a node
Now create a function buildPanelData that takes a date range a list of countries and a list of indicators, returning a single dataFrame with columns for each indicator. Use the buildCountryData as a building block (i.e., just concat the dataframes you created above. [] Start coding or generate…
Which of the following is a characteristic of Huffman coding? The root node's weight is equal to the number of characters in the message $n$ minus one. The first step creates a subtree of the two items with highest frequency. To get the binary code of the character, add a 0 to each edge of a…
Which of the accompanying Data Category settings can be utilized for mapping information to geographic areas in Power BI? An IP address (e.g. 168.12.33.6) Latitude and Longitude (e.g. 47.6080, - 122.3351) A county (e.g. Miami-Dade) A place (e.g. Logan International Airport)
In the MAC protocol of 802.11, truncated binary exponential backoff (BEB) is used to resolve contention. The operation of BEB at an individual node can be modelled as a Markov chain, where each state represents the backoff state of a node. In backoff state $i$, $i = 0, 1, 2, 3, \dots, M$, the…
Question 12 1 pts Which of the following statements accurately describes the ARM Cortex-A53 processor and its pipeline characteristics? The ARM Cortex-A53 has a deep pipeline structure of 15 stages for integer instructions and relies on dynamic scheduling to handle instruction dependencies. The…
You are working as a cybersecurity expert in an enterprise. While examining the newly established enterprise network, you found that when a request to write data to the drive is made, the controller sends that request to each drive. When a read action is required, the data is read twice, once…
The following code with the delay function with the wiringPi library will pause the program for 1.75 seconds: mov r0, #1750 bl delay True False
Chet chats online with a small group of computer enthusiasts. The group calls itself X-Hackers because at one time all of these select members were hackers. Today, members of the group have similar values and have pledged to stop computer hacking. Which membership group factor best describes…
Question 2 often get their authentication information from Central authentication servers, directory servers Metadirectory servers, central authentication servers Central authentication servers, metadirectory servers Directory servers, central authentication servers
Explain this class diagram with an appropriate principal of an object orientation applied
Consider the following class diagram as the structure for the pattern.
Generate the three-address code for the following? C program fragment: while (a > b) { if (c < d) x = y + z; else x = y - z; }
generate nfa for : a(a/b)*b
Question 5 1 pts Which of the following would be an implementation of a function named: mystery\_one, which takes the value of x in register r0 and value of y in register r1, computes $r = 4^*(x+y)$, and returns r in r0? O mystery\_one: add r0, r1 mov r0, r0, asl \#4 mov pc, lr O…
If you have the following input into a max pooling layer with a 2x2 filter and stride of 2, what would you expect the output to be? 4611 1313 4008 8540 Note: The answers are written in nested list/matrix format, so that the above matrix would be [[4,6,1,1], [1,3,1,3], [4,0,0,8], [8,5,4,0]] A…
Given the following code, what prints? (Do NOT type this code into your IDE - you should be able to solve it by hand. FILL in the values in the comments at lines 6, 10, 14, 21, 26, and 31. Take a pic if necessary. #include <iostream> using namespace std; int main() { int a{ 5), b{ 10), c{15},…
In telepharmacy, what does the pharmacist supervise at the remote site? Keyboard usage b. Hard drive maintenance c. Prescription preparation d. Scanner operation
Example 4.1 Consider the 4x4 gridworld shown below. actions 1 2 3 4 5 6 7 8 9 10 11 12 13 14 $R_t = -1$ on all transitions The nonterminal states are $S = \{1, 2, \dots, 14\}$. There are four actions possible in each state, $A = \{\text{up, down, right, left}\}$, which deterministically cause…
Describe the set $\left\{(\rho, \phi, \theta): \theta = \frac{5\pi}{6}\right\}$ in spherical coordinates.
class Vehicle { public: virtual void print() final; }; 1. Another class, such as a class named Train, could inherit from the Vehicle class. 2. The override keyword could be added to the prototype for the print() function, after the word final. 1.. False 2.. True 1.. True 2.. True 1.. False 2..…
Which one of the following correctly describes the single logical link formed by bundling all of a controller's distribution system ports together? A O GEC B O LAG C O PHY D O DSP
An example of an entity for an airline is: Departure and arrival airports Employee IDs of crew members Scheduled and actual departure and arrival times All of the above
Encryption that uses 16-character keys is known as ____. strong 128-bit encryption strong 256-bit encryption military-strength 256-bit encryption military-strength 1024-bit encryption
Question 23 Given n = "5" what is the result of $n + 3$? 53 Nothing - error $5 + 3$ 8 2 pts
Which of the following is not one of the benefits of using a wireless network? Multiple Choice Flexibility and scalability. Greater security. Mobility. Rapid deployment.
$\forall x \forall y (T(x,y) \rightarrow x=y) \vdash T(a,b) \rightarrow T(b,a)$ 1. Playground No Rule Found 1. $\forall x \forall y (T(x,y) \rightarrow x=y)$:PR 2. $\forall y (T(a,y) \rightarrow a=y)$: AE1 3. $\forall y (T(b,y) \rightarrow b=y)$: AE1 4. $T(a,b) \rightarrow a=b$: AE2 5.…
1. Johnson's counter For a twisted ring counter of 8-bits, if the time-zero value reads 0xCC, what does the counter read, after 23 clocks? Pick ONE option 0xCC 0x33 0x67 0xA8
Question 1 Multiple answers: Select all statements that are *true* regarding the three Process States which are Running, Ready, and Blocked. A process in Blocked state can only be moved to Ready state. Being moved from Running to Ready state means that the process has been descheduled. Being…
Question 32 2 pts Question 17 (5 points) Complexity The problem of finding whether an integer is a square (of an integer) is in the class NP but not in NP-Complete. Explain.
Part 1: Start from node 0 and write down the node traversal order for the following graph using the Depth First Traversal order and the Breadth First Traversal order.
Typically, how often does a major disaster occur in the world? A Monthly B Weekly C Daily D Yearly
How many machine instructions are required to execute the following RISC-V assembly instruction: addi x1,x0,0x1000 a. 3 b. 2 c. 1 d. impossible to determine from information given
Question 15 5 pts In our example use-after-free attack on Fast bins, we allocated and then freed 10 size 0x20 chunks as shown here: TCache Bin 7 chunks metadata fd pointer metadata 0x0 data data Fast Bin metadata fd pointer metadata fd pointer metadata 0x0 data data data In our lecture, we…
Question 27 1 pts Which of the following statements about memory hierarchies and the principle of locality is true? Data is stored in the memory closest to the processor and moved to lower levels only when it is no longer needed. Temporal locality refers to the tendency of a data item to be…
Object-oriented systems development (OOSD) uses object-oriented modeling to represent real ______ objects. O institutional O world O systems O user
What is the range of values that can be represented using 8 bits in binary? 0 to 2047 0 to 1023 0 to 255 0 to 127
In the following diagram: (If having trouble viewing image, link to image on Github) The Assembly Language code for it can be found at: button3.s The program uses the code: mov r0, #6 bl digitalRead to check to see if the user has pressed the tactile button on rows 34-36. O True O False
The main() method in Java serves as: O The entry point for the compiler. O The entry point for the application. O A mandatory method for all Java classes. O An optional method in Java applications.
The arrangement of the arguments in a function. A. Grammar B. Syntax C. Structure
What do we call the software/hardware used to detect intrusion and prevent unauthorized access to/from a private network (A) Encryption (B) Proxy Server (C) Firewall (D) VPN
Question 1 Write a shell script that takes a process name as input and checks if the process is running. If it's running, it should display the process ID; otherwise, it should display a message that the process is not running.
The gamelan is an important musical ensemble in: Turkey. Uganda. China. Java.
Which of the following actions is a best practice when storing payment card information? Use password protected and innocently named spreadsheets, databases, or accounting software to store full cardholder data. Only record and store security codes and PINs, but never the actual full card…
Q2:(2.1) Write the regular expression for the language L over $\Sigma = \{0, 1\}$ in which every 0 is immediately followed by 11. (1 mark)
Given the following code: x = 'a b c'; y = 'd e f'; z = [x y x]; What is the length(z)? 9 18 3 15
Pseudocode is used to describe the processing logic (the way data will be transformed) in the System and is created in the Development Phase. A True B False
A________ port number designates a specific application running on a server. Neither well-known nor ephemeral well-known Both well-known and ephemeral ephemeral
4) The Boston Massacre occurred when British soldiers (1pts) killed Indians who were raiding frontier towns fired into a mob and killed a number of Boston residents captured some members of the Sons of Liberty who were involved in the Boston Tea Party fired on local minutemen guarding an…
The 'this' keyword is used to: Access global variables Access local variables over class variables Differentiate between class and local variables when they have the same name Create new instances of the class
Which of the following is a traditional method of collecting systems requirements? Rapid application development Joint application design Observations Business process reengineering Prototyping
You are given the following sequence of integers to be inserted into a hash table: 23, 45, 12, 16, 8, 30 Use the hash function $h(x) = x \mod 7$ to determine the hash values for each integer, with linear probing to resolve collisions.
creates confusion that hampers the creation of information systems that integrate data from different source Batch processing Data redundancy Data independence OLAP
IP addresses are specified in a field of the TCP and UDP headers. Select one: O True O False
Which class of fire extinguishing is for fires involving electrical equipment? A Class A B Class D C Class C D Class B
Question 2 1 pts A template is a preformatted workbook that contains document design and some content already entered into the document. True False
C_{ij} i j 8 6 3 2 2 4 1 2 1 5 2 6 3 7 6 3 3 2 3 5 1 5 8 Figure 6.42: Network for exercise problems Show that the network in Figure 6.42 is TU. If it is not, provide a proof that it is not TU.
The object-oriented programming language principle of encapsulation is the ability to process objects differently depending on the False True
Question 22 In RAID, ____ improves read performance by breaking a large read operation into smaller parallel read operations.
q, protects data at rest from all type of breaches. \_\_\_ protects data at rest from all type of breaches.
You find a flash drive in the parking lot entitled "Payroll". You are curious about what the CEO earns, so you plug the device into your system and open a file. Suddenly, your screen flashes and a message appears saying you need to pay 500 Bitcoin in the next 24 hours to unlock the system and…
Question 16 Which of the following refers to the process of determining or validating a user's identity ? A Authorization Assessment B Identity audit C Authorization audit D Authentication
QUESTION 10 Visitor Pattern [Total marks: 10] [10 Marks] With the aid of example code, describe the Visitor pattern. Why is it particularly suited to "walking an abstract syntax tree"? [End Question 10]
Problem 1: Using the template Webots project included on Canvas. Write a robot controller (for the "mybot" differential drive robot used in the lectures) to move the robot from its initial position and orientation ($X_0$=-0.25 m, $Y_0$=0.25 m, $\theta_0$=1.3) to the final position and…
One of the first things developers of I of T applications should focus on is building in ______ from the start. A security B redundancy C backup D cost controls
3. (16 points) In this part we state graph theory properties in first order logic. Let G = (V, E) and let the predicate $E(x, y)$ mean that there is an (undirected) edge between $x$ and $y$. In your answers, all quantifiers should have universe V, the vertices of the graph. (a) (4 points) Write…
Q.4. (Marks:20) If ElGamal signature is generated using following steps. 1. Key generation: secret key a with 1<a<p-2 2. Public key, $\beta = \alpha^a \mod p$; $\alpha$,p are also public. 3. p→ large prime number and $\alpha$→generator of $Z_p^*$ 4. Calculate signature; a. repeat i. Choose…
In Java, memory for primitive data types is allocated: At compilation time At runtime Both at compilation and runtime None of the above
Question 9 The performance of a \_\_\_\_\_\_\_\_ sort can be improved if the sort is stopped when no swapping occurs in an iteration
Write a shell script that takes a filename as an argument and checks whether the file is readable, writable, and executable by group and others. Display appropriate messages.
Which scheduling algorithm prioritizes processes based on their estimated cpu time? SJF FCFS Priority Scheduling Round Robin
Which of the following is not an element in the NIST Cybersecurity Framework Protect function category? A Data security B Personnel management C Maintenance D Awareness and training
Question 20 2 pts Assume that radio references a JRadioButton object. To click the radio button in code, use the following statement: Click(radio); radio.doClick(); radio.Click(); Click(radio, true);
Question 36 (1.25 points) A CRC is _____. used to connect networks on the same protocol. a sum of all the 1s in the packet. the payload itself. the end of the packet.
Question 15 This is commonly used to hold and organize collections of related components: label frame list panel
In the context of protecting information, which of the following is defined as the process of granting verified users approved access to data, software, and systems? Encryption Authorization Decryption Authentication
In a maxheap, the object in each node is greater than or equal to the objects in the node's siblings ancestors descendants parents
What is the kinetic energy of a single molecule of chlorine if it is traveling at $3.9 \times 10^3 m/s$?
11) If you use an Internet cache, then the information displayed in your browser is automatically refreshed. True False
Question 6 10 Points Your boss has asked you to connect three new laptops to the wireless network "WLAN42." It runs at a speed of 54 Mbps only and a frequency of 2.4 GHz only. What IEEE 802.11 standard should you implement when connecting the laptops to the WAP? A) 802.11a B) 802.11b C)…
All employees of TC Technologies must presesnt a photo ID to the security guard before entering the headquarters. Entry to other more highly secure areas, such as the IT Department, requires further procedures. This is an example of a(an): a. hardening procedure. b. physical access control. c.…
Question 26 2 pts Suppose list1 is [8, 7, 5, 32, 8, 1, 2], what is list1 after executing list1.pop(1)? [8, 5, 32, 8, 1, 2] [8, 7, 5, 32, 8, 2] [8, 7, 5, 32, 8, 1] [7, 5, 32, 8, 1, 2]
5. (20 points) 5a) (10 pts) Given the circuit below, b p1 po State register no Z n1 no 5b.1) (6 pts) Determine (ignore inverters) number of gate inputs. 5b.2) (4 pts) Determine number of gate delays (ignore inverters) 5b) (10 pts) Given the state diagram of a sequential circuit with 1 input (w)…
[Question 3] We have a database with a buffer size of 12 buffers and two tables, R and S, with following properties: : R: 100,000 pages and 10,000,000 tuples total S: 2,000 pages and 200,000 tuples total Compute the total I/O cost and total time cost (at 0.1 ms/IO) of the following join…
Activity 4.5.2: Selection Sort Consider the following algorithm on an array of numbers $x_1, x_2, x_3, \dots, x_n$. The element in the first position is compared to the $n - 1$ remaining elements; whenever one is found that is less, the first element is swapped with it. Then the element in the…
def multiply_using_shift_and_add( A, B): # Initialize result result = 0 # While the multiplier (B) is not zero while B > 0: # If the least significant bit of B is 1 if B & 1: result += A # Add the multiplicand (A) to the result # Shift the multiplicand (A) left (multiply by 2) A = A << 1 #…
Question 23 Audit objectives for the database management system include all of the following EXCEPT: confirming that backup procedures are adequate verifying that unauthorized users cannot access data files ensuring that authorized users access only those files they need to perform their…
1. (25 pts) In this problem, we will compare the performance of a vector processor with a hybrid system that contains a scalar processor and a GPU-based coprocessor. In the hybrid system, the host processor has superior scalar performance to the GPU, so in this case all scalar code is executed…
Question 27 In the following diagram: (If having trouble viewing image, link to image on Github) The Assembly Language code for it can be found at: button3.s The program when the user presses down on the tactile button on rows 34-36 will light up the LED blue when the bl digitalRead instruction…
Which of the following companies is NOT built on web scraping? Expedia (airline booking website) All companies mentioned here are built on web scraping Google (search engine) Amazon (e-commerce platform)
2.6 You work on a system where a CUPS printer named epsonps is the default printer. There are other printers in the system called canyonps and hpps. a) Give the command that will print doc1.ps on canyonps by overriding the default printer setting. Do not change the default setting permanently.…
1. Let ∑ = {0,1, #} and consider a TM, T, given by the following diagram. Assume that the only input that this machine is meant to process is of the form #0<sup>n</sup> for some n ≥ 1 (e.g., #0000). (a) Suppose that the operator of this machine • stops T every time after it has just…
To better protect ePHI in accordance with HIPAA's Security Rule, which is true: Have a strong password Don't share your password Lock your PC or device when away Utilize virus/spyware protection All of the above
The connectedness of devices carries potential risks. True False The connectedness of devices carries potential risks. True False
Question 18 A computer virus is a destructive program that disrupts the normal functioning of information systems and spreads from one computer to the next. A True B False
8. Suppose you are analyzing the monthly temperature data for a region over a 5-month period. The temperature data for each month across different cities is stored in the following matrix: $$ \text{temperature} = \begin{bmatrix} 22 & 28 & 32 & 35 & 25 \\ 18 & 25 & 20 & 22 & 27 \\ 30 & 32 & 33 &…
QUESTION 14 1 PTS TABLE 10-3 A COMPANY HAS DECIDED TO USE 0-1 INTEGER PROGRAMMING TO HELP MAKE SOME INVESTMENT DECISIONS. THERE ARE THREE POSSIBLE INVESTMENT ALTERNATIVES FROM WHICH TO CHOOSE, BUT IF IT IS DECIDED THAT A PARTICULAR ALTERNATIVE IS TO BE SELECTED, THE ENTIRE COST OF THAT…
Question 6 1 pts Which of the following best describes the benefit of pipelining in a computer processor? Pipelining eliminates the need for sequential instruction processing, reducing the overall processing time. Pipelining reduces the time it takes to execute a single instruction. Pipelining…
1. Rule-Based Classification: Using a rule-based approach, create rules to classify samples into either the positive or negative class based on the given attributes (Color, Size, Temperature, Weight). 2. Rule Interpretation: Interpret the rules you created in 1). Explain the conditions under…
If the input into a Convolutional Neural Network is an image that is 64 px by 64 px, and you want to use 5x5 convolutional filters on it with a stride of 1 and no padding, what will the size of the output be? Please only enter one value--if your answer is 20x20, please enter 20.
Question 18 2 pts To use the ActionListener interface, as well as other event listener interfaces, you must have the following import statement in your code: import java.awt.*; import java.awt.event.*; import java.swing; import java.awt;
QUESTION 1 Convert this C++ program (and accompanying function) into x86 assembly language Make sure to use the proper best practices taught in Chapter 8 regarding parameter passing and local variables #include <iostream> using namespace std; // Use registers instead of variables listed…
Question 4 A(n) ______ is an interface between a computer and a printer that enables the computer to transfer multiple bits of information Oparallel port arithmetic logic unit Ocontrol unit O serial port Question 5 In a(n) ______ access file structure, records can be accessed in any order,…
Problem 2: Vehicles Characteristics Sample Make (Nominal) Type (Nominal) Fuel Efficiency (Continuous) Horsepower (Continuous) Num Seats (Ordinal) Price (Continuous) Class…
Each node of a linked list typically has one or more "data" fields and at least one pointer to the same data type as the node itself. True False
Standard SQL is introduced by the international standard organizations and all relational DB systems must follow the same interpretation. True False
Cu_(2)O(s)+O_(2)(q)->CuO(s)
Write a table in HTML that will look like exactly like the table below. The width of the table is 400 pixels. Don't worry about creating any additional markup other than the table markup. My Table Cell Cell Cell Cell Cell Cell Footer
You use a unary minus sign preceding a value to make the value \_\_\_\_\_\_. positive valid constant negative
In this question, you will learn to implement the Abstractive Summarization task using the encoder-decoder model. 1. Load the dataset cnn-dailymail¹. Use version 3.0.0. Use train set for training and test set for testing purposes. Use columns article which is the news article published in CNN…
Suppose that a static robot is equipped with a spot laser range scanner that continuously returns the distance to an object which is 6 m. The sensor returns a distance measurement with some known constant variance which is 20 m$^2$. Plot the estimate of the distance and the variance.…
Which of the following image consist of highest forest area? 3500 forest pixels from ASTER Image at 15m * 15m spatial resolution 2000 forest pixels from Landsat 5 TM at 30m * 30m spatial resolution 30 forest pixels from MODIS image at 250m * 250m spatial resolution 5 forest pixels from MODIS…
A function template is a pattern for a function that can work with multiple data types. The actual code for the function is generated by the compiler when it encounters a function call of the function template for a specific data type. O True O False
What is the function of a data warehouse in a business intelligence system? To hold temporary records for quick access To store structured data from multiple sources for historical analysis To generate real-time alerts based on data patterns To handle data encryption across tables
What technology characterized the fourth generation of computers? Transistors Artificial Intelligence Integrated circuit Microprocessors
What Network type would most likely be used in a small business ? A Personal Area Network (PAN) B Local Area Network (LAN) C Metropolitan Area Network (MAN) D Wide Area Network (WAN)
Question 1 of 13 Time remaining: 29:18 In the context of decrease-and-conquer algorithms, specifically focusing on the decrease-by-a-constant-factor variant, which of the following statements are true? (Multiple answers may be correct. Select all that apply.) Please be aware that there will be…
Question 17 1 pts Which of the following statements best describes the difference between fine-grained and coarse-grained multithreading? Fine-grained multithreading is less efficient than coarse-grained multithreading because it requires more processor cycles to switch threads. Fine-grained…
Identify the shortest path from A to C. Identify the shortest path from A to C.
Question 5 Which of the following is NOT a valid reason to acquire software externally? A Need a Niche skill B Implement Common Business Processes C Limited IT Budget D None of the Above (all are valid)
How many bytes are in a hexadecimal number 7CBD03? 3 4 5 6
1. For the given HLSM below, prepare Datapath components needed. Inputs: a, b Outputs: Z(8) OFF Z=20 $a'$ $a \ \&\& \ b$ $a'$ a ON Z=Z+1
A computer virus is a destructive program that disrupts the normal functioning of information systems and spreads from one computer to the next. A True B False
A(n) \_\_\_\_\_ hard disk is typically connected to a USB. Multiple Choice internal cloud external Ethernet
When calling this() from a constructor, it must be the ____ statement within the constructor. first second indented ending
What is the primary goal of text mining? To extract meaningful patterns and insights from hidden data To extract meaningful patterns and insights from structured data To extract meaningful patterns and insights from binary data To extract meaningful patterns and insights from unstructured data
Which XXX is the base case in the recursive function to find the factorial of a number, where n is the input of the function? int Factorial(int n) { if XXX { return n * Factorial(n - 1); } else { return 1; } } (n > 0) (n > 1) (n <= 0) (n < 1)
Which of the following statements about memory technologies is true? Flash memory is nonvolatile and commonly used in personal mobile devices, while magnetic disks are the slowest and largest memory technology used in servers. DRAM is faster than SRAM but has a higher cost per bit due to its…
Question 7 Question 3 (10 points) Dynamic Programming / Knapsack Problem item weight value 1 3 $18 2 5 $15 3 4 $20 4 2 $10 The knapsack has a capacity (weight limit) of 10. item 0 1 2 3 4 5 6 7 8 9 10 (empty) $w_1 = 3, v_1 = 18$ $w_2 = 5, v_2 = 15$ $w_3 = 4, v_3 = 20$ $w_4 = 2, v_4 =…
The switch S of the circuit shown below is closed at $t = 0$. 4.0 Ω 4.5 H 12 V 4.0 Ω 9.0 H (a) Determine the initial current through the battery (in A). 0 A (b) Determine the steady-state current through the battery (in A). A
Problem 4: Rule-based methods The goal is to build a rule-based classifier to predict the class label based on these attributes. Here's the dataset: Age Income Education Temperature ID (Continuous)…
List one possible solution of BFS and DFS of the following graph starting from node A. Your answer: BFS: DFS:
True or false: The following two code blocks are equivalent, i.e., they always produce the same result no matter what the value of month is. Code block 1: if month < 1: print("Invalid month.") else: if month < 4: print("Spring") else: if month < 7: print("Summer") else: if month <…
Robert Frost - The Road Not Taken Two roads diverged in a yellow wood, And sorry I could not travel both And be one traveler, long I stood And looked down one as far as I could To where it bent in the undergrowth; Then took the other, as just as fair, And having perhaps the better…
Question 40 2 pts (CFA Interpolation) From a Bayer pattern, we have the following incomplete red color plane. Which is the correct bilinear interpolation results?. 10 A 50 B E C 30 D 70 [A,B,C,D,E] = [20, 30, 60, 50, 80] [A,B,C,D,E] = [30, 20, 60, 50, 80] [A,B,C,D,E] = [30, 20, 80, 50,…
The relationship between file types and the programs or OS utilities that manipulate them is called _____. file launcher file association shell folder manager
In merge sort, allocating and initializing an array many times during the recursive calls to merge is the only way to ensure the algorithm will work correctly is the only way the merge process will work is a waste of time and space all of the choices
Which validation rule in a database ensures that only specific, preexisting options can be chosen for a field? Range check Multiple choice check Data type check Uniqueness check
Problem 3: Now we will use the methods of ridge regression and lasso to solve our models. 1. The ridge regression cost function we will use is of the form $$L(X, y, \alpha, s) = \frac{1}{n}||Xa - y||_2^2 + s||\alpha||_2^2$$ We can solve the normal equations directly to obtain our model…
Which type of AI is also known as AGI and can theoretically learn any intellectual task a human can? Generative AI Superintelligence Narrow AI General AI
The USA PATRIOT Act expanded definition of loss as result of hacking to include... the costs of infrastructure before the attack happens. the legal fees for suing the hackers. the costs for addressing the vulnerabilities exposed by the hack. the cost of responding to an attack, assessing damage…
Question 2 The dominant syntax clue in the English language is ____ A word meaning B word complexity C word order D word veracity 2 Points
Question 17 5 pts The esi, edi registers store memory addresses in... words bytes dwords 4-bit chunks
(8 pts) P5-1: We learned hierarchical clustering algorithms. Please list four measuring strategies and their strengths and limitations. - means & its variants -
What is the relationship of a core category to other categories and subcategories? â—‹ the category that explicitly relates to the research question â—‹ deepest level of subcategory â—‹ overarching category that contains the other â—‹ the most theorized category
is the ability to understand hierarchies to simultaneously consider relations between a general category and more specific subcategories. O transitive inference O classification O class inclusion O seriation
Which of the following is the set $L$ of all the letters that make up the word INDIANA? $L = \{A, D, I, N\}$ $L = \{I, N, D, I, A, N, A\}$ $L = \{D, I, N\}$ $L = \{A, D, I\}$
What are the contents of registers R0 and R1 after the call of the function named `mystery` in the following code fragment (assume numbers in decimal): ```assembly mov R0, #165 mov R1, #17 bl mystery ... mystery: add R1, R0, lsr #3 mov R0, R0, lsl #2 mov PC,…
Question 14 code is stored in a file, such as an .exe file in Windows, and contains CPU instructions that are ready for an OS to load and execute.
Question 30 Google AppEngine is an example of a private cloud service. O True O False
Question 72 of 85 This test: 85 point(s) possible This question: 1 point(s) possible Which of the following accesses a user's files and transmits information to someone outside the host system without the user ever being aware it happens? A. Spyware B. Antivirus software C. Spam D.…
Question 1 Why would you NOT want to send an email to security personnel in the event that your IDS alerts to a suspected attack?
A schizophrenic who said, "It's time for supper, supper, supper. Supper is on in the supper supper" is experiencing: clang perseveration neologism none of these
Question 2 1 pts Which of the following statements accurately describes a state element in a digital logic design? A state element does not require a clock signal for operation and is purely combinational in nature. A state element always produces the same output given the same input, with no…
What term refers to a visual pattern that represents numerical data by varying the thickness and pattern of vertical lines? Data mining Authentication Bar code Data encryption
One common way to deal with spam that makes it to your computer is to use a(n) \_\_\_\_\_\_. email filter war drive encryption scheme hot site
Using \_\_\_-bit pointers limits the size of a file to 4 GB. 64 256 32 128
Vectorization improves brevity at the expense of computational speed True False
Question 47 If your code does not handle and exception when it is thrown, this prints an error message and crashes the program. Java error handler default exception handler multi-catch try statement
The function definition below is taken from Chapter 4 and describes the general problem of finding the first occurrence of a given character in a given string. Function: first index Inputs: text, a string; character, a string Preconditions: |character| = 1 Output: index, an…
Question 41 In an expert system, the set of rules that models human knowledge is called: an inference engine. a genetic algorithm. the knowledge base. a deep learning neural network. the Internet of Things (IoT).
(6 pts) P5-2: Provide the definition of the proximity matrix for hierarchical clustering algorithms. Consider you have the following data points. Please show the proximity matrix (you can represent results without calculating the square roots). Figure 3: Hierarchical Clustering Data Points (6…
Question 33 What is the purpose of the following code? current = head; while (current != NULL) { //Process current current = current->link; } Traversal of a linked list Creation of a new list Insertion of a node Selection of a node
Now create a function buildPanelData that takes a date range a list of countries and a list of indicators, returning a single dataFrame with columns for each indicator. Use the buildCountryData as a building block (i.e., just concat the dataframes you created above. [] Start coding or generate…
Which of the following is a characteristic of Huffman coding? The root node's weight is equal to the number of characters in the message $n$ minus one. The first step creates a subtree of the two items with highest frequency. To get the binary code of the character, add a 0 to each edge of a…
Which of the accompanying Data Category settings can be utilized for mapping information to geographic areas in Power BI? An IP address (e.g. 168.12.33.6) Latitude and Longitude (e.g. 47.6080, - 122.3351) A county (e.g. Miami-Dade) A place (e.g. Logan International Airport)
In the MAC protocol of 802.11, truncated binary exponential backoff (BEB) is used to resolve contention. The operation of BEB at an individual node can be modelled as a Markov chain, where each state represents the backoff state of a node. In backoff state $i$, $i = 0, 1, 2, 3, \dots, M$, the…
Question 12 1 pts Which of the following statements accurately describes the ARM Cortex-A53 processor and its pipeline characteristics? The ARM Cortex-A53 has a deep pipeline structure of 15 stages for integer instructions and relies on dynamic scheduling to handle instruction dependencies. The…
You are working as a cybersecurity expert in an enterprise. While examining the newly established enterprise network, you found that when a request to write data to the drive is made, the controller sends that request to each drive. When a read action is required, the data is read twice, once…
The following code with the delay function with the wiringPi library will pause the program for 1.75 seconds: mov r0, #1750 bl delay True False
Chet chats online with a small group of computer enthusiasts. The group calls itself X-Hackers because at one time all of these select members were hackers. Today, members of the group have similar values and have pledged to stop computer hacking. Which membership group factor best describes…
Question 2 often get their authentication information from Central authentication servers, directory servers Metadirectory servers, central authentication servers Central authentication servers, metadirectory servers Directory servers, central authentication servers
1
...
5
6
7
8
9