Home
Ask directory
AP CS
March 2025
21
AP CS
Q&A Archive of
March 21, 2025
Select Question
March 21 of 2025
Jump to level 1 For instruction: beq \$t0, \$t1, Label Next instruction is at address 28 and the offset to Label's address is 4 . Next instruction address: 00000000000000000000000000011100 Binary offset: 00000000000000000000000000000100 Enter the last 6 bits of the 32 -bit address the CPU…
For instruction: beq \$t0, \$t1, Label Next instruction is at address 20 and the offset to Label's address is 8. Next instruction address: 00000000000000000000000000010100 Binary offset: 00000000000000000000000000001000 Enter the last 6 bits of the 32-bit address the CPU will…
Jump to level 1 For instruction: beq \$t0, \$t1, Label Next instruction is at address 20 and the offset to Label's address is 8 . Next instruction address: 00000000000000000000000000010100 Binary offset: 00000000000000000000000000001000 Enter the last 6 bits of the 32 -bit address the CPU will…
(iv) Prove that PALINDROME has as many words of length 4 as it does of length 3 .
\( \rightarrow \) (I). lang. of all possible striys having at least one double leffer. Fivite automates
\( 616084.5074706 .9 \times 3 z q y 7 \) Jump to level 1 Compute: \( \mathrm{DM}[7072]=\$ \mathrm{t} 2+\mathrm{DM}[7024] \) \begin{tabular}{|c|c|c|c|c|c|} \hline Iw & \$to \( \hat{\sim} \), & 24 & ( \$to 0 ) & \multicolumn{2}{|r|}{Registers} \\ \hline add \( \hat{\sim} \) & \$t1 \( \hat{} \)…
Example 2.7: Using the Newton-Ralphson method, find the root of the equation \[ f(x)=\cos x-x e^{x}=0 \]
Amazon Vendor phone directory is a web application that allows a user to manage contacts
In a \( J-K E F \) we have \( J=Q \) and \( K=1 \). Assuming the \( E F \) was initially cleared and then clocked for 6 pulses, the sequence at the \( Q \) output will be
of 10 IC\#15: BMI calculator Body mass index \( =\frac{\text { mass }(l b)}{[\text { height }(\text { in })]^{2}} \times 703 \) (feet) \( \square \) Weight: (pounds) Compute BMI Your BMI: Category BMI Categories: Underweight <18.5 Normal weight \( =18.5-24.9 \) Overweight \( =25-29.9 \)…
For the device shown here, let all \( D 0=1, D 1=0, D 2=1, D 3=0 \), both \( S \) inputs be HIGH, and the EN input be LOW. What is the status of the Y out put? Cannot be determined HIGH LOW Don't Care
Which of the following is the example of idempotent law of Boolean Algebra? \( X .0=X \) and \( X .1=X \) \( X . Y=Y . X \) \( X+(Y+Z)=(X+Y)+Z \) \( X+X=X \) and \( X X=X \)
package Q1; /*(Sum the digits in an integer) Write a method that computes * Use the following method header: public static int sumDigits * (Hint: Use the \% operator to extract digits and the / oper * For instance, to extract 4 from 234, use \( 234 \% 10 \) (= 4). To * Use a loop to repeatedly…
``` * that prompts the user to enter an integer the */ public class Q2 { public static void main(String[] args) { java.util.Scanner input = new java.util.Sc System.out.print("Enter an Integer: "); long n = input.nextLong(); System.out.print("The sum of digits…
Bias is the difference between the population mean and the true value? a. False b. True
Q1: A network security system monitors incoming data packets to detect specific patterns indicating potential threats. Design a Deterministic Finite Automaton (DFA) that accepts only those data packets (binary strings) that start with ' 10 ' (indicating a secure handshake initiation) and end…
Q1: A network security system monitors incoming data packets to detect specific patterns indicating potential threats. Design a Deterministic Finite Automaton (DFA) that accepts only those data packets (binary strings) that start with ' 10 ' (indicating a secure handshake initiation) and end…
Q. 12 Count the number of lines in the following. (1) (2) (3) Horizontal line \( \square \) Slanting line Vertical line \( \square \) Curved line Horizontal line \( \square \) Slanting line Vertical line \( \square \) Curved line Horizontal line \( \square \) Slanting line Vertical line…
A 0.6-kg model rocket is loaded with 0.65 kg of rocket fuel. After launch, the rocket rises at a constant rate of 4 m/s, but the rocket fuel is dissipated at a rate of 0.15 kg/s. Find the work done in propelling the rocket 16 m above the ground. (Use 9.8 m/s² for g.) Find the work (in J) needed…
Implement the FEM method in Matlab or Python to solve the following one-dimensional Sturm-Liouville problem with a Neumann BC at one end and a Robin BC at the other end: $$-(pu')' + qu = f, \quad a < x < b,$$ $$\alpha u(a) + \beta u'(a) = \gamma,$$ $$u'(b) = \eta,$$ where $f(x), p(x)$, and…
2. In the Documentation sheet, enter your name and the date in the range B3:B4. 3. Alana is concerned that the list of inventory items contains duplicate records. In the Inventory worksheet, use the Remove Duplicates tool to remove records for which every field value is duplicated. Verify that…
12. Bonus: There are only three active stations in a slotted Aloha network: A, B, and C. Each station generates a frame in a time slot with the corresponding probabilities $p_A$ = 0.2, $p_B$ = 0.3, and $p_C$ = 0.4, respectively. a. What is the probability that any station can send a frame in…
Question 4. The Adventure game, or the Colossal Cave Adventure, was the first interactive fiction game, and was a trend-setting computer game. In this game the computer would print a description of the room you were in, then you could type a short English command or phrase, directing the…
Question 16 From the same digital algorithm we discussed in class and on a quiz below: 0/10 points 1. What solitary change in the algorithm below is needed such that the objective takes an n bit integer, A, and divides it by 19 rather than what is done from the below algorithm we discussed in…
Assignment5B: Dungeon Treasure Map In this assignment you will create a treasure hunt board game. Players will play on a board which resembles a grid like this: The exact dimensions of the grid will be determined by the player. Each square of the grid will either have an 'O' representing an…
1. Which of the following is a random-access protocol? a. CSMA/CD b. Polling c. TDMA 2. Stations in a pure Aloha network send frames of size 1000 bits at the rate of 1 Mbps. What is the vulnerable time for this network? 3. In a pure Aloha network with G = 1/2, how is the throughput affected in…
2. Application A wired network is a set of computers and ethernet wires. Each ethernet wire connects exactly two computers in the network. If there is an ethernet wire between computers C and D, then we can say that C connects to D and D connects to C, so $\forall x \forall y (Connects(x, y)…
Multiple Choice 5 points What does the following program do? student = 1 while student <= 3: total = 0 for score in range(1,4): score = int(input("Enter test score: ")) total += score average = total/3 print("Student", student, "average:", average) student +=…
MATLAB: Rank and Null Space In this activity you will find the rank of a matrix and a basis for the null space of that same matrix. Consider the matrix A. $$A = \begin{bmatrix} -2 & 4 & 2 & -8 & 4 \\ 3 & -6 & -1 & 10 & -8 \\ 1 & -2 & -5 & 8 & 1 \end{bmatrix}$$ %Enter the matrix, storing it in…
Your program must perform the selection sort for n randomly generated numbers. The actual selection sorting part needs to be completed by referencing the online website (https://www.geeksforgeeks.org/selection-sort/). When running the program, you can use the header file ("hpc_helpers.hpp") to…
Lab9B: User Authentication Build a program that authenticates the user login by asking the user for a username and a password. For this program, you are going to use a dictionary to store the user's data. This is not ideal but just for this lab we are going to use the user's username as the key…
Worksheet for C math (Binary, decimal, hex) Instructions: Write each problem using a separate sheet of paper. Then do the math showing ALL your work. Submissions without all the steps will be graded as a zero (0). The following are a couple of helpful hints for y'all to use: Binary 0000 0001…
Lesson 3: Activity 3.1 Objective: Upon completion of this activity, you will be able to... Evaluate the biomedical and industrial engineering application for force systems in 2D and 3D. • Apply vector analysis to determine the magnitude and direction of resultant forces. Student…
Always-Taken Always-Not-Taken 2-bit Global Tournament 45% 55% 90% 95% 98% 1. What is the branch misprediction penalty (in terms of cycles)? In other words, how many cycles are added to the execution times if we have a branch misprediction instead of a correct prediction? 2. For Always-Taken…
Question 3 Part (a): Assignment Feasibility You are given: - $n$ entities $e_1, e_2, ..., e_n$. - $k$ groups $g_1, g_2, ..., g_k$. - For each entity $e_j$, a subset $p_j \subseteq \{g_1, g_2, ..., g_k\}$ with $|p_j| \geq m$, where $m$ is a positive integer. - For each group $g_i$, a capacity…
Assignment Details CIS2100.01 Business Programming II Independent coding ( Create and Score Quiz- Class Lab Project) Please use the instructions on pages 167, 168 and 169 in the attached document to develop a Quiz using an XHTML form and name it ExplorersQuiz.html. Also write the script…
1. One important property that makes DES secure is that the S-boxes are non-linear. In this problem, we verify this property by computing the output of the S-box $S_1$ for several pairs of inputs. Show that $S_1(X_1) \oplus S_1(X_2) \neq S_1(X_1 \oplus X_2)$, where $\oplus$ denotes bitwise XOR,…
Certus Car Rental John Tretow is an account manager for Certus Car Rental, an industry-leading car rental firm that serves customers across the United States and overseas. John is developing a market report for an upcoming sales conference and needs your assistance in summarizing market…
Academic Year 2024-25 Course with code Programming 1 COMP112 Type of Assignment Theory Date of Announcement 2/3/2025 Semester Second Section 227 Marks 10 Deadline 20/3 /2025 ASSIGNMENT PROBLEM STATEMENT Q1. a. What is the difference between a syntax error and a semantic error? b. Explain how an…
Q1) Using behavioral modeling, write a Verilog HDL module that takes in a 4-bit signed number and outputs the following signals: X: input is less than +5 Y: input is a negative number Z: input is equal to 0 Q2) a) Explain the difference between blocking and non-blocking statements. Then show…
CSCI381/CSCI780: Applied Machine Learning for Natural Language Processing (in-person course) Spring 2023 Department: Computer Science Meeting Days, Times, Location: Monday and Wednesday 3:10-4:25 pm, SB B141 Website: https://sites.google.com/view/csci381aapliedML/ Please visit the course…
Lab9A: All math, all the time Write a method `allMath()` which takes in two numbers as inputs and returns a tuple containing the result of each arithmetic operation between both numbers in the following order: addition, subtraction, multiplication, division, floor division, modulus, and power.…
Assignment Instructions You have decided to create SupplementsGalore.com, an online store where you will sell natural supplements of all kinds. You have secured access to a wide variety of supplements, all of which are legal and outside the purview of the Food and Drug and Administration (FDA).…
Assignment6A: Pair Difference Write a method called pairDifferences() that takes in a list of integers and returns a tuple containing the absolute differences between every consecutive pair of numbers in the list. Details: • • • A consecutive pair refers to two numbers that appear next to each…
1. (DoS attacks) (60 points) a) (30 points) You want to perform a DoS attack against some host with a known IP address. You have become aware that a mis-configured sub-network, corresponding to the range w.x.y.z/24, allows for external access to its broadcast address, i.e., traffic sent to…
implemented multiplayer game. Your main objective is to make the game playable between multiple players across a real-time network communication channel. Develop a node.js server using express + socket.io that enables multiple players to connect to and play your multiplayer game. Your browser…
Review: Proper documentation of your sources both informs the reader about the sources of your ideas and prevents plagiarism, or the misrepresentation of those ideas as your own. The Modern Language Association (MLA) rules for documentation include the use of in-text citat specific formatting…
Question 1 (10 points) Which of the following predicate calculus statements is true? $\exists n \in N, \forall m \in N, n \le m$ $\exists n \in N, \forall m \in N, n < m$ $\exists n \in N, \forall m \in N, n \ge m$ $\exists n \in N, \forall m \in N, n > m$ Question 2 (10 points) Which of the…
3. (5 marks) Given a binary tree with the array representation as the table below: Index 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Item P A N T - H - - - - E R - - a) Draw the diagram of the given binary tree. b) How many leaf nodes are there in the tree? c) What is the height of the tree? * Binary…
2. (50 points) The normal distribution is a bell-shaped curve defined by $$y = e^{-x^2}$$ Use the following methods to determine the location of the inflection point of this curve (where the first derivative of the curve is minimum) for positive x. Compare the results. a) Use MATLAB's fminbnd…
Question 6 a) A video is compressed using CBR at a rate of 2Mbps. The video is 2 hours long and is broken up into 5 second chunks. i) How many chunks in the whole video? ii) How many bits are there in each chunk? iii) How long does it take to transmit one chunk over a 10 Mbps link? b) You are…
Example 3: Screen shot of trace 1165:0100 MOU AX, 7777 1165:0103 MOU BX, 2222 1165:0106 SUB AX, BX 1165:0108 int 03 1165:0109 -R AX=0000 BX=0000 CX=0000 DX=0000 SP=FFEE BP=0000 SI=0000 DI=0000 DS=1165 ES 1165 SS 1165 CS 1165 IP=0100 NU UP EI PL NZ NA PO NC 1165:0100 887777 MOU AX,…
G M L H B N F K E A C D Starting from node "A", apply breadth-first search traversing all remaining nodes. If multiple alternative nodes are available at any step, your choice should be based on alphabetical order in your solution, provide a) The output list showing the order in which every…
c) STMDA r0!, {r5, r6, r4, r7, r2} 15=0x20008000 r0=0x20007FEC d) STMDB r0!, {r3, r7, r5, r6, r4} 15=0x20007FF4 r0= 0x20007FEC 7. Suppose r0 = 0x20008000. What are the values of register r3, r4, r5, and r7 after running the following instructions? Assume each instruction is being executed…
Create a class called Name that represents a person's name. The class should have fields representing the person's first name, last name, and middle initial. Add two new methods to the Name class: public String getNormalOrder() Returns the person's name in normal order, with the first name…
Consider the case of a home construction company with two application programs, purchasing (P1) and sales (P2), which are active at the same time. They each need to access two files, inventory (F1) and suppliers (F2), to update daily transactions. The following series of events will cause a…
Using the Hex Dump below, what is the 20-bit address for Interrupt 17h? 0000:0000 68 10 A7 00 8B 01 70 00-16 00 9D 03 8B 01 70 00 h............p. 0000:0010 8B 01 70 00 B9 06 10 02-40 07 10 02 FF 03 10 02 ..p.....@....... 0000:0020 46 07 10 02 0A 04 10 02-3A 00 9D 03 54 00 9D 03…
Question 9 (10 points) Which of the following predicate calculus statements is true? $\exists x \in \mathbb{R}, x < 0 \land x^2 < 0$ $\exists x \in \mathbb{R}, x > 0 \land x^2 < 0$ $\forall x \in \mathbb{R}, x > 0 \rightarrow x^2 > 0$ $\forall x \in \mathbb{R}, x < 0 \rightarrow x^2 <…
You are tasked with training a Perceptron Neural Network (PNN) to classify fruits as either: Apple (0) or Banana (1) Dataset Fruit Type Weight (g) Diameter (cm) Length (cm) Sugar Content (%) Banana 120 4.0 20.0 18.5 Apple 150 7.5 8.0 15.2 Banana 110 3.8 19.5 19.0 Banana 130 4.2 21.0 17.8 Apple…
Lecture Quiz 2 A+ Started: Mar 18 at 6:02pm Quiz Instructions Show Instructions Question 10 2 pts How do TCP and IP differ? TCP verifies the information is reliable, and IP verifies that the data is sent. IP verifies the correct delivery of data in case it is corrupted, where TCP verifies the…
Question 4. (d) As a data scientist at an e-commerce company, you are tasked with developing a machine learning model to predict future sales based on customer activity and seasonal trends. i. Describe at a high level your approach to collecting and preparing the dataset for this task,…
1. For all integers n greater than 2, n!-1 is prime. 2. All naturals n greater than some minimum M (n > M) have the property that $2^n < n!$ 3. Sqrt(2) + Sqrt(3) is irrational. 4. For your translation, let $F_n$ be the $n^{th}$ Fibonacci number where $F_0 = 0, F_1 = 1$ and $F_n = F_{n-1} +…
Q46: 0 points C Programming - Arrays: Answer the following question about arrays in C. Given this C code in a function: int ary[4] = {1, 4, 10, 9}; // ary starts at 0x108 And the following memory layout of ary on the stack (the memory addresses are below): -2 -1 0 1 2 3 4 13 43 1 4 10 9…
Suppose we interviewed fifty people with illness anxiety disorder. Which of the following quotes do you expect we would hear most often? "I know I have some kind of illness, but I haven't been to see a doctor in years." "I know that even when I am sick, nothing terrible is going to happen." "I…
Concepts Review Refer to FIGURE K-23to answer the following questions. FIGURE K-23 ```css body { margin: 0 auto; font-family: Arial, Helvetica, sans-serif; background: #7eccec; background: linear-gradient (#7eccec, white) no-repeat; } .sun-shape { width: 200px; height:…
1. Gradient Descent Update Rule: For a machine learning model with initial weights w = [0.5, -0.5] and bias b = 0.1 learning rate a = $$X = \begin{bmatrix} 1 & 3 \\ 2 & 2 \\ -1 & -2 \end{bmatrix}, y = \begin{bmatrix} 1 \\ 0 \\ 1 \end{bmatrix}$$ 0.1, and data points , perform one gradient…
Example 6.5 Find the $\frac{q\bar{c}}{2U_1}$ derivative $\partial F_{A_z}/\partial (\frac{q\bar{c}}{2U_1})$ for the F-4C aircraft at the same flight conditions as those of Example 6.2. $C_{L_q}$ is equal to 1.80. If $q$ is 2.5 deg/s, find the perturbed aero force along the $z$ stability axis…
Reasearch, and Information Literacy Skills worksheet - Spring2024.docx CSS 101-Spring 2024 Student: Instructor: Livia Neubert Developing Library, Research, and Information Literacy skills Person/Work Being Researched: Outcomes: Upon successful completion of this session, you will be able to: -…
Given the dimensional lattice in the figure: all time item location supplier time, item fime, location Hem location location, supplier : time, supplier item, supplier fime location, яфрые time, item, location time,item, supplier item, location, supplier time, item, location, supplier 1) Show a…
Question 3: The Password Validator A security analyst, Arjun, is designing a password strength checker using logical and membership operators. a. Explain the usage of logical (and, or, not) and membership (in, not in) operators in Python. b. Write a Python function that validates a password…
PART I. (Basic Concepts) Fill in missing words (40 Points [1] ______ define format, order of messages sent and received among netwo and actions taken on message transmission, receipt [2] ______ includes hosts: clients and servers ( or data centers). [3] ______ includes wired, wireless…
Q1 (10 points) Part 1) The following CFGs has a production using the symbol $\epsilon$ and yet $\epsilon$ is not a word in the languages. Using the algorithm of eliminating $\epsilon$-productions, show that there are other CFGs for these languages that do not use $\epsilon$-productions: 1. (2.5…
STU ID STU LNAME STU MAJOR DEPT CODE DEPT NAME DEPT TEL DIVISION NAME ADVISOR LNAME ADVISOR OFFICE ADVISOR BLDG ADVISOR TEL STU GPA STU HOURS STU CLASS LEVEL S3459087 Jackson Business BUSN Business 3356 Business Admin Grisham F201 F Building 2388 3.9 22 Freshman S3032381 Samuels Economics ECON…
CP 321 - Data Visualization Assignment 6 Check dropbox for due date Please check and follow the submission instructions at the end of this document As stated in the syllabus, late submissions are not accepted. Tools/Software Requirement • Use Numpy, Pandas, Dash and Plotly libraries to complete…
Problem 1 The symbolic function A(x,y) is defined as: $$A(x, y) = \sin(x * y) + \cos(x * y)$$ (i) Use the graphical function "ezsurf" to plot the function A(x,y). (ii) Use the graphical function "ezcontour" to plot the contours of the function A(x,y). Take (x,y) within the interval…
Quiz Instructions This test will include chapters: 9, 10, and 11. The required access code is exam 3 (The access code is all lower case. I suggest coping and pasting the access code to avoid typos. Question 57 Which of the following best describes the insertion of the extensor digitorum? It…
Question 2 Consider a flow network with source s, sink t, and the following edges: 4 2 4 10 10 8 2 6 S 3 5 t 10 9 10 • Draw the first, second, and final residual graph Gf using the scaled version of Ford-Fulkerson algorithm corresponding to the max flow prob- lem. Give the value of A for the…
Which of the following statements is true regarding encryption and content filtering appliances? A The encryption and content filtering appliances modulate an analog carrier signal to encrypt digital information and demodulate the signal to decrypt the transmitted information. B These…
Why is it important that Ibsen establishes the details of the props, such as the "well-bound books," before readers become aware of the relationship between Nora and Helmer? a Ibsen wants to convey that Nora and Helmer are people who love music and reading. b Ibsen wants to convey that Helmer…
Please use the drag-and-drop environment to label what each of the indicated layers of the giant planets is made of. (The numbers show the distance from the center of the planet in thousands of kilometers.) Jupiter Saturn Uranus Neptune Molecular Hydrogen Metallic…
CS2123 - Data Structures Quiz - Stacks, Queues, and Priority Queues Name: Consider the following function: ```java void mystery(int num) { int current; Stack<Integer> stk = new Stack<Integer>(); Queue<Integer> que = new LinkedList<Integer>(); while (num > 0) { …
Chapter 9 Video Quiz Objective: to identify stages and terms related to Piaget's theory of cognitive development Context: This assignment provides you with an opportunity to identify Plaget's stages and theoretical concepts using real world examples Preparation: Watch the video that is linked…
Question 3: Dijkstra's Algorithm Consider the following undirected, weighted graph: B 5 H 4 2 3 2 1 7 5 D 1 E A 1 F 4 2 4 G Step through Dijkstra's Algorithm to calculate the shortest paths from A to every other vertex. Make a table listing: • The vertices in the order they are visited by the…
You are designing an update to your client's wireless network. The existing wireless network uses 802.11b equipment, which your client complains runs too slowly. She wants to upgrade the network to run up to 600 Mbps. Due to budget constraints, your client wants to upgrade only the wireless…
Instructions Assign the credit score scale descriptor by using a nested IF function using Assign the credit score scale descriptor by using an IFS function Penalty Points Did not use a 3D reference to the other sheet Forgot to enter your name Points Possible 5 5 Credit Score Categories Credit…
4. The N-Queens problem: • Implement a backtracking solution to solve the N-Queens problem. • Implement a predicate to count the number of solutions to the N-Queens problem. • Requirements: o Define n_queens(N, Solution), where Solution is a list of column positions for queens in an N×N…
The joint probability density function (pdf) of X and Y is given by $$f_{XY}(x, y) = A (1-x) e^{-y}, \quad 0 < x < 1, \quad 0 < y < \infty$$ (a) Find the constant A. (b) Find the marginal pdfs of X and Y. (c) Determine if the random variables X and Y are independent, correlated, or orthogonal.
(M1) This problem asks about the Map Coloring Problem. Each region must be colored one of Red (R), Green (G), or Blue (B). Neighboring regions must be a different color. The map (left) and constraint graph (right) are below. C has been assigned the value B and constraint propagation has been…
Amazon Vendor phone directory is a web application that allows a user to manage contacts
A 0.6-kg model rocket is loaded with 0.65 kg of rocket fuel. After launch, the rocket rises at a constant rate of 4 m/s, but the rocket fuel is dissipated at a rate of 0.15 kg/s. Find the work done in propelling the rocket 16 m above the ground. (Use 9.8 m/s² for g.) Find the work (in J) needed…
Implement the FEM method in Matlab or Python to solve the following one-dimensional Sturm-Liouville problem with a Neumann BC at one end and a Robin BC at the other end: $$-(pu')' + qu = f, \quad a < x < b,$$ $$\alpha u(a) + \beta u'(a) = \gamma,$$ $$u'(b) = \eta,$$ where $f(x), p(x)$, and…
2. In the Documentation sheet, enter your name and the date in the range B3:B4. 3. Alana is concerned that the list of inventory items contains duplicate records. In the Inventory worksheet, use the Remove Duplicates tool to remove records for which every field value is duplicated. Verify that…
12. Bonus: There are only three active stations in a slotted Aloha network: A, B, and C. Each station generates a frame in a time slot with the corresponding probabilities $p_A$ = 0.2, $p_B$ = 0.3, and $p_C$ = 0.4, respectively. a. What is the probability that any station can send a frame in…
Question 4. The Adventure game, or the Colossal Cave Adventure, was the first interactive fiction game, and was a trend-setting computer game. In this game the computer would print a description of the room you were in, then you could type a short English command or phrase, directing the…
Question 16 From the same digital algorithm we discussed in class and on a quiz below: 0/10 points 1. What solitary change in the algorithm below is needed such that the objective takes an n bit integer, A, and divides it by 19 rather than what is done from the below algorithm we discussed in…
Assignment5B: Dungeon Treasure Map In this assignment you will create a treasure hunt board game. Players will play on a board which resembles a grid like this: The exact dimensions of the grid will be determined by the player. Each square of the grid will either have an 'O' representing an…
1. Which of the following is a random-access protocol? a. CSMA/CD b. Polling c. TDMA 2. Stations in a pure Aloha network send frames of size 1000 bits at the rate of 1 Mbps. What is the vulnerable time for this network? 3. In a pure Aloha network with G = 1/2, how is the throughput affected in…
2. Application A wired network is a set of computers and ethernet wires. Each ethernet wire connects exactly two computers in the network. If there is an ethernet wire between computers C and D, then we can say that C connects to D and D connects to C, so $\forall x \forall y (Connects(x, y)…
Multiple Choice 5 points What does the following program do? student = 1 while student <= 3: total = 0 for score in range(1,4): score = int(input("Enter test score: ")) total += score average = total/3 print("Student", student, "average:", average) student +=…
MATLAB: Rank and Null Space In this activity you will find the rank of a matrix and a basis for the null space of that same matrix. Consider the matrix A. $$A = \begin{bmatrix} -2 & 4 & 2 & -8 & 4 \\ 3 & -6 & -1 & 10 & -8 \\ 1 & -2 & -5 & 8 & 1 \end{bmatrix}$$ %Enter the matrix, storing it in…
Your program must perform the selection sort for n randomly generated numbers. The actual selection sorting part needs to be completed by referencing the online website (https://www.geeksforgeeks.org/selection-sort/). When running the program, you can use the header file ("hpc_helpers.hpp") to…
Lab9B: User Authentication Build a program that authenticates the user login by asking the user for a username and a password. For this program, you are going to use a dictionary to store the user's data. This is not ideal but just for this lab we are going to use the user's username as the key…
Worksheet for C math (Binary, decimal, hex) Instructions: Write each problem using a separate sheet of paper. Then do the math showing ALL your work. Submissions without all the steps will be graded as a zero (0). The following are a couple of helpful hints for y'all to use: Binary 0000 0001…
Lesson 3: Activity 3.1 Objective: Upon completion of this activity, you will be able to... Evaluate the biomedical and industrial engineering application for force systems in 2D and 3D. • Apply vector analysis to determine the magnitude and direction of resultant forces. Student…
Always-Taken Always-Not-Taken 2-bit Global Tournament 45% 55% 90% 95% 98% 1. What is the branch misprediction penalty (in terms of cycles)? In other words, how many cycles are added to the execution times if we have a branch misprediction instead of a correct prediction? 2. For Always-Taken…
Question 3 Part (a): Assignment Feasibility You are given: - $n$ entities $e_1, e_2, ..., e_n$. - $k$ groups $g_1, g_2, ..., g_k$. - For each entity $e_j$, a subset $p_j \subseteq \{g_1, g_2, ..., g_k\}$ with $|p_j| \geq m$, where $m$ is a positive integer. - For each group $g_i$, a capacity…
Assignment Details CIS2100.01 Business Programming II Independent coding ( Create and Score Quiz- Class Lab Project) Please use the instructions on pages 167, 168 and 169 in the attached document to develop a Quiz using an XHTML form and name it ExplorersQuiz.html. Also write the script…
1. One important property that makes DES secure is that the S-boxes are non-linear. In this problem, we verify this property by computing the output of the S-box $S_1$ for several pairs of inputs. Show that $S_1(X_1) \oplus S_1(X_2) \neq S_1(X_1 \oplus X_2)$, where $\oplus$ denotes bitwise XOR,…
Certus Car Rental John Tretow is an account manager for Certus Car Rental, an industry-leading car rental firm that serves customers across the United States and overseas. John is developing a market report for an upcoming sales conference and needs your assistance in summarizing market…
Academic Year 2024-25 Course with code Programming 1 COMP112 Type of Assignment Theory Date of Announcement 2/3/2025 Semester Second Section 227 Marks 10 Deadline 20/3 /2025 ASSIGNMENT PROBLEM STATEMENT Q1. a. What is the difference between a syntax error and a semantic error? b. Explain how an…
Q1) Using behavioral modeling, write a Verilog HDL module that takes in a 4-bit signed number and outputs the following signals: X: input is less than +5 Y: input is a negative number Z: input is equal to 0 Q2) a) Explain the difference between blocking and non-blocking statements. Then show…
CSCI381/CSCI780: Applied Machine Learning for Natural Language Processing (in-person course) Spring 2023 Department: Computer Science Meeting Days, Times, Location: Monday and Wednesday 3:10-4:25 pm, SB B141 Website: https://sites.google.com/view/csci381aapliedML/ Please visit the course…
Lab9A: All math, all the time Write a method `allMath()` which takes in two numbers as inputs and returns a tuple containing the result of each arithmetic operation between both numbers in the following order: addition, subtraction, multiplication, division, floor division, modulus, and power.…
Assignment Instructions You have decided to create SupplementsGalore.com, an online store where you will sell natural supplements of all kinds. You have secured access to a wide variety of supplements, all of which are legal and outside the purview of the Food and Drug and Administration (FDA).…
Assignment6A: Pair Difference Write a method called pairDifferences() that takes in a list of integers and returns a tuple containing the absolute differences between every consecutive pair of numbers in the list. Details: • • • A consecutive pair refers to two numbers that appear next to each…
1. (DoS attacks) (60 points) a) (30 points) You want to perform a DoS attack against some host with a known IP address. You have become aware that a mis-configured sub-network, corresponding to the range w.x.y.z/24, allows for external access to its broadcast address, i.e., traffic sent to…
implemented multiplayer game. Your main objective is to make the game playable between multiple players across a real-time network communication channel. Develop a node.js server using express + socket.io that enables multiple players to connect to and play your multiplayer game. Your browser…
Review: Proper documentation of your sources both informs the reader about the sources of your ideas and prevents plagiarism, or the misrepresentation of those ideas as your own. The Modern Language Association (MLA) rules for documentation include the use of in-text citat specific formatting…
Question 1 (10 points) Which of the following predicate calculus statements is true? $\exists n \in N, \forall m \in N, n \le m$ $\exists n \in N, \forall m \in N, n < m$ $\exists n \in N, \forall m \in N, n \ge m$ $\exists n \in N, \forall m \in N, n > m$ Question 2 (10 points) Which of the…
3. (5 marks) Given a binary tree with the array representation as the table below: Index 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Item P A N T - H - - - - E R - - a) Draw the diagram of the given binary tree. b) How many leaf nodes are there in the tree? c) What is the height of the tree? * Binary…
2. (50 points) The normal distribution is a bell-shaped curve defined by $$y = e^{-x^2}$$ Use the following methods to determine the location of the inflection point of this curve (where the first derivative of the curve is minimum) for positive x. Compare the results. a) Use MATLAB's fminbnd…
Question 6 a) A video is compressed using CBR at a rate of 2Mbps. The video is 2 hours long and is broken up into 5 second chunks. i) How many chunks in the whole video? ii) How many bits are there in each chunk? iii) How long does it take to transmit one chunk over a 10 Mbps link? b) You are…
Example 3: Screen shot of trace 1165:0100 MOU AX, 7777 1165:0103 MOU BX, 2222 1165:0106 SUB AX, BX 1165:0108 int 03 1165:0109 -R AX=0000 BX=0000 CX=0000 DX=0000 SP=FFEE BP=0000 SI=0000 DI=0000 DS=1165 ES 1165 SS 1165 CS 1165 IP=0100 NU UP EI PL NZ NA PO NC 1165:0100 887777 MOU AX,…
G M L H B N F K E A C D Starting from node "A", apply breadth-first search traversing all remaining nodes. If multiple alternative nodes are available at any step, your choice should be based on alphabetical order in your solution, provide a) The output list showing the order in which every…
c) STMDA r0!, {r5, r6, r4, r7, r2} 15=0x20008000 r0=0x20007FEC d) STMDB r0!, {r3, r7, r5, r6, r4} 15=0x20007FF4 r0= 0x20007FEC 7. Suppose r0 = 0x20008000. What are the values of register r3, r4, r5, and r7 after running the following instructions? Assume each instruction is being executed…
Create a class called Name that represents a person's name. The class should have fields representing the person's first name, last name, and middle initial. Add two new methods to the Name class: public String getNormalOrder() Returns the person's name in normal order, with the first name…
Consider the case of a home construction company with two application programs, purchasing (P1) and sales (P2), which are active at the same time. They each need to access two files, inventory (F1) and suppliers (F2), to update daily transactions. The following series of events will cause a…
Using the Hex Dump below, what is the 20-bit address for Interrupt 17h? 0000:0000 68 10 A7 00 8B 01 70 00-16 00 9D 03 8B 01 70 00 h............p. 0000:0010 8B 01 70 00 B9 06 10 02-40 07 10 02 FF 03 10 02 ..p.....@....... 0000:0020 46 07 10 02 0A 04 10 02-3A 00 9D 03 54 00 9D 03…
Question 9 (10 points) Which of the following predicate calculus statements is true? $\exists x \in \mathbb{R}, x < 0 \land x^2 < 0$ $\exists x \in \mathbb{R}, x > 0 \land x^2 < 0$ $\forall x \in \mathbb{R}, x > 0 \rightarrow x^2 > 0$ $\forall x \in \mathbb{R}, x < 0 \rightarrow x^2 <…
You are tasked with training a Perceptron Neural Network (PNN) to classify fruits as either: Apple (0) or Banana (1) Dataset Fruit Type Weight (g) Diameter (cm) Length (cm) Sugar Content (%) Banana 120 4.0 20.0 18.5 Apple 150 7.5 8.0 15.2 Banana 110 3.8 19.5 19.0 Banana 130 4.2 21.0 17.8 Apple…
Lecture Quiz 2 A+ Started: Mar 18 at 6:02pm Quiz Instructions Show Instructions Question 10 2 pts How do TCP and IP differ? TCP verifies the information is reliable, and IP verifies that the data is sent. IP verifies the correct delivery of data in case it is corrupted, where TCP verifies the…
Question 4. (d) As a data scientist at an e-commerce company, you are tasked with developing a machine learning model to predict future sales based on customer activity and seasonal trends. i. Describe at a high level your approach to collecting and preparing the dataset for this task,…
1. For all integers n greater than 2, n!-1 is prime. 2. All naturals n greater than some minimum M (n > M) have the property that $2^n < n!$ 3. Sqrt(2) + Sqrt(3) is irrational. 4. For your translation, let $F_n$ be the $n^{th}$ Fibonacci number where $F_0 = 0, F_1 = 1$ and $F_n = F_{n-1} +…
Q46: 0 points C Programming - Arrays: Answer the following question about arrays in C. Given this C code in a function: int ary[4] = {1, 4, 10, 9}; // ary starts at 0x108 And the following memory layout of ary on the stack (the memory addresses are below): -2 -1 0 1 2 3 4 13 43 1 4 10 9…
Suppose we interviewed fifty people with illness anxiety disorder. Which of the following quotes do you expect we would hear most often? "I know I have some kind of illness, but I haven't been to see a doctor in years." "I know that even when I am sick, nothing terrible is going to happen." "I…
Concepts Review Refer to FIGURE K-23to answer the following questions. FIGURE K-23 ```css body { margin: 0 auto; font-family: Arial, Helvetica, sans-serif; background: #7eccec; background: linear-gradient (#7eccec, white) no-repeat; } .sun-shape { width: 200px; height:…
1. Gradient Descent Update Rule: For a machine learning model with initial weights w = [0.5, -0.5] and bias b = 0.1 learning rate a = $$X = \begin{bmatrix} 1 & 3 \\ 2 & 2 \\ -1 & -2 \end{bmatrix}, y = \begin{bmatrix} 1 \\ 0 \\ 1 \end{bmatrix}$$ 0.1, and data points , perform one gradient…
Example 6.5 Find the $\frac{q\bar{c}}{2U_1}$ derivative $\partial F_{A_z}/\partial (\frac{q\bar{c}}{2U_1})$ for the F-4C aircraft at the same flight conditions as those of Example 6.2. $C_{L_q}$ is equal to 1.80. If $q$ is 2.5 deg/s, find the perturbed aero force along the $z$ stability axis…
Reasearch, and Information Literacy Skills worksheet - Spring2024.docx CSS 101-Spring 2024 Student: Instructor: Livia Neubert Developing Library, Research, and Information Literacy skills Person/Work Being Researched: Outcomes: Upon successful completion of this session, you will be able to: -…
Given the dimensional lattice in the figure: all time item location supplier time, item fime, location Hem location location, supplier : time, supplier item, supplier fime location, яфрые time, item, location time,item, supplier item, location, supplier time, item, location, supplier 1) Show a…
Question 3: The Password Validator A security analyst, Arjun, is designing a password strength checker using logical and membership operators. a. Explain the usage of logical (and, or, not) and membership (in, not in) operators in Python. b. Write a Python function that validates a password…
PART I. (Basic Concepts) Fill in missing words (40 Points [1] ______ define format, order of messages sent and received among netwo and actions taken on message transmission, receipt [2] ______ includes hosts: clients and servers ( or data centers). [3] ______ includes wired, wireless…
Q1 (10 points) Part 1) The following CFGs has a production using the symbol $\epsilon$ and yet $\epsilon$ is not a word in the languages. Using the algorithm of eliminating $\epsilon$-productions, show that there are other CFGs for these languages that do not use $\epsilon$-productions: 1. (2.5…
STU ID STU LNAME STU MAJOR DEPT CODE DEPT NAME DEPT TEL DIVISION NAME ADVISOR LNAME ADVISOR OFFICE ADVISOR BLDG ADVISOR TEL STU GPA STU HOURS STU CLASS LEVEL S3459087 Jackson Business BUSN Business 3356 Business Admin Grisham F201 F Building 2388 3.9 22 Freshman S3032381 Samuels Economics ECON…
CP 321 - Data Visualization Assignment 6 Check dropbox for due date Please check and follow the submission instructions at the end of this document As stated in the syllabus, late submissions are not accepted. Tools/Software Requirement • Use Numpy, Pandas, Dash and Plotly libraries to complete…
Problem 1 The symbolic function A(x,y) is defined as: $$A(x, y) = \sin(x * y) + \cos(x * y)$$ (i) Use the graphical function "ezsurf" to plot the function A(x,y). (ii) Use the graphical function "ezcontour" to plot the contours of the function A(x,y). Take (x,y) within the interval…
Quiz Instructions This test will include chapters: 9, 10, and 11. The required access code is exam 3 (The access code is all lower case. I suggest coping and pasting the access code to avoid typos. Question 57 Which of the following best describes the insertion of the extensor digitorum? It…
Question 2 Consider a flow network with source s, sink t, and the following edges: 4 2 4 10 10 8 2 6 S 3 5 t 10 9 10 • Draw the first, second, and final residual graph Gf using the scaled version of Ford-Fulkerson algorithm corresponding to the max flow prob- lem. Give the value of A for the…
Which of the following statements is true regarding encryption and content filtering appliances? A The encryption and content filtering appliances modulate an analog carrier signal to encrypt digital information and demodulate the signal to decrypt the transmitted information. B These…
Why is it important that Ibsen establishes the details of the props, such as the "well-bound books," before readers become aware of the relationship between Nora and Helmer? a Ibsen wants to convey that Nora and Helmer are people who love music and reading. b Ibsen wants to convey that Helmer…
Please use the drag-and-drop environment to label what each of the indicated layers of the giant planets is made of. (The numbers show the distance from the center of the planet in thousands of kilometers.) Jupiter Saturn Uranus Neptune Molecular Hydrogen Metallic…
CS2123 - Data Structures Quiz - Stacks, Queues, and Priority Queues Name: Consider the following function: ```java void mystery(int num) { int current; Stack<Integer> stk = new Stack<Integer>(); Queue<Integer> que = new LinkedList<Integer>(); while (num > 0) { …
Chapter 9 Video Quiz Objective: to identify stages and terms related to Piaget's theory of cognitive development Context: This assignment provides you with an opportunity to identify Plaget's stages and theoretical concepts using real world examples Preparation: Watch the video that is linked…
Question 3: Dijkstra's Algorithm Consider the following undirected, weighted graph: B 5 H 4 2 3 2 1 7 5 D 1 E A 1 F 4 2 4 G Step through Dijkstra's Algorithm to calculate the shortest paths from A to every other vertex. Make a table listing: • The vertices in the order they are visited by the…
You are designing an update to your client's wireless network. The existing wireless network uses 802.11b equipment, which your client complains runs too slowly. She wants to upgrade the network to run up to 600 Mbps. Due to budget constraints, your client wants to upgrade only the wireless…
Instructions Assign the credit score scale descriptor by using a nested IF function using Assign the credit score scale descriptor by using an IFS function Penalty Points Did not use a 3D reference to the other sheet Forgot to enter your name Points Possible 5 5 Credit Score Categories Credit…
4. The N-Queens problem: • Implement a backtracking solution to solve the N-Queens problem. • Implement a predicate to count the number of solutions to the N-Queens problem. • Requirements: o Define n_queens(N, Solution), where Solution is a list of column positions for queens in an N×N…
The joint probability density function (pdf) of X and Y is given by $$f_{XY}(x, y) = A (1-x) e^{-y}, \quad 0 < x < 1, \quad 0 < y < \infty$$ (a) Find the constant A. (b) Find the marginal pdfs of X and Y. (c) Determine if the random variables X and Y are independent, correlated, or orthogonal.
(M1) This problem asks about the Map Coloring Problem. Each region must be colored one of Red (R), Green (G), or Blue (B). Neighboring regions must be a different color. The map (left) and constraint graph (right) are below. C has been assigned the value B and constraint propagation has been…
1
2
3
4
5