• Home
  • Ask directory
  • AP CS
  • March 2025
  • 1

AP CS Q&A Archive of March 1, 2025

Select Question

March 1 of 2025

3. (10 points) Given the following feedback system with a relay nonlinearity \( G(s)=\frac{3}{(s+1)^{3}} \) and \( u= \) \( \operatorname{sgn}(e) \) where the 'sgn' function is defined as \( u=\left\{\begin{array}{c}1 \text { if } e \geq 0 \\ -1 \text { if } e \leq 0\end{array}\right\} \),…
HW Score: 60.67\%, 15.17 of Question 17, 11.1.26 25 points Points: 0 of 1 Save One card is drawn from a standard 52 -card deck. Determine the probability that the card drawn is a 3 . The probability that the card drawn is a 3 is \( \square \) (Type an integer or a simplified fraction.)
2. Given system with state space equations \[ \begin{array}{l} \dot{x_{1}}=-x_{1}\left(x_{1}^{2}+x_{2}^{2}\right)+x_{2} \\ \dot{x_{2}}=-x_{1}-x_{2}\left(x_{1}^{2}+x_{2}^{2}\right) \end{array} \] a. (5 pts) Linearize the system at the equilibrium point \( x_{1}=0, x_{2}=0 \). b. (5 pts)…
Use the present value formula to determine the amount to be invested now, or the present value needed. The desired accumulated amount is \( \$ 85,000 \) after 14 years invested in an account with \( 7 \% \) interest compounded semiannually. The amount to be invested now, or the present value…
1. Given system \( \ddot{x}+\dot{x} x+\sin (x)=u(t) \) a. (5 pts) Write this in state-space form of \( \dot{\mathbf{x}}=\mathbf{f}(\mathbf{x}) \) b. (5 pts) Determine the equilibrium points for the system when \( u(t)=\frac{1}{\sqrt{2}} \) and \( -\pi \leq x \leq \pi \). c. (5 pts) Linearize…
(ii) Students of under graduation submitted a case study on "Understanding the Probability of Left-Handedness in Children Based on Parental Handedness". Following Recent studies suggest that roughly \( 12 \% \) of the world population is left-handed. Depending on the parents' handedness, the…
\( 52^{\circ} \) min Final assessment 6 Questions - All Questions Are Required Arrange the following types of computer networks according to their area from the smallest to the most widespread Metropolitan Area Network Personal Area Network Wide Area Network \( \square \) Local Area…
\( \bullet 2 \) An electric field given by \( \vec{E}=4.0 \hat{\mathrm{i}}-3.0\left(y^{2}+2.0\right) \hat{\mathrm{j}} \) pierces a Gaussian cube of edge length 2.0 m and positioned as shown in Fig. 23-7. (The magnitude \( E \) is in newtons per coulomb and the position \( x \) is in meters.)…
Question 8 1 pts Which of the following is not considered descriptive statistics? Range Standard Deviation Confidence Intervals Mean Question 9 1 pts
b. The next three terms of \( 1,7,13,19,25 \) are \( \square \) \( \square \) \( \square \) , and \( \square \) . (Use ascending ordec) \( \sqrt{1} \) \( \sqrt[2]{1} \) !. ( \( \mathbf{0}, 1 \) ) More Clear all 2 \( \operatorname{m} \frac{1}{4} \) DII \( D \) F4 F6 F7 F8 F9 \% \& 5 6 7 8 ( 9 \(…
\begin{tabular}{|c|c|c|c|c|c|} \hline \multirow[t]{2}{*}{\[ \begin{array}{l} \text { AME } \\ \text { SCHOOLNLLC } \end{array} \]} & \multicolumn{5}{|l|}{ACTIVIT SHEET FOR LEARMMO STRUDAO} \\ \hline & \multicolumn{5}{|l|}{-} \\ \hline LEVEL & \( \square \) Basto Lleray & date & & & \\ \hline…
응 IBM Open e-L... 03.yourlearning.ibm.com EXIT COURSE While visiting a foreign country, you use a money conversion application on your mobile device. You can enter the amount of your currency and then view the amount in the local currency. However, after you enter the amount in the app, the…
ALTERNATIVE LEARRING SYSTEM netrivr munt ron Leveeno sthue * ovornL ormued 1. CONCEPT NOTES Excel provides you different types of charts that suit your purpose. Based on the type of data, you can create a chart. You can also change the chart type later. EXERCISES Given the data below, make…
2] Use the summation formulas (Appendix A) to calculate the exact value of the sums below. In each case then calculate the approximation that still contains the multiplicative factor, and then the order of growth theta. c. \( \sum_{i=3}^{n+1} 1 \)
Question 1: In class we discussed the following rule for drawing call graphs for Java: - When an interface method is invoked, we conservatively assume that it can resolve to the named method in any class that implements the interface (*) In this question, we will try to find security issues in…
StudentID StudentFirst StudentLast StudentMajor StudentClass DepartmentID DepartmentName DepartmentChair DepartmentLocation CourseID CourseName Credits Term Grade EnrollmentDate S1 John Smith Computer Science Sophomore D1 Computer Science Dept Dr. Smith Building A C1 Intro to Programming 3 Fall…
Q1. Write a C++ program to satisfy all the following requirements: The program does not accept any input. It uses the 8 digits of your student number to initialize 8 different variables of type int, one for each variable. You are not allowed to use any constant in your program except the…
Question 1: Pointer analysis reasons about memory locations and allocation sites. It is often used as a support analysis for client analyses such as call graph construction algorithms or taint analyses. The two main types of pointer analysis are points-to and alias analyses. Points-to analyses…
Project Description: In this project you implement an ArrayStack ADT and use the stack for implementing a method for evaluation of arithmetic expressions in Java. Use the arithmetic expression evaluation algorithm discussed in the class. See the presentation slides 19-22 in the 4 - Stacks.ppt…
Week 3 Discussion Mar 27 - Apr 2 Must post first. Subscribe Discussion Assignment Instructions: For this assignment, select one of the programming projects listed in Chapter 11 or Chapter 12 of the Liang textbook, which are designed for automatic grading. Steps to Follow: 1. Implementation:…
7506 1201 MCKR 3630 PGBE 3ZCF YOYQ 3982 6976 2849 7ITF 9901 SPZF UXWQ 9418 AQKZ 8043 0056 2849 TORJ 7700 HCWN R6TL 3718 VBEP QGDR IOMN 5185 HZCG 585Q 6179 BMHK SSOU YYIM FLOY 6ORP YJGQ 3ZWR C1YV AUAL UATS GIPL HIUS TESH 8583 1. Consider a multi-level index with the above values, a B tree, that…
Problem 1 (25 points) You are standing at the bottom of a staircase with n steps. You want to reach the top of the staircase, but you can only take 1 step or 2 steps at a time. The question is: How many different ways can you reach the top of the staircase? To help you understand, let's…
Write a calculator web app in JavaScript, HTML, and CSS with the following features: 1. Has an output field that represents the numbers input or the answer 2. Has number buttons representing all numbers (0-9) 3. Has a decimal (.) button to make decimals that can only be used once (e.g. 3.5 –…
Review: Hashing Techniques 1. A hashing function converts a large to a small . 2. A occurs when two keys hash to the same address. 3. For an open hashing scheme, the records within each bucket are stored in key order ( true / false ). 4. For an open hashing scheme, the most recently…
EXERCISES 1. In what ways are hardware and software different? In what ways are they the same? 2. a) How many milliseconds (ms) are in 1 second? 3. b) How many microseconds (us) are in 1 second? 4. c) How many nanoseconds (ns) are in 1 millisecond? 5. d) How many microseconds are in 1…
Definition 1. The ones' complement of a binary number is the value obtained by inverting all the bits in the binary representation of the number. 10pts Give a Turing machine that accepts strings of finite length written in {0,1}, if and only these strings have the form $$L = \{xz | z \text{ is…
Find the minimum product of sums for the following function. Each drop down menu has a number of choices. You must select an answer from each drop down menu. The choices include possible terms in the function. Another choice is "none", and should be used when none of the terms from that drop…
4.Designing an Inner Product Accelerator You are tasked with designing an inner product accelerator that computes the dot product of two 8-element vectors $A \cdot B = \Sigma_i A[i] * B[i]$ using a MAC (Multiply-Accumulate) unit. Below shows how a MAC works. For this design, assume you have a…
Problem 8 (+6% pts) To receive credit for this, your algorithm must run in time $\theta(n^2 \log n)$. Write the method below which takes an n by n two dimensional array A (rows and columns indexed from 0 to n - 1) and determines if some value appears more than once in A. If so, the method…
Assignment 7-2 Add data validation to the simple calculator In this exercise, you'll add data validation to the Simple Calculator form. Simple Calculator Operand 1: 256 Operator: Π X Operand 2 Result Calculate Exit Entry Ener Operator must be or X 1. Open the SimpleCalculator project in the…
You are allowed to write your project in C/C++/Java/Python but you ARE NOT allowed to use Yacc, Bison, or any other items similar that assists in the creation of compilers. This includes NO Regular Expression libraries, The scope of this project is to understand how lexical analysis works and…
Question 1: Single Layer Perceptron A small electronics company wants to automate the classification of defective and non-defective products based on sensor readings. Each product is tested using two sensors that measure voltage and current. The company has historical data indicating whether a…
Question 4: AI-Powered Puzzle Solver for Educational Game You are an Al engineer at an educational technology company developing an interactive puzzle-solving game for students. The game features various puzzle types, including the classic 8-puzzle. Your task is to implement an AI system that…
Question 5 0. 25 pts The following questions all refer to Scoreboarding on the CDC6600 and the following commands: LD F6 34(R2) LD F2 45(R3) FMULT FO, F2, F4 FADD F8, F6, F2 FDIV F10, FO, F6 Instructions can be issued as long as the FU isn't busy, but RO cannot be completed until the operands…
Problem 2. The solution for vertical displacement, Y(x, y), with respect to the horizontal of a vibrating string String $Y(x,t) = \sum_{n=1}^{\infty} a_n sin \frac{n\pi x}{L} cos \frac{n\pi ct}{L}$ $a_n = \frac{2}{L} \int_0^L f(x) sin \frac{n\pi x}{L} dx$ Hint: You will need to define the…
Input Next state Output Current state P F G Q2*Q1*Q0* E* W* G D2 D1 DO 000 (SO) 0 X X 000 (SO) 0 0 0 0 0 0 000 (SO) 1 1 X 100 (S4) (05) 000 1 0 X 001 (51) 0 0 0 1 1 0 0 0 0 0 0 1 001 (51) 1 1 X 100 (54) 0 0 1 1 0 0 001 (S1) 1 0 X 010 (52) 1 0 0 0 1 0 010 (S2) 1 1 X 100 (S4) 0 0 1 1 0 0 010…
Question 1: In class we discussed the following rule for drawing call graphs for Java: - When an interface method is invoked, we conservatively assume that it can resolve to the named method in any class that implements the interface (*) In this question, we will try to find security issues in…
StudentID StudentFirst StudentLast StudentMajor StudentClass DepartmentID DepartmentName DepartmentChair DepartmentLocation CourseID CourseName Credits Term Grade EnrollmentDate S1 John Smith Computer Science Sophomore D1 Computer Science Dept Dr. Smith Building A C1 Intro to Programming 3 Fall…
Q1. Write a C++ program to satisfy all the following requirements: The program does not accept any input. It uses the 8 digits of your student number to initialize 8 different variables of type int, one for each variable. You are not allowed to use any constant in your program except the…
Question 1: Pointer analysis reasons about memory locations and allocation sites. It is often used as a support analysis for client analyses such as call graph construction algorithms or taint analyses. The two main types of pointer analysis are points-to and alias analyses. Points-to analyses…
Project Description: In this project you implement an ArrayStack ADT and use the stack for implementing a method for evaluation of arithmetic expressions in Java. Use the arithmetic expression evaluation algorithm discussed in the class. See the presentation slides 19-22 in the 4 - Stacks.ppt…
Week 3 Discussion Mar 27 - Apr 2 Must post first. Subscribe Discussion Assignment Instructions: For this assignment, select one of the programming projects listed in Chapter 11 or Chapter 12 of the Liang textbook, which are designed for automatic grading. Steps to Follow: 1. Implementation:…
7506 1201 MCKR 3630 PGBE 3ZCF YOYQ 3982 6976 2849 7ITF 9901 SPZF UXWQ 9418 AQKZ 8043 0056 2849 TORJ 7700 HCWN R6TL 3718 VBEP QGDR IOMN 5185 HZCG 585Q 6179 BMHK SSOU YYIM FLOY 6ORP YJGQ 3ZWR C1YV AUAL UATS GIPL HIUS TESH 8583 1. Consider a multi-level index with the above values, a B tree, that…
Problem 1 (25 points) You are standing at the bottom of a staircase with n steps. You want to reach the top of the staircase, but you can only take 1 step or 2 steps at a time. The question is: How many different ways can you reach the top of the staircase? To help you understand, let's…
Write a calculator web app in JavaScript, HTML, and CSS with the following features: 1. Has an output field that represents the numbers input or the answer 2. Has number buttons representing all numbers (0-9) 3. Has a decimal (.) button to make decimals that can only be used once (e.g. 3.5 –…
Review: Hashing Techniques 1. A hashing function converts a large to a small . 2. A occurs when two keys hash to the same address. 3. For an open hashing scheme, the records within each bucket are stored in key order ( true / false ). 4. For an open hashing scheme, the most recently…
EXERCISES 1. In what ways are hardware and software different? In what ways are they the same? 2. a) How many milliseconds (ms) are in 1 second? 3. b) How many microseconds (us) are in 1 second? 4. c) How many nanoseconds (ns) are in 1 millisecond? 5. d) How many microseconds are in 1…
Definition 1. The ones' complement of a binary number is the value obtained by inverting all the bits in the binary representation of the number. 10pts Give a Turing machine that accepts strings of finite length written in {0,1}, if and only these strings have the form $$L = \{xz | z \text{ is…
Find the minimum product of sums for the following function. Each drop down menu has a number of choices. You must select an answer from each drop down menu. The choices include possible terms in the function. Another choice is "none", and should be used when none of the terms from that drop…
4.Designing an Inner Product Accelerator You are tasked with designing an inner product accelerator that computes the dot product of two 8-element vectors $A \cdot B = \Sigma_i A[i] * B[i]$ using a MAC (Multiply-Accumulate) unit. Below shows how a MAC works. For this design, assume you have a…
Problem 8 (+6% pts) To receive credit for this, your algorithm must run in time $\theta(n^2 \log n)$. Write the method below which takes an n by n two dimensional array A (rows and columns indexed from 0 to n - 1) and determines if some value appears more than once in A. If so, the method…
Assignment 7-2 Add data validation to the simple calculator In this exercise, you'll add data validation to the Simple Calculator form. Simple Calculator Operand 1: 256 Operator: Π X Operand 2 Result Calculate Exit Entry Ener Operator must be or X 1. Open the SimpleCalculator project in the…
You are allowed to write your project in C/C++/Java/Python but you ARE NOT allowed to use Yacc, Bison, or any other items similar that assists in the creation of compilers. This includes NO Regular Expression libraries, The scope of this project is to understand how lexical analysis works and…
Question 1: Single Layer Perceptron A small electronics company wants to automate the classification of defective and non-defective products based on sensor readings. Each product is tested using two sensors that measure voltage and current. The company has historical data indicating whether a…
Question 4: AI-Powered Puzzle Solver for Educational Game You are an Al engineer at an educational technology company developing an interactive puzzle-solving game for students. The game features various puzzle types, including the classic 8-puzzle. Your task is to implement an AI system that…
Question 5 0. 25 pts The following questions all refer to Scoreboarding on the CDC6600 and the following commands: LD F6 34(R2) LD F2 45(R3) FMULT FO, F2, F4 FADD F8, F6, F2 FDIV F10, FO, F6 Instructions can be issued as long as the FU isn't busy, but RO cannot be completed until the operands…
Problem 2. The solution for vertical displacement, Y(x, y), with respect to the horizontal of a vibrating string String $Y(x,t) = \sum_{n=1}^{\infty} a_n sin \frac{n\pi x}{L} cos \frac{n\pi ct}{L}$ $a_n = \frac{2}{L} \int_0^L f(x) sin \frac{n\pi x}{L} dx$ Hint: You will need to define the…
Input Next state Output Current state P F G Q2*Q1*Q0* E* W* G D2 D1 DO 000 (SO) 0 X X 000 (SO) 0 0 0 0 0 0 000 (SO) 1 1 X 100 (S4) (05) 000 1 0 X 001 (51) 0 0 0 1 1 0 0 0 0 0 0 1 001 (51) 1 1 X 100 (54) 0 0 1 1 0 0 001 (S1) 1 0 X 010 (52) 1 0 0 0 1 0 010 (S2) 1 1 X 100 (S4) 0 0 1 1 0 0 010…
1 2 3 4 5