• Home
  • Ask directory
  • AP CS
  • February 2023
  • 10

AP CS Q&A Archive of February 10, 2023

Select Question

February 10 of 2023

According to the unity principle of the UN: 1. All member states are given equal status. 2. All member states are respected as sovereign nations, with full control over all matters. 3. All member states are obliged to come together to punish nations that are aggressors in international…
Given the script below, what will be printed on the screen? for num in range(17,2): print(num) For the toolbar, press ALT+F10 (PC) or ALT+FN+F10 (Mac) TTTArial 312pt 1 3 5 I Pathp Words: 2
Write a single-line shell command that lists directories and files (but not hidden files) in /usr/bin that begin with a lowercase "a". The command should output one file or directory per line without any other information (e.g., file size, file permissions, etc.) and pause at each pageful,…
6. Draw pictures of the order of FIFO, LRU, and Optimal Page Replacement using the following sequences, assuming a 3 memory page scenario and a 4 memory page scenario. 7, 1, 2, 0, 1, 3, 0, 3, 1, 7, 0, 4, 2, 3, 7, 0, 3, 2, 1, 2, 3, 1, 7, 0, 1 7. Draw a diagram of the 5 different states using…
Let P = {1, 2, 2, 12, 23, 2, 2, 3, 2, 4, 4, 2, 3, 3} and define a relation R on P by: (x, y) R (u, v) if and only if x = u and y = v (*). Why is R a partial order on P? (Prove the three properties using the definition (*) above). Draw a Hasse diagram for the poset P, R. Identify the minimal and…
Generate the minimum spanning tree of the following graphs using Kruskal's Algorithm and state its running time. Take 3. Find the shortest path using Dijkstra's algorithm from A to E in the following graph.
4. Draw a block diagram of an ARM microprocessor-based swimming pool temperature control system. Control the water temperature between 80 and 70 by adding cold or hot tap water. Draw a flowchart of the program you may design and describe the operation of the system. (25 pts)
How many functional dependencies are there in this 1NF: 2, 3, 4 or 5? SemesterCode TicketNum CourseNum SemesterDesc ProfCode CourseTitle ProfName Intro to Stone Financial Accounting 2137 10010 ACCT220 Fall2017 rs Intro to Managerial Accounting 2137 10020 ACCT230 Fall2017 dp Prime Intermediate…
For the following branch taken/not taken set of results, what would be the single bit prediction success rate, and compare it to the two-bit prediction success rate [assuming the first and/or second result is used to set the prediction]: TNTTNTNTNNTNNNN11111NNTNNTNNTTTNNNTTNN
Consider the digraph on vertices a, b, c, d, e with the following adjacency lists: Adj(a) = (e, d) Adj(b) = (c, a, e, d) Adj(c) = (a, e, d) Adj(d) = () Adj(e) = (d) List the vertices in topological sort order. Give the answer as a list of vertices separated by commas without spaces before or…
2 points: Where does page 0 go in a page fault? (Explain briefly)
a. Provide the recurrence relation for the average-case analysis of quicksort: b. Provide the recurrence relation for the worst-case analysis of mergesort: c. Provide TWO advantages of Shellsort over Mergesort and ONE disadvantage of Shellsort over Mergesort. d. Draw the decision tree for an…
Every table should have a primary key (which may be concatenated/composite key), and that key should be controlled so that no two records in the table have the same primary key value. This refers to: - Referential integrity - Domain integrity - Entity integrity - Data integrity
Moving to another question will save this response. Question 16: Write a function int arrayRepeat(int[], int) that accepts an int array and the array's size as arguments. The function should return a pointer to the new array. For example, if the parameter array contains [10, 20, 30], the new…
Question 6 [5 marks] HUT O! HUT 1! HUT 1! HUT 2! HUT 3! HUT 5! HUT 8! HUT 13! IS IT THE FIBONACCI SERIES? WoO-HOO! WE'RE HUT 3 SICK OF HUT O! FOOTBALL HUT 2! FAVOR- HUT 3! ING THE HUT 2! BRAWNY. HUT 5! CORRECT! TOUCHDOWN, MARCUS! HY In the last panel of this Foxtrot cartoon, Marcus is referring…
Implement a Graph class that contains the following methods: a. addEdge b. removeEdge
In Prolog, use recursion to solve the following series: o = 0 c1 = 1 3n = Xn-1 * Xn
1a. Construct a truth table for the logical expression: p V q V r b. Simplify the logical expression (p V q) (-q V r) 2. Evaluate: TRUE NOT (FALSE (TRUE v TRUE NOT(TRUE v FALSE) v FALSE) 3. Prove by induction that: 1! + 2^2! + 3^3 + ... + n^n! = n + 1! - 1 for every positive integer n 4. How…
17- What is the algorithm technique used in the following programs we have done and the reasons these algorithms are used for: a) Dijkstra's algorithm Name of the technique: Dijkstra's algorithm Reason(s): Dijkstra's algorithm is used to find the shortest path between nodes in a graph. b)…
Edge weights are in the adjacency matrix table. (You can list the edges in MST or draw the tree below) (20 points) The adjacency matrix for the undirected weighted graph is mentioned below: a b c p f a 0 4 8 11 b 4 0 8 8 7 c 9 9 0 4 14 p 10 4 14 …
Show how you find the complexity of the mergeSort
This is for Visual Basic. Please solve a, b, and c. 6. (10) Arrays Given DIM Alpha(25) as Integer. a) How many elements can Alpha hold? b) What is wrong with X = Alpha(26)? c) What is wrong with X = Alpha(0)?
1. 0.001 = log10(n) 2. In the worst-case, Insertion-Sort is asymptotically faster than Quick-Sort. 3. It is possible to sort n integers from the domain {1, 5, 9, 13, 17, 21, 25, 29} in O(n) time. (That is, every key in the input is either 1, 5, 9, 13, 17, 21, 25, or 29) 4. Depth First Search…
A sequential circuit with two D flip-flops A and B, two inputs, x and y, and one output z is specified by the following next-state and output equations: At+1 = xy + xB Bt+1 = xA + xB z = A + xB (a) Draw the logic diagram of the circuit. (b) List the state table for the sequential circuit. (c)…
C++ T. 6. 7 True or False 2 Points Each, 30 Points Total. Enter T or F. 8. Struct structures allow a series of different data types in its record structure. 9. The data file preserves any existing records. 10. The default delimiter between fields in a data file is a blank. 11. Arrays start…
C++ return FLOW CHART Problem area = 0.5 * base * fa sum = sum + fx; x = (b - a) / n; base = area; // final area is returned + base * k - 1 return (4 * exp(-x)); // here you can change the function! double f(double x) // this function is called in the above READ THIS PROGRAM OVER SEVERAL…
For this assignment, some of the problems will ask you to write a CODE SEGMENT rather than a complete program. Your code will be inserted into a larger program that has been verified to work. Given the following class for the nodes in a linked list: public class Node { public Node…
C++ 5. A is 90 to 100 the letter grade: F is less than 65 to 0. D is less than 70 to 65, C is less than 80 to 70 B is less than 90 to 80 Allows the user to enter a score and display that Letter grade
For this assignment, some of the problems will ask you to write a CODE SEGMENT rather than a complete program. Your code will be inserted into a larger program that has been verified to work. Given the following class for the nodes in a linked list: public class Node { public Node…
Execution of this instruction (including the instruction fetch cycle). Always use "don't care" when it is possible. Performed in each clock cycle (micro-operations). b) Specify the values of the control signals needed in each clock cycle for the R1. The memory address used in the load is…
1. model [1] [2] [3] [4a] [4b] [5] Why [area]? Explain Why lifetime and why? Explain 2. Laptop Object [1] [2] [3] [4a] [4b] [5] Why [area]? Explain Why lifetime and why? Explain 3. pcLambda closure [1] [2] [3] [4a] [4b] [5] Why [area]? Explain …
From 22:27, please. DataFile T D. B. D. All of the above are restrictions on arrays in C++. B. C++ does not do range checking on array subscripts. 27. A restriction on arrays in C++ is that the assignment operator may not be used to copy one array to another. B. Arrays must agree in…
Advantages of distributed systems include: a) They provide the illusion that multiple computers are a single powerful computer. b) A process can access any of the system's resources regardless of where it executes. c) They are easy to implement. d) Both a) and b). 6. Operating systems often…
82. A system should provide good response times to withstand reasonable delays. a) processor-bound, I/O-bound b) I/O-bound, processor-bound c) batch, interactive d) interactive, batch processes, whereas a(n) process generally can. 83. When the quantum size is too large, context-switching b)…
76. In a resource-allocation graph, a) circles, squares, arrows, circles b) squares, circles, arrows, circles c) squares, circles, arrows, squares d) arrows, squares, circles represent processes and represent resources. 77. Many of today's operating systems ignore deadlock because a) the…
Graphs I want to traverse it, starting at node 1. Which nodes should I visit?
Please help with computer science practice homework. B3 help ASAP. CSC340.03+04+05 B.3-10 Points string makeGreeting(const string& event) { return "Happy " + event + "!"; } string makeGreeting(const double& earning) { return "Happy earning $" + to_string(earning) + "!"; } Please…
step. 4 B 3 E 2 2 5 D 3 3 10
21g( C)7 points) Perform additions in EC:5, 1)+(5,1 where the group of the curve is y^2 = x^3 + 2x + 2 mod 17. The formula is given as: Elliptic Curve Point Addition and Point Doubling x3 = -x1 - xnodp y3 = sx - x3 - ymop where mod p if P # Q (point addition mod p if P = Q point doubling).
unique_ptr<PC> name_uPtr{make_unique<PC>("T7500")};
Please help with computer science practice homework. CSC340.03+04+05 FINAL A.3-10 pts: What is a class that contains a pure virtual function? A. Ea the ] 1 1 Can a pure virtual function have a body implementation? If yes, please provide a sample code to access/invoke that original code function…
200110410 the following using the input stream 5 2-1 10 to the keyboard input variable. cout<<"(N,A,B)=<<"<<N<<","<<A<<","<<B<<")"<<endl; int A,B,N; A=A+N+B; A=2; or ++8; while(N<10) B=2; return 0;
Please help with computer science practice hw Which method most likely creates a memory leak? Why? []move []release []1ock 1OF8
Memory Area 1: Environment - Memory Area 2: Runtime Stack - Memory Area 3: Free-store - Memory Area 4A: Uninitialized Data - Memory Area 4B: Initialized Data - Memory Area 5: Binary Program #include <iostream> #include <functional> using namespace std; static string model; class Car…
C++ Programming 3.3 Task Three: Write a function with the purpose of exchanging the values of two variables. Your function header would be like this: void swap(int &x, int &y). Requirement: > Complete the function definition and a main function to call this function. > Verify that your…
weak_ptr<CSC340> wPtr{make_shared<CSC340>()}; Should we expect an error? Why?
Need this ASAP IN C++ 2nd pass of a) insertion sort ) selection sort 0.9.8.7.6,5,4
Please help me with computer science lab homework. Show your work using pens, not pencils. Your writing must be legible. HONOR CODE - Please follow the CS Department's policies: http PART A - 100 Points A.1 - 15 pts A LucasArts interviewer asks you to explain in detail a major difference…
Finito states 5. Design a deterministic finite-state automaton (draw its directed graph) that recognizes the language given by the regular expression {1}{l}{0,1}{0}{1}{0}{0,1}.
Following loops. For (return 0; B*=2; o L=3) { while (N<10); B++; A=A+N+B; L>=0; cout L--; cout<<B[L][M]; cout<<(N,AB=<<<N<,<<A<<<<<<end; <<endl; for (M=0; M<2; M++)
For the following questions, refer to the database in DISPLAYS AT END, which shows college enrollments for a single semester. The gender field in the Students table contains M for males and F for females, and the grade field in the Enrolls table contains a numerical grade, such as 4.0 for an A,…
C++ code for numerical integration using the trapezoidal rule. The program calculates the area under a curve by dividing it into trapezoids. The final area is returned as the result. The function "integrate" takes in the lower and upper limits of integration (a and b) and the number of…
t[k+1] = t[k] + 4; for(k = 0; k < 4; k++) int t[5]; // values of each specify each member by name and index: // illustrative example array A // member A[0] = 9 // use ? if no value // IV: (5 pts) // consider following program segment: // show the memory…
C++ Following loops. return 0; B = 2; for (L = 3; L > -1; L--) { do { cout << L << endl; } while (N < 10); ++cout; } for (M = 0; M < 2; M++)
3. (10 points) Write two loops, with one nested inside the other, that create the following seven lines of output. Make sure that your output has a space character between every two numbers (and it's OK to have an extra space at the end of every line): 11 12 12 13 13 13 14 14 15 15 15 15 16…
C++ function (floating-point/double) numbers a... polynomial p(x), a) the function declaration b) the function definition. c) a test driver 8. function overloading.
Examine: Are the following set of hash-functions universal? H={hj(0.9-0.9)hiyk=k+jmod10|i=1..10;j=0.9} Explain your answer.
Read an integer from System.in that will tell you how many strings to expect. Then read that many strings from System.in and store them in an array. Then read integers from System.in and give back the value at that index in your array until the user enters a negative number. For example, if the…
Part III. Give a nondeterministic FA in the alphabet {a, b, c} that accepts the language {w/w = abc*a*b*c*abc}.
20 60 20.5 70 12 40 A 30 50
Part III. a) Define Turing-decidable and Turing-recognizable ASUO. b) Give an example of a language that is Turing-decidable. c) Give an example of a language that is Turing-recognizable but not Turing-decidable. d) Give an example of a language that is not Turing-recognizable.
Write a Python program to calculate and print the mean of the following list: list_1 = [1, 23]
A pointer variable which contains the location of the top element of the stack is called A. Top B. Last C. Final D. End 2) When the radix sort is applicable, it is an algorithm. a) O( nlog2 n ) b) O( n ) c) O( n² log2 n ) d) O(log2 n) 3) The predecessor node of a node is called its a) children…
Part I. Let EQREx={<R,S>|R and S are regular expressions and L(R)=L(S)}. Prove that EQREx is a decidable language.
Using C++, write code for inorder traversal for the following tree. Compile your code and then run it to display the code in order. Use a destructor in your code. 60 20.5 70 12 40 A 30 50
• Both old and new clients are clients with the same set of attributes • Unary referral relationship • A client can have several appointments • A loan can be linked only to one appointment • Incorrect includes relationships: either make two separate entities (junior and senior) or use…
14. Functions/Parameters: Write a short C++ program that has a main function with a call to functionA that uses pass by value and a call to functionB that uses pass by reference. What your program does is up to you, as long as it meets the above criteria (and is not identical to the code of the…
11]. EXACTLY what will be printed when this program is run? int a[3] = 2.5.4) id.1u psa; +d>>1+d>>[[e]e>>1+>>+>>>no
Write C++ code to sort the elements in an integer array. Just write the sorting portion. Explain the advantage of your method of sorting over a plain Bubble Sort.
If your goal is to minimize operations done, which would you rather perform: delete a single item from the middle of a static data structure like an integer array - without wasting any memory, or delete a single item from the middle of a dynamic data structure like a linked list? Explain with…
Your code fragment should include preprocessor directives, all needed I/O object declarations, and illustrative code for writing and reading data.
No packet loss; scenarios: (iii) a packet loss with 3 subsequent received duplicate acknowledgements. ii a packet loss with no subsequent received acknowledgments; (b) Describe how the Congestion Window is updated by a TCP sender in the following.
The code should be in JAVA Language. 1. Fill an array of size 10 with random numbers ranging from 1 to 10. Use a single-subscripted array to copy only unique numbers from this array into another array. For example, if the first array has 1, 7, 3, 3, 10, 6, 8, 10, 5, 3, then the second…
The code should be written in JAVA language. Date: 18-12-2018 Time allowed: Two hours 1. Fill an array of size 10 with random numbers ranging from 1 to 10. Use a single-subscripted array to copy only unique numbers from this array into another array. For example, if the first array has 1, 7,…
Write a program to search for a key in a binary tree. Answer true if the key value is stored in the tree, and false if it is not stored in the tree. Search for value 2 in figure b, and value 66 in figure c. t0 70 65 80 (b) (c)
Given is the following UML diagram. I have to convert it into a Java code: Implement the details of the classes as follows: - interestRate is the annual interest calculation in percent. If the interest rate is 1.5%, interestRate = 1.5. - The letAYearPass function causes a year to pass and the…
Java programming application 010011010110 input bit pattern) structure of the program is shown: 2 3. A 12-bit Gray to binary code converter is shown: unsorted and sorted array values each in two single rows separated by two spaces. The create a sorted ascending order values in a 1-D array…
Points 13. Develop a function that executes the equation Stan = i + 2. Function Program: (everybody wants)
Find all employees who were not born during the 1950s. a) using not exists b) using is not Figure 5.6: One possible database state for the COMPANY relational database schema. EMPLOYEE Fname Minit Lname Ssn Bdate Address Sex Salary Super_ssn Dno John B Smith 123456789 1965-01-09 731 Fondren,…
Write a program which performs Caesar Encryption. Caesar encryption is based on circular shifting of the letters by a given amount. See the example runs below for a better understanding. Your program will encrypt the string as follows: - It will shift the letters by the given amount. If it…
Verify the following statements and choose the right option from below: Statement 1: FMS Planning uses part family considerations, process requirements, and physical characteristics of the work part. Statement 2: FMS Design considers production volume, types of workstations, and material…
Questien39 Explain any 2 types of Robot Programming techniques [3 marks (LO4) TT T Arial 312pt TF Pa:p
What letter code/symbol is used in programming for Tools? [1 mark] O Letter "S" O Letter "T" O Letter "F" O Letter "M
Question 32 [4 marks] List 4 major components of PLC. [2 marks] (b) List 2 input and 2 output devices of PLC. [2 marks] (LC4) Arial 3 (12pt) T-2 Pal:p
Which one of the following is the correct statement about MRP? [1 mark] A. The bill of materials file is one of the inputs to the MRP system. B. Planned order releases are one of the outputs of MRP. C. Inventory forecasts are one of the outputs of MRP. D. All of the given answers.
Text: Question 14 Fill in the blanks of the following by applying concepts of Flexible manufacturing systems (5 marks (LO4) i. Planning the production output levels must be coordinated with the plans of the company. ii. Marketing plans for current and new products must be reconciled against the…
Question 13 30 Save Answer Fill in the blanks for NC part programming concepts. A drawing is given below with its partially completed CNC program, but some of the program blocks have missing numbers, you have to fill those with correct values mentioned in the answers. Every block is a question…
Question 11: Both statements are wrong. Both statements are correct. Pick a correct answer below. Statement 1 is wrong but Statement 2 is correct. Statement 1 is correct but Statement 2 is wrong. MacBook Air [2 marks]. L05 rFMS is designed.
Pathif TTTAra Question 9: List two upstream functions and two downstream functions of CIM. [4 marks] MB2NTHEHELMH
Path to understanding State and explain the two sections of a robot manipulator NP2NNTHELEHMHH [4 marks] (LO4)
c++ algorithm inToPostFix (val formula <string>) Convert infix formula to postfix. Pre formula is infix notation that has been edited to ensure that there are no syntactical errors. Post postfix formula has been formatted as a string. Return postfix formula. l createStack…
Assume the segment table shown below: Segment # Base Limit Read/Write 0 300 254 R 1 1370 680 RW 2 558 300 RW 3 2400 200 RW 4 900 360 R The processor creates the following virtual addresses (given in the…
Question 7. (10 points) Branch Prediction The following series of branch outcomes occurs for a single branch in a program. (T means the branch is taken, N means the branch is not taken) TTTNTNTTTNTNT (1) Assume that we are trying to predict this sequence using a 1-bit predictor. The counters…
Searching a Matrix (15 pts) Part c might be a bit of a challenge, so think of it as for fun. You're given an n x n matrix M (with all distinct values) that's super-sorted, meaning that each row's numbers are sorted from left to right, and each column's numbers are sorted from top to bottom,…
40. Synchronization Problem: When implementing an IP router, engineers have a number of processes that read the routing table and potentially multiple processes that write to the routing table (basically a multiple writer, multiple reader problem). Routing tables can have thousands of entries,…
int X[6], C[3]; // HINT: THESE ARE GLOBAL VARIABLES int TestMe(int &Y, int Z) { int A, B; A = 5; B = 2; X[1] = TestMe(A, B); cout << "A=" << A << " B=" << B << endl; cout << "X=" << X[1] << " C=" << C[1] << endl; cout << "W=" << W << endl; cout << "Y=" << Y << "…
Task 4. Write a function closest_point, which takes a K x p matrix X* and a vector x (of length p) as arguments, and determines which row of X* is closest to x. In other words, it returns the index k such that ||x - X*_k|| is smallest. For example, if X* is a 3 x 2 matrix: 3 1 4 3 2 1 and x…
51. Given a process is 4097 bytes and a page size of 512 bytes, how many pages are allocated to the process? What is the amount of internal fragmentation? 52. What is the purpose of the TLB (Translation Look-aside Buffer)? 53. What are the Page Table Base Register and Page Table Length…
36. What is starvation? 37. What is priority inversion? 38. What is the purpose of the dispatcher? 39. What is the purpose of the scheduler? 40. What is aging in terms of priority scheduling? 41. What is a quantum (time slice)? 42. What are the base and limit registers used for? 43. What is the…
28. What is a race condition? 29. What is preemption? 30. What does it mean for a kernel to be preemptive or non-preemptive? 31. What is bus waiting? 32. What does it mean for an operation to be atomic? 33. What are the two types of semaphores? 34. What is the difference between a mutex and a…
Can I get the name of all the components, so that I can design it on "EAGLE" if possible? The EAGLE file for this schematic is RF TX ANTENNA ant GND DATA VCC ANT 2 3 4 5V HT12E 4 1 GND 5V 9 2 4 2 DO 10 3 A2 D1 11 4 D2 BUTTON1 A3 12 5 A4 D3 13 6 A5 TEXTAL1 XTAL2 14 7 A6 15 16 680K R6 10k 8 18 A7…
Please explain - What is the output of the code? ArrayList<Integer> list = new ArrayList<Integer>(); for(int i=1; i<=6; i++) { list.add(i * 3); } System.out.println(list); Answer: Please Explain - What is the output of the code? ArrayList<Integer> list = new ArrayList<Integer>(); for(int i=1;…
With a poorly chosen hash function, it is possible to have a situation in which the search time in that hash table of N items goes as O(1), O(N), O(N log N), or O(N!).
Mention two advantages and two drawbacks of this configuration: An Inside and an Outside Router and a Single-Homed Bastion Host: Screened-Subnet Firewall System. Bastion host (Proxy) Internet Web Server Packet Filtering Router Outside Router DMZ (Screened Subnet) Inside Router Private…
The Leonardo numbers are a sequence of integers defined by the following recurrence: L(0) = 1, L(1) = 1, L(n) = L(n - 1) + L(n - 2) + 1. The first few Leonardo numbers are 1, 1, 3, 5, 9, 15, 25. The Leonardo number problem is as follows: Input: a non-negative integer n Output: Leonardo number…
From the task network below, identify the critical path with each task name in order. Task 1 Task 2 Task 6 Task 7 Task 10
Write a shell script in Unix that displays the following two texts on the standard output: A) The string "hello" B) Consider the diagram below: 1. How many independent paths are there? List them all. 2. How many paths are required to cover all the statements? 3. How many paths are…
Assume a binary data storage system (base = 2) is composed of 10 bits of memory to store real numbers using floating point representation. The system is defined as follows: - Sign of the real number - Sign of the exponent - Mantissa - Exponent - +/- - +/- Please work out the maximum value…
C++ 17. Draw a binary search tree that is created if the following strings are inserted into the tree in the given order: "barrycolin", "amanda", "harry", "daniel", "ruth", "carry" 18. Draw a balanced binary search tree containing the same names given above Page 8 of 14
4N at 25H f k whue adiog the Aat lg luy m on An=1 820-2 +19- n+1n-2 26Sme as above Which of the following pom inom for given graph Gdo Gve B given a planar graph Gin Goin C given a planar graph Gand an integer D All of the above are E None of the above i 28Same as above 29The primality problem…
Question V (10 points): NP-Completeness Consider the following instance f of SATISFIABILITY: (x V x2 V x3 V x4) ∧ (x1 V x2 V x3) ∧ (xi V x2) ∧ (x3 V x4) 1. Following the reduction method from SATISFIABILITY to clique, transform f into an instance of clique for which the answer is yes if…
Please answer 5 and 6. 6. [10 pts] You are tasked to define the testing strategy for a commercial software product your tean responsible to deliver. Be as specific and as detailed as possible in your test proposal.
Let h > 0, x = xo + jh for j = 0, 1, 2,..., n, and let Pn(x) be the degree n polynomial interpolating f(x) at xo,..., xn. Use this polynomial to estimate f'(xo). Produce the actual formulas involving f(xo),..., f(xn) for n = 1, 2, 3, 4. Also produce their error formulas.
Text: Java T8 (5 points) Hint: 15%13=2, 80%13=2, 210%13=2 Hashtable: Index 0 hash table #probes T94 (points) sorted. public static void newmergesort(int[] a, int top, int bottom) { if (top < bottom) { int middle = top + bottom / 2; insertionsort(a, top, middle); …
Java 2 Part 11: Programming π(2+8 points) The root value is higher than all values of its left subtree. O O Left tree (yes/no): Right tree (yes/no): b Please write a method search(treenode t, int value) that returns the number of times the integer input parameter value is in such a tree t.
Title: Help in C++ for Bank Account Class Review Problem (float). Besides the set and get functions, the class has two functions: A function that deposits a certain amount into the account. a) Complete the following header file bankaccount.h for the class BANKACCOUNT: #ifndef…
Let fn be the n-th Fibonacci number. Use strong induction to prove the following: fn+1 > 1.6fn, n > 4 Base case: Show true for n = 4 and 5: n = 4: lhs = f4+1 = f5 = 5, rhs = 1.6f4 = 1.6 * 3 = 4.8 lhs > rhs, so true for n = 4 n = 5: lhs = f5+1 = f6 = 8, rhs = 1.6f5 = 1.6 * 5 = 8 lhs > rhs, so…
Please provide answers for questions 47 and 48 respectively. A B C Save D CURSE 48. Hypothesis Testing: We are examining changes in just independent variables. C. Examining changes in just dependent variables. D. Examining the participant observable behavior. 49. In the following screen, what…
How does 256Kx8 equal 2MB and how do they get 4 chips? I'm confused with units, so please show all work. Thumbs up if great. 256K x 8 RAM (2 MB) - Three-state outputs are connected together to form 8 data output lines. - Just one chip select (CS) will be active at any time. The RAM requires…
Name: Fall 2018 ITEC 320 Part 1: Closed Book Prot. Salayka 1. What is the difference between == and in JavaScript Multiple Choice 2 pts each) . = is not a valid operator in JavaScript b. They are both the same operator c. Tests Equality of only value, tests equality of only type 2. Which of the…
MATH2107 LANC2160 HIST1010 ENCR1600 CHEM1071 function to compute the semester GPA and display it to the user. be {3.1.1.2.3.4}, and n-6. The function should return 2.69. For example, if the student has the following grades. One can call the function to compute the semester GPA by passing the…
The following model: Program Design = Data Design + Algorithms Design level (any) and assembly languages. DATA Representation Simple Data Types - Integer Real Character string Composite Data Types Array Record Array of Record 5-10) Sequence, iteration, and selection are the fundamental…
Using Python, please write out a code using the following algorithm. Notice the active set is derived from "bforalle". 2. Case 1: If yF MEJ u0 for all J, then the point g minimizes to CP and the algorithm stops. 3. Quadratic Optimization 4. Otherwise, choose an index s J with u<0. For example,…
Java from the list by 10 removes the rightmost digit. 126/10 is 12. So that takes in an integer k. The method then removes every a buffer node.
Write a MATLAB program for Part C. Parameter.[4 marks] function blocklist = Read(n) blocklist = strings(n) for i = 1:n R13 eMa c Write a function that counts the blood types of the donors. The function prints the number of donors with blood types A, B, AB, and O. This function must…
What is the relationship between the design of a company's information management system and the company's business practices? How does a company's organizational structure affect the design of the company's information management system? What are the three capabilities desired in most company…
g. The following is the forwarding table of a router X Destination Network 223.92.32.0 Subnet Mask /20 /19 /12 /14 /1 /2 /3 Outgoing Link Interface A B c D E F G 223.81.96.0 223.112.0.0 223.120.0.0 128.0.0.0 64.0.0.0 32.0.0.0 State, to what outgoing interfaces will these arriving packets, with…
This is programming in Java. Can you please answer this question within 20 mins? It does not have to be complete. Just show some basic work. List all the elements from front to rear of an initially empty queue q of integers after the following code is…
Section 4 - Introduction to Assembly 5. Change the following high-level code into MIPS [20pts]: a. High-Level Code: # x = $s0, $i = $t0 x = 0; for (i = 0; i < 8; i++) { array[i] = 3 * i; } b. High-Level Code: int linfunc(int x) { int y = 2 * x + 3; return y; }
3. [10pts] Implement the function Y = AB + BC with the following: a. A 4:1 multiplexer b. A decoder and an OR gate
32 64 12.8 Section 1 - Numbers 1. [10pts] Perform the following calculations in binary (assuming a signed 8-bit system): a. 63 + 15 b. 75 - 23 c. 13 + 45 d. 52 - 38
Can the following expressions be unified? If so, give the unifier. (a) UNIFY(pointer(a), pointer(pointer(b))) (b) UNIFY(boo, Baz) (c) UNIFY([H, T], [a, b, c]) (d) UNIFY(foo(a), foo(X, Y))
Text: canvas.csun.edu Computer Science 182 Flashcards comp182 Flashcards constants, variables, and methods Constants and Variables Question 27 2 pts Consider the Java class for a generic single linked list node below. What statement goes in the blank in line 1? 1 public class SLLNode<E> { …
True True False False deg=e. And then we can get at least one spanning tree. Given a connected graph G=V,E, remove an edge from any circuit. Let G=V,E be an undirected graph with e edges, i.e. E=e.
Question 16 Which ADT has an insertion and removal policy based on "fairness"? O queue O linked list O stack O binary search tree Question 17 Consider the following code fragment: Integer a = new Integer(10); Integer b = new Integer(28); System.out.println(a.compareTo(b)); What is true about…
39. What should be the primary change in the following screen? 1. MSIE5.X 47% 43% 2% 2% 1% 0% 2. MSIE6.X 154125573 3. Netscape 4.x 4. MSIE4.x 9869530 8169025 5. Netscape comp. 6. Opera x.x 3753432 3226772 A. Align the text column on the left. B. Align the numbers on the right. C. Provide…
canvas.csun.edu Computer Science 182 Flashcards 182 Part 2 Flash Question 9 2 pts All binary search tree insertions are at leaves. O True O False Question 10 2 pts All binary search tree physical deletions occur at leaves. O False Question 11 2 pts In a graph's Breadth First Search (or Depth…
Microsoft Internet Explorer This remote vendor has no vouchers that are ready to pay. (7250, 119) OK Cancel A. Having Cancel and OK Buttons. B. The numbers in the parentheses. C. Text is misleading. D. Icon is not relevant for an error message.
Transaction Date: 05/14/2003 ET Accounting Date: 05/14/2003 Transaction Code: Rate Type: CRRNT A. Remove Date from first and second label. B. Remove icons from second and third field. C. Align the fields horizontally. D. None of the above.
29. What would you change in the following screen? Inside PeopleSoft Weather News Employee Dashboard European Weather InfoSphere News Events Calendar Weather Reuters News Photos Manager Dashboard PeopleSoft Directory Search Finance ClearStation Stock A-List EDGAR SEC Filings Search Hoovers…
27. What would you change in the following screen? Bills Consolidated Business Select the bill you wish to view. If the bill you are looking for does not appear in the list below, use Bill Search. Bill List Invoice Number Invoice Date Due Date Pay Invoice Amount Current Balance…
What is the post order traversal for the following binary search tree? chegg -Google Search linked list Question 25 2pts Consider the following program. Evaluate line 9. What is the result Variable var? 1 import java.util.Deque; 2 import java.util.ArrayDeque; 4 public class FinalQuestion…
9. [10 points] Write a recursive Scheme function remove-last L, which returns a list. This function: >remove-last() >remove-last3() >remove-last1532 153 then reverse the result - do NOT use such an approach.
Question 22 What is the post order traversal for the following binary search tree? Oabegfd Oabdefg Odbafeg Question 23 When programs run, they require memory allocation each time a method is called. For example, the memory is used to store the arguments to the method and the method's local…
4. [9 points] In most languages, local variables are allocated dynamically on the stack, thus introducing a run-time overhead caused by stack maintenance operations. Why not just reserve a memory region for each subroutine's local variables, and allocate them statically there?
The format for date in MYSQL is: A. YY/MM/DD B. YYYY-MM-DD C. YY-MM-DD D. None of the above
25. Which of the below is not a property usually referred to by the acronym ACID? A. Atomicity B. Consistency C. Isolation D. Durability
Question 17 5 pts For the binary search tree shown below, which node is the replacement node after you delete 91? 59 59 84 91 05
Can you sort a column using a column alias? A. True B. False C. Both of the above D. None of the above.
Database Assignment MC-1 The process of developing the conceptual schema is the result of: a) Logical Design b) Conceptual Design c) Physical Design d) Database Design MC-2 The number of entity classes in a relationship is known as: a) Data Modeling b) Database Design c) Degree of the…
3.(10 points) Explain round robin scheduling and weighted fair queuing Which one is more fair and why?
x&y; b. (5 points) What will be the output of the C code int main() printf("%d" return 0;
Rewrite the logic in code fragment 1 such that it uses a: a. while loop b. do-while loop for (int i = 10, sum = 0; i > 0; i++) { sum += i; }
Fill out the blanks in each question: a. With 5 Flip Flops, we can get a maximum count of 40. b. With 5 Flip Flops, we can divide the frequency by a maximum of [missing value]. c. When pulses are fed to the timer from the outside, it is called [missing value]. d. When clock…
2.(Bonus) Design the PLC ladder logic for traffic light operation of a cross-section with pre-set timers for each direction.It is required to have a yellow warning light before turning green. An initial push-on button (that can be latched) to start the operation is also required.
Measuring the usability is hard in User Interface Design. We introduced five approaches to quantitatively/numerically evaluate usability in short, TSERS: (T or F) T means Testing the user interface thoroughly, (T or F) the first S stands for Speed of performance, (T or F) E means Error rate of…
35 is used to filter records that work on summarized GROUP BY results. A. Set B. Filter C. Group Exclude D. None of the above.
16. Non-prime attribute is A. Any super key of a table B. An attribute that is not part of any candidate key C. Any column that is not a primary key D. None of the above
10 1 top (b Array indices copy constructor peek pop What method is this? 102030 C. Given this graphic of an array-based stack. default constructor return items[top]: assert(isEmpty()) template<class ItemType> B. Given the following code copy constructor pop return result CSC326 What would be…
A special supervisor call instruction (SVC) is provided to SIC/XE. SIC does not support memory-to-memory move instructions, but SIC/XE does. LDA #5 is a valid instruction for SIC/XE but not for SIC. In SIC and SIC/XE assembly programming, the assembler directives such as WORD and RESW are…
Given a balanced binary tree with (2^8-1 or 255) nodes, how many of the values are at leaves? A) 127 B) 255 C) 128 D) 256
Text: capability. bits/word. (2 points) How should the memory design be modified to access 8 words with 3 bits/word? (2 points) How should the memory in (a) be modified to have 6 bits/word instead of 3 bits/word?
(S points) if(a==7) c=1; else c=0; (5 points) while(a<b) { a=a+c; b++; } c=b; (5 points) for(b=1; b<=c; b++) { a=2; }
need this urgent please thank you very much capability. bits/word. (2 points) How should the memory in (a)be modified to have 6 bits/word instead of 3 bits/word.
In Java 6. (4 points) What will be the output of the program? Try int x = 10; int y = 5 / x - 10; catch (ArithmeticException ac) System.out.println("Arithmetic Exception"); catch Exception e System.out.println("Exception"); finally System.out.println("finished"); 7. (4 points) What is…
C.db.collection.add D.None of the above 48. Which of the following is not true about modifying rows in a table? A. Existing rows in a table are modified using the UPDATE statement. B. You can update more than one row at a time. C. All the rows in a table are modified if you omit the WHERE…
For the AVL tree shown below, what is the load balance of node 60 after inserting 190?
Solution: 3 = -0.3x^2, uk = -Kkx. Is this a batch solution or a recursive solution? A. Consider a control sequence in the form of u0 = -0.1x0, u1 = -0.2x0. 4. [20 points] For optimal control problems, there are two types of solutions: batch solution and recursive.
For the binary search tree shown below, which node is the replacement node after you delete 91? 05 84 59 91 search
Given the following hash table of size 11, after inserting entries with keys 34, 44, 55, 39, and 66 using double hashing with the following functions: hk = k % 11; hk = 7 - k % 7; What is the index of inserting the key 22 into the table? index key 44 34 2 3 59 60 39 5 6 8 6 10
Question 16 5 pts For the binary search tree below, what is the post-order traversal? 85 91 5 515485159848591 851555148845991 548598451159185 85 15 9155148 84 59
Would the size of each table (i.e., the number of entries in each table and width of each entry). Now consider a simple branch predictor (with 3-bit predictor but only a single table of the same size as the total space taken by all tables in (a). How many low order bits of address will this…
What is the Big O notation for the following expression n^3 + n^2 + n? O(n^3)
7. Suppose that a workload has a baseline CPI of 1.0, and on average uses one branch instruction every 9 other instructions (10%). Additionally, suppose that the branch is taken only 25% of the time. To compare the two options for handling this, we need to compute the overall CPI. Option (a)…
Problem 6: Induction and Recursion (10 points) a is recursively defined by the following two rules: Rule 1: a = 2eS. Rule 2: xES, yES, x+yES.
Problem 4: Algorithm Complexity (7 points) Numbers 2 [4 points]: Use the definition of the fact that fn is O(g(n)) to show that log(n) + n^3 is O(n).
1) Use linspace and plot commands to graph sin(x) for x values ranging from 0 to Ï€ using 300 points in the range. 2) Input the complex numbers z = 4 + i5 and z = -7 + i9 into MATLAB and do the calculations: a) Re(z) b) Im(z) c) z^2 d) Magnitude of z e) Angle of z 3) Write a…
please ignore writing on bottom 5.(20 points:5 point each Complete the following arithmetic operations in two's complement representation. What are the value of the carry flag and overflow flag?(Assume a six-bit 111111 system) 31+11 12 1107-7 15-19 -7x(-3 .-7x(3)
Assume: System: 5-bit machine Cache: 8 blocks, 1 word/block, directly mapped All memory locations contain valid data Data was acquired by the CPU either from cache or DRAM. 1. Complete the following table. Memory address | Binary Address | Tag value | Cache…
a. What occasions will end a transaction? (5 pts) b. Describe the ACID model of database transactions. List out not only the four database properties but also briefly explain them. (10 pts) S-STAPFYRANSACTHIN e. The following statements show an example of using a savepoint. Explain why we use a…
2.a Describe physical backup and logical backup. (10 pts) (b) Which one is faster? Why? (10 pts) (c) Is the mysqldump program used for logical backup or physical backup? (5 pts) Write a command to back up the Users' Table in the CS495 database using mysqldump. (10 pts)
Write up a page that has a selection dropdown and a button. Have the options be a list of things that interest you! Each time the button is hit, look at the currently selected option and write more to the page, explaining the selection in detail. Each time a new one is chosen and the button is…
This code assigns the value 10 to all odd elements of an array. All even elements of the array are assigned 20.6 points. int[] a = new int[251]; // your code goes here
Text: Match these style properties with their uses: z-index, display, rgb, vertical-align, flex-direction, text-align. A. can resolve which of several overlapping elements will be fully displayed. B. can stack elements vertically. C. can avoid a ragged right margin. D. can define a flex…
Use the information below to answer questions #11 through #13. Assume int *ptr is located at memory address 48 and int num is stored at memory address 60 and contains the value 3. Based on this information, answer the following questions. If the code would result in an error, select…
Q9: Complete the following code. Your code should allocate memory for an Employee structure. typedef struct emp { int employeeID; char name[16]; int salary; } Employee; Employee *createEmployee(int id, char name[], int salary) { Employee *e = (Employee *)…
What is the software that powers server virtualization technology in cloud computing? - OpenFlow - SNMP - SDN - Hypervisor What type of hypervisor would be loaded in a host OS in order to provide virtualization? - Type-1 - Type-2 - Type-3 - Type-4
MA Which margin specifications set the bottom margin to 8px? margin:8px; margin:8px 4px; margin-bottom:8px; margin:4px 8px 4px 8px; QUESTION 26 When specifying margins other than 0, units are required. True or False? QUESTION 27 To ensure that an input element belongs to a specific form, use…
In the style rule table { border-collapse:collapse; color:#e0e0e0; }, match the rule components with their descriptions: declaration block (B), selector (A), value (E), declaration (C), property (D). QUESTION 22 The selector "h1,h2" applies to: all h1 and h2 elements (O). QUESTION…
MA Specifying the width= and height= attributes of an img element keeps the image aspect ratio constant, allows the browser to layout the image before it has been received, reduces the download time needed for the image, and scales the image if necessary. QUESTION 13 The style attribute has…
I need help writing the code for this problem!! 6. Suppose a new MACRO instruction was added to the set in the book. This new instruction is called ANDD (AND direct) and will use a 4-bit opcode and a 12-bit address to specify a location in memory that is to be bitwise AND'd with the…
A Python function which asks the user to input a number (x) and returns "even" if x is even, and returns "odd" if x is odd.
blieatstie voiaminiring l argo 1! yet..itinmethod(2.5)) //3 points yw.itinmethod2(3.10.S) //3 points yet..eintinmethod(7 //3 points ystam.t.grintinmethod4(3.8.85.false) //3 points 17/e1n yt.eut.printinmethod5(2,20 //3points puiie etatic int sethodi(int x, int y { 11y6 etnxy/2 niae…
FDU Fine Home ByrneTube How To Join Taking Question 5 of 12 - Subject: Computer Topic: Processors Time Remaining: 1 hour If a processor does not have a subtracter, it could subtract with the help of: O true O false - using an incrementer O true O false - adding the negative of the number being…
FDU Byrne f.in Home ByrneTube How To Join Taking Tests Question 8 of 12-Subject Complications Topic: Processors Time Remaining 1 hour and 3 minutes A line of Java - if (C > 0) O true O false - uses the shifter O true O false - compiles into 1 line of machine code O true O false - compiles into…
Thank you and thumbs up. 1. If/Else Simulation 10 points if a < b - a > b { a = a - 10; } else { b++; } System.out.println(a + 1); Method Call Output ifElseMystery10, 3; ifElseMystery6, 6; ifElseMystery3, 4; ifElseMystery4, 20;
(b) Write P(k) and use Mathematical Induction to prove that P(n) is true for all positive integers n. (c) Write P(k+1). 7.10 Consider the following theorem: if x and y are odd integers, then x+y is even. Give a proof by contradiction of this theorem.
a) (6 points) State a key (candidate key) for Repayment. loans in problem 2). dependency that causes it.
Problem 3: Functions, Sequences and Sums 15 points (1) [5 points] Show that f () = 22 +9 +99 is a one-to-one function from Z to Z. 30 (2) [5 points] Compute the sum (2i+1 2i). 30 1 (3) [5 points] Compute the sum k(k+2) k=1
Alt Fn E Ctrl 5.10 Find the number of subsets of S = {1, 2, 3, ..., 10} that contain exactly five elements, including 3 or 4 but not both.
According to the unity principle of the UN: 1. All member states are given equal status. 2. All member states are respected as sovereign nations, with full control over all matters. 3. All member states are obliged to come together to punish nations that are aggressors in international…
Given the script below, what will be printed on the screen? for num in range(17,2): print(num) For the toolbar, press ALT+F10 (PC) or ALT+FN+F10 (Mac) TTTArial 312pt 1 3 5 I Pathp Words: 2
Write a single-line shell command that lists directories and files (but not hidden files) in /usr/bin that begin with a lowercase "a". The command should output one file or directory per line without any other information (e.g., file size, file permissions, etc.) and pause at each pageful,…
6. Draw pictures of the order of FIFO, LRU, and Optimal Page Replacement using the following sequences, assuming a 3 memory page scenario and a 4 memory page scenario. 7, 1, 2, 0, 1, 3, 0, 3, 1, 7, 0, 4, 2, 3, 7, 0, 3, 2, 1, 2, 3, 1, 7, 0, 1 7. Draw a diagram of the 5 different states using…
Let P = {1, 2, 2, 12, 23, 2, 2, 3, 2, 4, 4, 2, 3, 3} and define a relation R on P by: (x, y) R (u, v) if and only if x = u and y = v (*). Why is R a partial order on P? (Prove the three properties using the definition (*) above). Draw a Hasse diagram for the poset P, R. Identify the minimal and…
Generate the minimum spanning tree of the following graphs using Kruskal's Algorithm and state its running time. Take 3. Find the shortest path using Dijkstra's algorithm from A to E in the following graph.
4. Draw a block diagram of an ARM microprocessor-based swimming pool temperature control system. Control the water temperature between 80 and 70 by adding cold or hot tap water. Draw a flowchart of the program you may design and describe the operation of the system. (25 pts)
How many functional dependencies are there in this 1NF: 2, 3, 4 or 5? SemesterCode TicketNum CourseNum SemesterDesc ProfCode CourseTitle ProfName Intro to Stone Financial Accounting 2137 10010 ACCT220 Fall2017 rs Intro to Managerial Accounting 2137 10020 ACCT230 Fall2017 dp Prime Intermediate…
For the following branch taken/not taken set of results, what would be the single bit prediction success rate, and compare it to the two-bit prediction success rate [assuming the first and/or second result is used to set the prediction]: TNTTNTNTNNTNNNN11111NNTNNTNNTTTNNNTTNN
Consider the digraph on vertices a, b, c, d, e with the following adjacency lists: Adj(a) = (e, d) Adj(b) = (c, a, e, d) Adj(c) = (a, e, d) Adj(d) = () Adj(e) = (d) List the vertices in topological sort order. Give the answer as a list of vertices separated by commas without spaces before or…
2 points: Where does page 0 go in a page fault? (Explain briefly)
a. Provide the recurrence relation for the average-case analysis of quicksort: b. Provide the recurrence relation for the worst-case analysis of mergesort: c. Provide TWO advantages of Shellsort over Mergesort and ONE disadvantage of Shellsort over Mergesort. d. Draw the decision tree for an…
Every table should have a primary key (which may be concatenated/composite key), and that key should be controlled so that no two records in the table have the same primary key value. This refers to: - Referential integrity - Domain integrity - Entity integrity - Data integrity
Moving to another question will save this response. Question 16: Write a function int arrayRepeat(int[], int) that accepts an int array and the array's size as arguments. The function should return a pointer to the new array. For example, if the parameter array contains [10, 20, 30], the new…
Question 6 [5 marks] HUT O! HUT 1! HUT 1! HUT 2! HUT 3! HUT 5! HUT 8! HUT 13! IS IT THE FIBONACCI SERIES? WoO-HOO! WE'RE HUT 3 SICK OF HUT O! FOOTBALL HUT 2! FAVOR- HUT 3! ING THE HUT 2! BRAWNY. HUT 5! CORRECT! TOUCHDOWN, MARCUS! HY In the last panel of this Foxtrot cartoon, Marcus is referring…
Implement a Graph class that contains the following methods: a. addEdge b. removeEdge
In Prolog, use recursion to solve the following series: o = 0 c1 = 1 3n = Xn-1 * Xn
1a. Construct a truth table for the logical expression: p V q V r b. Simplify the logical expression (p V q) (-q V r) 2. Evaluate: TRUE NOT (FALSE (TRUE v TRUE NOT(TRUE v FALSE) v FALSE) 3. Prove by induction that: 1! + 2^2! + 3^3 + ... + n^n! = n + 1! - 1 for every positive integer n 4. How…
17- What is the algorithm technique used in the following programs we have done and the reasons these algorithms are used for: a) Dijkstra's algorithm Name of the technique: Dijkstra's algorithm Reason(s): Dijkstra's algorithm is used to find the shortest path between nodes in a graph. b)…
Edge weights are in the adjacency matrix table. (You can list the edges in MST or draw the tree below) (20 points) The adjacency matrix for the undirected weighted graph is mentioned below: a b c p f a 0 4 8 11 b 4 0 8 8 7 c 9 9 0 4 14 p 10 4 14 …
Show how you find the complexity of the mergeSort
This is for Visual Basic. Please solve a, b, and c. 6. (10) Arrays Given DIM Alpha(25) as Integer. a) How many elements can Alpha hold? b) What is wrong with X = Alpha(26)? c) What is wrong with X = Alpha(0)?
1. 0.001 = log10(n) 2. In the worst-case, Insertion-Sort is asymptotically faster than Quick-Sort. 3. It is possible to sort n integers from the domain {1, 5, 9, 13, 17, 21, 25, 29} in O(n) time. (That is, every key in the input is either 1, 5, 9, 13, 17, 21, 25, or 29) 4. Depth First Search…
A sequential circuit with two D flip-flops A and B, two inputs, x and y, and one output z is specified by the following next-state and output equations: At+1 = xy + xB Bt+1 = xA + xB z = A + xB (a) Draw the logic diagram of the circuit. (b) List the state table for the sequential circuit. (c)…
C++ T. 6. 7 True or False 2 Points Each, 30 Points Total. Enter T or F. 8. Struct structures allow a series of different data types in its record structure. 9. The data file preserves any existing records. 10. The default delimiter between fields in a data file is a blank. 11. Arrays start…
C++ return FLOW CHART Problem area = 0.5 * base * fa sum = sum + fx; x = (b - a) / n; base = area; // final area is returned + base * k - 1 return (4 * exp(-x)); // here you can change the function! double f(double x) // this function is called in the above READ THIS PROGRAM OVER SEVERAL…
For this assignment, some of the problems will ask you to write a CODE SEGMENT rather than a complete program. Your code will be inserted into a larger program that has been verified to work. Given the following class for the nodes in a linked list: public class Node { public Node…
C++ 5. A is 90 to 100 the letter grade: F is less than 65 to 0. D is less than 70 to 65, C is less than 80 to 70 B is less than 90 to 80 Allows the user to enter a score and display that Letter grade
For this assignment, some of the problems will ask you to write a CODE SEGMENT rather than a complete program. Your code will be inserted into a larger program that has been verified to work. Given the following class for the nodes in a linked list: public class Node { public Node…
Execution of this instruction (including the instruction fetch cycle). Always use "don't care" when it is possible. Performed in each clock cycle (micro-operations). b) Specify the values of the control signals needed in each clock cycle for the R1. The memory address used in the load is…
1. model [1] [2] [3] [4a] [4b] [5] Why [area]? Explain Why lifetime and why? Explain 2. Laptop Object [1] [2] [3] [4a] [4b] [5] Why [area]? Explain Why lifetime and why? Explain 3. pcLambda closure [1] [2] [3] [4a] [4b] [5] Why [area]? Explain …
From 22:27, please. DataFile T D. B. D. All of the above are restrictions on arrays in C++. B. C++ does not do range checking on array subscripts. 27. A restriction on arrays in C++ is that the assignment operator may not be used to copy one array to another. B. Arrays must agree in…
Advantages of distributed systems include: a) They provide the illusion that multiple computers are a single powerful computer. b) A process can access any of the system's resources regardless of where it executes. c) They are easy to implement. d) Both a) and b). 6. Operating systems often…
82. A system should provide good response times to withstand reasonable delays. a) processor-bound, I/O-bound b) I/O-bound, processor-bound c) batch, interactive d) interactive, batch processes, whereas a(n) process generally can. 83. When the quantum size is too large, context-switching b)…
76. In a resource-allocation graph, a) circles, squares, arrows, circles b) squares, circles, arrows, circles c) squares, circles, arrows, squares d) arrows, squares, circles represent processes and represent resources. 77. Many of today's operating systems ignore deadlock because a) the…
Graphs I want to traverse it, starting at node 1. Which nodes should I visit?
Please help with computer science practice homework. B3 help ASAP. CSC340.03+04+05 B.3-10 Points string makeGreeting(const string& event) { return "Happy " + event + "!"; } string makeGreeting(const double& earning) { return "Happy earning $" + to_string(earning) + "!"; } Please…
step. 4 B 3 E 2 2 5 D 3 3 10
21g( C)7 points) Perform additions in EC:5, 1)+(5,1 where the group of the curve is y^2 = x^3 + 2x + 2 mod 17. The formula is given as: Elliptic Curve Point Addition and Point Doubling x3 = -x1 - xnodp y3 = sx - x3 - ymop where mod p if P # Q (point addition mod p if P = Q point doubling).
unique_ptr<PC> name_uPtr{make_unique<PC>("T7500")};
Please help with computer science practice homework. CSC340.03+04+05 FINAL A.3-10 pts: What is a class that contains a pure virtual function? A. Ea the ] 1 1 Can a pure virtual function have a body implementation? If yes, please provide a sample code to access/invoke that original code function…
200110410 the following using the input stream 5 2-1 10 to the keyboard input variable. cout<<"(N,A,B)=<<"<<N<<","<<A<<","<<B<<")"<<endl; int A,B,N; A=A+N+B; A=2; or ++8; while(N<10) B=2; return 0;
Please help with computer science practice hw Which method most likely creates a memory leak? Why? []move []release []1ock 1OF8
Memory Area 1: Environment - Memory Area 2: Runtime Stack - Memory Area 3: Free-store - Memory Area 4A: Uninitialized Data - Memory Area 4B: Initialized Data - Memory Area 5: Binary Program #include <iostream> #include <functional> using namespace std; static string model; class Car…
C++ Programming 3.3 Task Three: Write a function with the purpose of exchanging the values of two variables. Your function header would be like this: void swap(int &x, int &y). Requirement: > Complete the function definition and a main function to call this function. > Verify that your…
weak_ptr<CSC340> wPtr{make_shared<CSC340>()}; Should we expect an error? Why?
Need this ASAP IN C++ 2nd pass of a) insertion sort ) selection sort 0.9.8.7.6,5,4
Please help me with computer science lab homework. Show your work using pens, not pencils. Your writing must be legible. HONOR CODE - Please follow the CS Department's policies: http PART A - 100 Points A.1 - 15 pts A LucasArts interviewer asks you to explain in detail a major difference…
Finito states 5. Design a deterministic finite-state automaton (draw its directed graph) that recognizes the language given by the regular expression {1}{l}{0,1}{0}{1}{0}{0,1}.
Following loops. For (return 0; B*=2; o L=3) { while (N<10); B++; A=A+N+B; L>=0; cout L--; cout<<B[L][M]; cout<<(N,AB=<<<N<,<<A<<<<<<end; <<endl; for (M=0; M<2; M++)
For the following questions, refer to the database in DISPLAYS AT END, which shows college enrollments for a single semester. The gender field in the Students table contains M for males and F for females, and the grade field in the Enrolls table contains a numerical grade, such as 4.0 for an A,…
C++ code for numerical integration using the trapezoidal rule. The program calculates the area under a curve by dividing it into trapezoids. The final area is returned as the result. The function "integrate" takes in the lower and upper limits of integration (a and b) and the number of…
t[k+1] = t[k] + 4; for(k = 0; k < 4; k++) int t[5]; // values of each specify each member by name and index: // illustrative example array A // member A[0] = 9 // use ? if no value // IV: (5 pts) // consider following program segment: // show the memory…
C++ Following loops. return 0; B = 2; for (L = 3; L > -1; L--) { do { cout << L << endl; } while (N < 10); ++cout; } for (M = 0; M < 2; M++)
3. (10 points) Write two loops, with one nested inside the other, that create the following seven lines of output. Make sure that your output has a space character between every two numbers (and it's OK to have an extra space at the end of every line): 11 12 12 13 13 13 14 14 15 15 15 15 16…
C++ function (floating-point/double) numbers a... polynomial p(x), a) the function declaration b) the function definition. c) a test driver 8. function overloading.
Examine: Are the following set of hash-functions universal? H={hj(0.9-0.9)hiyk=k+jmod10|i=1..10;j=0.9} Explain your answer.
Read an integer from System.in that will tell you how many strings to expect. Then read that many strings from System.in and store them in an array. Then read integers from System.in and give back the value at that index in your array until the user enters a negative number. For example, if the…
Part III. Give a nondeterministic FA in the alphabet {a, b, c} that accepts the language {w/w = abc*a*b*c*abc}.
20 60 20.5 70 12 40 A 30 50
Part III. a) Define Turing-decidable and Turing-recognizable ASUO. b) Give an example of a language that is Turing-decidable. c) Give an example of a language that is Turing-recognizable but not Turing-decidable. d) Give an example of a language that is not Turing-recognizable.
Write a Python program to calculate and print the mean of the following list: list_1 = [1, 23]
A pointer variable which contains the location of the top element of the stack is called A. Top B. Last C. Final D. End 2) When the radix sort is applicable, it is an algorithm. a) O( nlog2 n ) b) O( n ) c) O( n² log2 n ) d) O(log2 n) 3) The predecessor node of a node is called its a) children…
Part I. Let EQREx={<R,S>|R and S are regular expressions and L(R)=L(S)}. Prove that EQREx is a decidable language.
Using C++, write code for inorder traversal for the following tree. Compile your code and then run it to display the code in order. Use a destructor in your code. 60 20.5 70 12 40 A 30 50
• Both old and new clients are clients with the same set of attributes • Unary referral relationship • A client can have several appointments • A loan can be linked only to one appointment • Incorrect includes relationships: either make two separate entities (junior and senior) or use…
14. Functions/Parameters: Write a short C++ program that has a main function with a call to functionA that uses pass by value and a call to functionB that uses pass by reference. What your program does is up to you, as long as it meets the above criteria (and is not identical to the code of the…
11]. EXACTLY what will be printed when this program is run? int a[3] = 2.5.4) id.1u psa; +d>>1+d>>[[e]e>>1+>>+>>>no
Write C++ code to sort the elements in an integer array. Just write the sorting portion. Explain the advantage of your method of sorting over a plain Bubble Sort.
If your goal is to minimize operations done, which would you rather perform: delete a single item from the middle of a static data structure like an integer array - without wasting any memory, or delete a single item from the middle of a dynamic data structure like a linked list? Explain with…
Your code fragment should include preprocessor directives, all needed I/O object declarations, and illustrative code for writing and reading data.
No packet loss; scenarios: (iii) a packet loss with 3 subsequent received duplicate acknowledgements. ii a packet loss with no subsequent received acknowledgments; (b) Describe how the Congestion Window is updated by a TCP sender in the following.
The code should be in JAVA Language. 1. Fill an array of size 10 with random numbers ranging from 1 to 10. Use a single-subscripted array to copy only unique numbers from this array into another array. For example, if the first array has 1, 7, 3, 3, 10, 6, 8, 10, 5, 3, then the second…
The code should be written in JAVA language. Date: 18-12-2018 Time allowed: Two hours 1. Fill an array of size 10 with random numbers ranging from 1 to 10. Use a single-subscripted array to copy only unique numbers from this array into another array. For example, if the first array has 1, 7,…
Write a program to search for a key in a binary tree. Answer true if the key value is stored in the tree, and false if it is not stored in the tree. Search for value 2 in figure b, and value 66 in figure c. t0 70 65 80 (b) (c)
Given is the following UML diagram. I have to convert it into a Java code: Implement the details of the classes as follows: - interestRate is the annual interest calculation in percent. If the interest rate is 1.5%, interestRate = 1.5. - The letAYearPass function causes a year to pass and the…
Java programming application 010011010110 input bit pattern) structure of the program is shown: 2 3. A 12-bit Gray to binary code converter is shown: unsorted and sorted array values each in two single rows separated by two spaces. The create a sorted ascending order values in a 1-D array…
Points 13. Develop a function that executes the equation Stan = i + 2. Function Program: (everybody wants)
Find all employees who were not born during the 1950s. a) using not exists b) using is not Figure 5.6: One possible database state for the COMPANY relational database schema. EMPLOYEE Fname Minit Lname Ssn Bdate Address Sex Salary Super_ssn Dno John B Smith 123456789 1965-01-09 731 Fondren,…
Write a program which performs Caesar Encryption. Caesar encryption is based on circular shifting of the letters by a given amount. See the example runs below for a better understanding. Your program will encrypt the string as follows: - It will shift the letters by the given amount. If it…
Verify the following statements and choose the right option from below: Statement 1: FMS Planning uses part family considerations, process requirements, and physical characteristics of the work part. Statement 2: FMS Design considers production volume, types of workstations, and material…
Questien39 Explain any 2 types of Robot Programming techniques [3 marks (LO4) TT T Arial 312pt TF Pa:p
What letter code/symbol is used in programming for Tools? [1 mark] O Letter "S" O Letter "T" O Letter "F" O Letter "M
Question 32 [4 marks] List 4 major components of PLC. [2 marks] (b) List 2 input and 2 output devices of PLC. [2 marks] (LC4) Arial 3 (12pt) T-2 Pal:p
Which one of the following is the correct statement about MRP? [1 mark] A. The bill of materials file is one of the inputs to the MRP system. B. Planned order releases are one of the outputs of MRP. C. Inventory forecasts are one of the outputs of MRP. D. All of the given answers.
Text: Question 14 Fill in the blanks of the following by applying concepts of Flexible manufacturing systems (5 marks (LO4) i. Planning the production output levels must be coordinated with the plans of the company. ii. Marketing plans for current and new products must be reconciled against the…
Question 13 30 Save Answer Fill in the blanks for NC part programming concepts. A drawing is given below with its partially completed CNC program, but some of the program blocks have missing numbers, you have to fill those with correct values mentioned in the answers. Every block is a question…
Question 11: Both statements are wrong. Both statements are correct. Pick a correct answer below. Statement 1 is wrong but Statement 2 is correct. Statement 1 is correct but Statement 2 is wrong. MacBook Air [2 marks]. L05 rFMS is designed.
Pathif TTTAra Question 9: List two upstream functions and two downstream functions of CIM. [4 marks] MB2NTHEHELMH
Path to understanding State and explain the two sections of a robot manipulator NP2NNTHELEHMHH [4 marks] (LO4)
c++ algorithm inToPostFix (val formula <string>) Convert infix formula to postfix. Pre formula is infix notation that has been edited to ensure that there are no syntactical errors. Post postfix formula has been formatted as a string. Return postfix formula. l createStack…
Assume the segment table shown below: Segment # Base Limit Read/Write 0 300 254 R 1 1370 680 RW 2 558 300 RW 3 2400 200 RW 4 900 360 R The processor creates the following virtual addresses (given in the…
Question 7. (10 points) Branch Prediction The following series of branch outcomes occurs for a single branch in a program. (T means the branch is taken, N means the branch is not taken) TTTNTNTTTNTNT (1) Assume that we are trying to predict this sequence using a 1-bit predictor. The counters…
Searching a Matrix (15 pts) Part c might be a bit of a challenge, so think of it as for fun. You're given an n x n matrix M (with all distinct values) that's super-sorted, meaning that each row's numbers are sorted from left to right, and each column's numbers are sorted from top to bottom,…
40. Synchronization Problem: When implementing an IP router, engineers have a number of processes that read the routing table and potentially multiple processes that write to the routing table (basically a multiple writer, multiple reader problem). Routing tables can have thousands of entries,…
int X[6], C[3]; // HINT: THESE ARE GLOBAL VARIABLES int TestMe(int &Y, int Z) { int A, B; A = 5; B = 2; X[1] = TestMe(A, B); cout << "A=" << A << " B=" << B << endl; cout << "X=" << X[1] << " C=" << C[1] << endl; cout << "W=" << W << endl; cout << "Y=" << Y << "…
Task 4. Write a function closest_point, which takes a K x p matrix X* and a vector x (of length p) as arguments, and determines which row of X* is closest to x. In other words, it returns the index k such that ||x - X*_k|| is smallest. For example, if X* is a 3 x 2 matrix: 3 1 4 3 2 1 and x…
51. Given a process is 4097 bytes and a page size of 512 bytes, how many pages are allocated to the process? What is the amount of internal fragmentation? 52. What is the purpose of the TLB (Translation Look-aside Buffer)? 53. What are the Page Table Base Register and Page Table Length…
36. What is starvation? 37. What is priority inversion? 38. What is the purpose of the dispatcher? 39. What is the purpose of the scheduler? 40. What is aging in terms of priority scheduling? 41. What is a quantum (time slice)? 42. What are the base and limit registers used for? 43. What is the…
28. What is a race condition? 29. What is preemption? 30. What does it mean for a kernel to be preemptive or non-preemptive? 31. What is bus waiting? 32. What does it mean for an operation to be atomic? 33. What are the two types of semaphores? 34. What is the difference between a mutex and a…
Can I get the name of all the components, so that I can design it on "EAGLE" if possible? The EAGLE file for this schematic is RF TX ANTENNA ant GND DATA VCC ANT 2 3 4 5V HT12E 4 1 GND 5V 9 2 4 2 DO 10 3 A2 D1 11 4 D2 BUTTON1 A3 12 5 A4 D3 13 6 A5 TEXTAL1 XTAL2 14 7 A6 15 16 680K R6 10k 8 18 A7…
Please explain - What is the output of the code? ArrayList<Integer> list = new ArrayList<Integer>(); for(int i=1; i<=6; i++) { list.add(i * 3); } System.out.println(list); Answer: Please Explain - What is the output of the code? ArrayList<Integer> list = new ArrayList<Integer>(); for(int i=1;…
With a poorly chosen hash function, it is possible to have a situation in which the search time in that hash table of N items goes as O(1), O(N), O(N log N), or O(N!).
Mention two advantages and two drawbacks of this configuration: An Inside and an Outside Router and a Single-Homed Bastion Host: Screened-Subnet Firewall System. Bastion host (Proxy) Internet Web Server Packet Filtering Router Outside Router DMZ (Screened Subnet) Inside Router Private…
The Leonardo numbers are a sequence of integers defined by the following recurrence: L(0) = 1, L(1) = 1, L(n) = L(n - 1) + L(n - 2) + 1. The first few Leonardo numbers are 1, 1, 3, 5, 9, 15, 25. The Leonardo number problem is as follows: Input: a non-negative integer n Output: Leonardo number…
From the task network below, identify the critical path with each task name in order. Task 1 Task 2 Task 6 Task 7 Task 10
Write a shell script in Unix that displays the following two texts on the standard output: A) The string "hello" B) Consider the diagram below: 1. How many independent paths are there? List them all. 2. How many paths are required to cover all the statements? 3. How many paths are…
Assume a binary data storage system (base = 2) is composed of 10 bits of memory to store real numbers using floating point representation. The system is defined as follows: - Sign of the real number - Sign of the exponent - Mantissa - Exponent - +/- - +/- Please work out the maximum value…
C++ 17. Draw a binary search tree that is created if the following strings are inserted into the tree in the given order: "barrycolin", "amanda", "harry", "daniel", "ruth", "carry" 18. Draw a balanced binary search tree containing the same names given above Page 8 of 14
4N at 25H f k whue adiog the Aat lg luy m on An=1 820-2 +19- n+1n-2 26Sme as above Which of the following pom inom for given graph Gdo Gve B given a planar graph Gin Goin C given a planar graph Gand an integer D All of the above are E None of the above i 28Same as above 29The primality problem…
Question V (10 points): NP-Completeness Consider the following instance f of SATISFIABILITY: (x V x2 V x3 V x4) ∧ (x1 V x2 V x3) ∧ (xi V x2) ∧ (x3 V x4) 1. Following the reduction method from SATISFIABILITY to clique, transform f into an instance of clique for which the answer is yes if…
Please answer 5 and 6. 6. [10 pts] You are tasked to define the testing strategy for a commercial software product your tean responsible to deliver. Be as specific and as detailed as possible in your test proposal.
Let h > 0, x = xo + jh for j = 0, 1, 2,..., n, and let Pn(x) be the degree n polynomial interpolating f(x) at xo,..., xn. Use this polynomial to estimate f'(xo). Produce the actual formulas involving f(xo),..., f(xn) for n = 1, 2, 3, 4. Also produce their error formulas.
Text: Java T8 (5 points) Hint: 15%13=2, 80%13=2, 210%13=2 Hashtable: Index 0 hash table #probes T94 (points) sorted. public static void newmergesort(int[] a, int top, int bottom) { if (top < bottom) { int middle = top + bottom / 2; insertionsort(a, top, middle); …
Java 2 Part 11: Programming π(2+8 points) The root value is higher than all values of its left subtree. O O Left tree (yes/no): Right tree (yes/no): b Please write a method search(treenode t, int value) that returns the number of times the integer input parameter value is in such a tree t.
Title: Help in C++ for Bank Account Class Review Problem (float). Besides the set and get functions, the class has two functions: A function that deposits a certain amount into the account. a) Complete the following header file bankaccount.h for the class BANKACCOUNT: #ifndef…
Let fn be the n-th Fibonacci number. Use strong induction to prove the following: fn+1 > 1.6fn, n > 4 Base case: Show true for n = 4 and 5: n = 4: lhs = f4+1 = f5 = 5, rhs = 1.6f4 = 1.6 * 3 = 4.8 lhs > rhs, so true for n = 4 n = 5: lhs = f5+1 = f6 = 8, rhs = 1.6f5 = 1.6 * 5 = 8 lhs > rhs, so…
Please provide answers for questions 47 and 48 respectively. A B C Save D CURSE 48. Hypothesis Testing: We are examining changes in just independent variables. C. Examining changes in just dependent variables. D. Examining the participant observable behavior. 49. In the following screen, what…
How does 256Kx8 equal 2MB and how do they get 4 chips? I'm confused with units, so please show all work. Thumbs up if great. 256K x 8 RAM (2 MB) - Three-state outputs are connected together to form 8 data output lines. - Just one chip select (CS) will be active at any time. The RAM requires…
Name: Fall 2018 ITEC 320 Part 1: Closed Book Prot. Salayka 1. What is the difference between == and in JavaScript Multiple Choice 2 pts each) . = is not a valid operator in JavaScript b. They are both the same operator c. Tests Equality of only value, tests equality of only type 2. Which of the…
MATH2107 LANC2160 HIST1010 ENCR1600 CHEM1071 function to compute the semester GPA and display it to the user. be {3.1.1.2.3.4}, and n-6. The function should return 2.69. For example, if the student has the following grades. One can call the function to compute the semester GPA by passing the…
The following model: Program Design = Data Design + Algorithms Design level (any) and assembly languages. DATA Representation Simple Data Types - Integer Real Character string Composite Data Types Array Record Array of Record 5-10) Sequence, iteration, and selection are the fundamental…
Using Python, please write out a code using the following algorithm. Notice the active set is derived from "bforalle". 2. Case 1: If yF MEJ u0 for all J, then the point g minimizes to CP and the algorithm stops. 3. Quadratic Optimization 4. Otherwise, choose an index s J with u<0. For example,…
Java from the list by 10 removes the rightmost digit. 126/10 is 12. So that takes in an integer k. The method then removes every a buffer node.
Write a MATLAB program for Part C. Parameter.[4 marks] function blocklist = Read(n) blocklist = strings(n) for i = 1:n R13 eMa c Write a function that counts the blood types of the donors. The function prints the number of donors with blood types A, B, AB, and O. This function must…
What is the relationship between the design of a company's information management system and the company's business practices? How does a company's organizational structure affect the design of the company's information management system? What are the three capabilities desired in most company…
g. The following is the forwarding table of a router X Destination Network 223.92.32.0 Subnet Mask /20 /19 /12 /14 /1 /2 /3 Outgoing Link Interface A B c D E F G 223.81.96.0 223.112.0.0 223.120.0.0 128.0.0.0 64.0.0.0 32.0.0.0 State, to what outgoing interfaces will these arriving packets, with…
This is programming in Java. Can you please answer this question within 20 mins? It does not have to be complete. Just show some basic work. List all the elements from front to rear of an initially empty queue q of integers after the following code is…
Section 4 - Introduction to Assembly 5. Change the following high-level code into MIPS [20pts]: a. High-Level Code: # x = $s0, $i = $t0 x = 0; for (i = 0; i < 8; i++) { array[i] = 3 * i; } b. High-Level Code: int linfunc(int x) { int y = 2 * x + 3; return y; }
3. [10pts] Implement the function Y = AB + BC with the following: a. A 4:1 multiplexer b. A decoder and an OR gate
32 64 12.8 Section 1 - Numbers 1. [10pts] Perform the following calculations in binary (assuming a signed 8-bit system): a. 63 + 15 b. 75 - 23 c. 13 + 45 d. 52 - 38
Can the following expressions be unified? If so, give the unifier. (a) UNIFY(pointer(a), pointer(pointer(b))) (b) UNIFY(boo, Baz) (c) UNIFY([H, T], [a, b, c]) (d) UNIFY(foo(a), foo(X, Y))
Text: canvas.csun.edu Computer Science 182 Flashcards comp182 Flashcards constants, variables, and methods Constants and Variables Question 27 2 pts Consider the Java class for a generic single linked list node below. What statement goes in the blank in line 1? 1 public class SLLNode<E> { …
True True False False deg=e. And then we can get at least one spanning tree. Given a connected graph G=V,E, remove an edge from any circuit. Let G=V,E be an undirected graph with e edges, i.e. E=e.
Question 16 Which ADT has an insertion and removal policy based on "fairness"? O queue O linked list O stack O binary search tree Question 17 Consider the following code fragment: Integer a = new Integer(10); Integer b = new Integer(28); System.out.println(a.compareTo(b)); What is true about…
39. What should be the primary change in the following screen? 1. MSIE5.X 47% 43% 2% 2% 1% 0% 2. MSIE6.X 154125573 3. Netscape 4.x 4. MSIE4.x 9869530 8169025 5. Netscape comp. 6. Opera x.x 3753432 3226772 A. Align the text column on the left. B. Align the numbers on the right. C. Provide…
canvas.csun.edu Computer Science 182 Flashcards 182 Part 2 Flash Question 9 2 pts All binary search tree insertions are at leaves. O True O False Question 10 2 pts All binary search tree physical deletions occur at leaves. O False Question 11 2 pts In a graph's Breadth First Search (or Depth…
Microsoft Internet Explorer This remote vendor has no vouchers that are ready to pay. (7250, 119) OK Cancel A. Having Cancel and OK Buttons. B. The numbers in the parentheses. C. Text is misleading. D. Icon is not relevant for an error message.
Transaction Date: 05/14/2003 ET Accounting Date: 05/14/2003 Transaction Code: Rate Type: CRRNT A. Remove Date from first and second label. B. Remove icons from second and third field. C. Align the fields horizontally. D. None of the above.
29. What would you change in the following screen? Inside PeopleSoft Weather News Employee Dashboard European Weather InfoSphere News Events Calendar Weather Reuters News Photos Manager Dashboard PeopleSoft Directory Search Finance ClearStation Stock A-List EDGAR SEC Filings Search Hoovers…
27. What would you change in the following screen? Bills Consolidated Business Select the bill you wish to view. If the bill you are looking for does not appear in the list below, use Bill Search. Bill List Invoice Number Invoice Date Due Date Pay Invoice Amount Current Balance…
What is the post order traversal for the following binary search tree? chegg -Google Search linked list Question 25 2pts Consider the following program. Evaluate line 9. What is the result Variable var? 1 import java.util.Deque; 2 import java.util.ArrayDeque; 4 public class FinalQuestion…
9. [10 points] Write a recursive Scheme function remove-last L, which returns a list. This function: >remove-last() >remove-last3() >remove-last1532 153 then reverse the result - do NOT use such an approach.
Question 22 What is the post order traversal for the following binary search tree? Oabegfd Oabdefg Odbafeg Question 23 When programs run, they require memory allocation each time a method is called. For example, the memory is used to store the arguments to the method and the method's local…
4. [9 points] In most languages, local variables are allocated dynamically on the stack, thus introducing a run-time overhead caused by stack maintenance operations. Why not just reserve a memory region for each subroutine's local variables, and allocate them statically there?
The format for date in MYSQL is: A. YY/MM/DD B. YYYY-MM-DD C. YY-MM-DD D. None of the above
25. Which of the below is not a property usually referred to by the acronym ACID? A. Atomicity B. Consistency C. Isolation D. Durability
Question 17 5 pts For the binary search tree shown below, which node is the replacement node after you delete 91? 59 59 84 91 05
Can you sort a column using a column alias? A. True B. False C. Both of the above D. None of the above.
Database Assignment MC-1 The process of developing the conceptual schema is the result of: a) Logical Design b) Conceptual Design c) Physical Design d) Database Design MC-2 The number of entity classes in a relationship is known as: a) Data Modeling b) Database Design c) Degree of the…
3.(10 points) Explain round robin scheduling and weighted fair queuing Which one is more fair and why?
x&y; b. (5 points) What will be the output of the C code int main() printf("%d" return 0;
Rewrite the logic in code fragment 1 such that it uses a: a. while loop b. do-while loop for (int i = 10, sum = 0; i > 0; i++) { sum += i; }
Fill out the blanks in each question: a. With 5 Flip Flops, we can get a maximum count of 40. b. With 5 Flip Flops, we can divide the frequency by a maximum of [missing value]. c. When pulses are fed to the timer from the outside, it is called [missing value]. d. When clock…
2.(Bonus) Design the PLC ladder logic for traffic light operation of a cross-section with pre-set timers for each direction.It is required to have a yellow warning light before turning green. An initial push-on button (that can be latched) to start the operation is also required.
Measuring the usability is hard in User Interface Design. We introduced five approaches to quantitatively/numerically evaluate usability in short, TSERS: (T or F) T means Testing the user interface thoroughly, (T or F) the first S stands for Speed of performance, (T or F) E means Error rate of…
35 is used to filter records that work on summarized GROUP BY results. A. Set B. Filter C. Group Exclude D. None of the above.
16. Non-prime attribute is A. Any super key of a table B. An attribute that is not part of any candidate key C. Any column that is not a primary key D. None of the above
10 1 top (b Array indices copy constructor peek pop What method is this? 102030 C. Given this graphic of an array-based stack. default constructor return items[top]: assert(isEmpty()) template<class ItemType> B. Given the following code copy constructor pop return result CSC326 What would be…
A special supervisor call instruction (SVC) is provided to SIC/XE. SIC does not support memory-to-memory move instructions, but SIC/XE does. LDA #5 is a valid instruction for SIC/XE but not for SIC. In SIC and SIC/XE assembly programming, the assembler directives such as WORD and RESW are…
Given a balanced binary tree with (2^8-1 or 255) nodes, how many of the values are at leaves? A) 127 B) 255 C) 128 D) 256
Text: capability. bits/word. (2 points) How should the memory design be modified to access 8 words with 3 bits/word? (2 points) How should the memory in (a) be modified to have 6 bits/word instead of 3 bits/word?
(S points) if(a==7) c=1; else c=0; (5 points) while(a<b) { a=a+c; b++; } c=b; (5 points) for(b=1; b<=c; b++) { a=2; }
need this urgent please thank you very much capability. bits/word. (2 points) How should the memory in (a)be modified to have 6 bits/word instead of 3 bits/word.
In Java 6. (4 points) What will be the output of the program? Try int x = 10; int y = 5 / x - 10; catch (ArithmeticException ac) System.out.println("Arithmetic Exception"); catch Exception e System.out.println("Exception"); finally System.out.println("finished"); 7. (4 points) What is…
C.db.collection.add D.None of the above 48. Which of the following is not true about modifying rows in a table? A. Existing rows in a table are modified using the UPDATE statement. B. You can update more than one row at a time. C. All the rows in a table are modified if you omit the WHERE…
For the AVL tree shown below, what is the load balance of node 60 after inserting 190?
Solution: 3 = -0.3x^2, uk = -Kkx. Is this a batch solution or a recursive solution? A. Consider a control sequence in the form of u0 = -0.1x0, u1 = -0.2x0. 4. [20 points] For optimal control problems, there are two types of solutions: batch solution and recursive.
For the binary search tree shown below, which node is the replacement node after you delete 91? 05 84 59 91 search
Given the following hash table of size 11, after inserting entries with keys 34, 44, 55, 39, and 66 using double hashing with the following functions: hk = k % 11; hk = 7 - k % 7; What is the index of inserting the key 22 into the table? index key 44 34 2 3 59 60 39 5 6 8 6 10
Question 16 5 pts For the binary search tree below, what is the post-order traversal? 85 91 5 515485159848591 851555148845991 548598451159185 85 15 9155148 84 59
Would the size of each table (i.e., the number of entries in each table and width of each entry). Now consider a simple branch predictor (with 3-bit predictor but only a single table of the same size as the total space taken by all tables in (a). How many low order bits of address will this…
What is the Big O notation for the following expression n^3 + n^2 + n? O(n^3)
7. Suppose that a workload has a baseline CPI of 1.0, and on average uses one branch instruction every 9 other instructions (10%). Additionally, suppose that the branch is taken only 25% of the time. To compare the two options for handling this, we need to compute the overall CPI. Option (a)…
Problem 6: Induction and Recursion (10 points) a is recursively defined by the following two rules: Rule 1: a = 2eS. Rule 2: xES, yES, x+yES.
Problem 4: Algorithm Complexity (7 points) Numbers 2 [4 points]: Use the definition of the fact that fn is O(g(n)) to show that log(n) + n^3 is O(n).
1) Use linspace and plot commands to graph sin(x) for x values ranging from 0 to Ï€ using 300 points in the range. 2) Input the complex numbers z = 4 + i5 and z = -7 + i9 into MATLAB and do the calculations: a) Re(z) b) Im(z) c) z^2 d) Magnitude of z e) Angle of z 3) Write a…
please ignore writing on bottom 5.(20 points:5 point each Complete the following arithmetic operations in two's complement representation. What are the value of the carry flag and overflow flag?(Assume a six-bit 111111 system) 31+11 12 1107-7 15-19 -7x(-3 .-7x(3)
Assume: System: 5-bit machine Cache: 8 blocks, 1 word/block, directly mapped All memory locations contain valid data Data was acquired by the CPU either from cache or DRAM. 1. Complete the following table. Memory address | Binary Address | Tag value | Cache…
a. What occasions will end a transaction? (5 pts) b. Describe the ACID model of database transactions. List out not only the four database properties but also briefly explain them. (10 pts) S-STAPFYRANSACTHIN e. The following statements show an example of using a savepoint. Explain why we use a…
2.a Describe physical backup and logical backup. (10 pts) (b) Which one is faster? Why? (10 pts) (c) Is the mysqldump program used for logical backup or physical backup? (5 pts) Write a command to back up the Users' Table in the CS495 database using mysqldump. (10 pts)
Write up a page that has a selection dropdown and a button. Have the options be a list of things that interest you! Each time the button is hit, look at the currently selected option and write more to the page, explaining the selection in detail. Each time a new one is chosen and the button is…
This code assigns the value 10 to all odd elements of an array. All even elements of the array are assigned 20.6 points. int[] a = new int[251]; // your code goes here
Text: Match these style properties with their uses: z-index, display, rgb, vertical-align, flex-direction, text-align. A. can resolve which of several overlapping elements will be fully displayed. B. can stack elements vertically. C. can avoid a ragged right margin. D. can define a flex…
Use the information below to answer questions #11 through #13. Assume int *ptr is located at memory address 48 and int num is stored at memory address 60 and contains the value 3. Based on this information, answer the following questions. If the code would result in an error, select…
Q9: Complete the following code. Your code should allocate memory for an Employee structure. typedef struct emp { int employeeID; char name[16]; int salary; } Employee; Employee *createEmployee(int id, char name[], int salary) { Employee *e = (Employee *)…
What is the software that powers server virtualization technology in cloud computing? - OpenFlow - SNMP - SDN - Hypervisor What type of hypervisor would be loaded in a host OS in order to provide virtualization? - Type-1 - Type-2 - Type-3 - Type-4
MA Which margin specifications set the bottom margin to 8px? margin:8px; margin:8px 4px; margin-bottom:8px; margin:4px 8px 4px 8px; QUESTION 26 When specifying margins other than 0, units are required. True or False? QUESTION 27 To ensure that an input element belongs to a specific form, use…
In the style rule table { border-collapse:collapse; color:#e0e0e0; }, match the rule components with their descriptions: declaration block (B), selector (A), value (E), declaration (C), property (D). QUESTION 22 The selector "h1,h2" applies to: all h1 and h2 elements (O). QUESTION…
MA Specifying the width= and height= attributes of an img element keeps the image aspect ratio constant, allows the browser to layout the image before it has been received, reduces the download time needed for the image, and scales the image if necessary. QUESTION 13 The style attribute has…
I need help writing the code for this problem!! 6. Suppose a new MACRO instruction was added to the set in the book. This new instruction is called ANDD (AND direct) and will use a 4-bit opcode and a 12-bit address to specify a location in memory that is to be bitwise AND'd with the…
A Python function which asks the user to input a number (x) and returns "even" if x is even, and returns "odd" if x is odd.
blieatstie voiaminiring l argo 1! yet..itinmethod(2.5)) //3 points yw.itinmethod2(3.10.S) //3 points yet..eintinmethod(7 //3 points ystam.t.grintinmethod4(3.8.85.false) //3 points 17/e1n yt.eut.printinmethod5(2,20 //3points puiie etatic int sethodi(int x, int y { 11y6 etnxy/2 niae…
FDU Fine Home ByrneTube How To Join Taking Question 5 of 12 - Subject: Computer Topic: Processors Time Remaining: 1 hour If a processor does not have a subtracter, it could subtract with the help of: O true O false - using an incrementer O true O false - adding the negative of the number being…
FDU Byrne f.in Home ByrneTube How To Join Taking Tests Question 8 of 12-Subject Complications Topic: Processors Time Remaining 1 hour and 3 minutes A line of Java - if (C > 0) O true O false - uses the shifter O true O false - compiles into 1 line of machine code O true O false - compiles into…
Thank you and thumbs up. 1. If/Else Simulation 10 points if a < b - a > b { a = a - 10; } else { b++; } System.out.println(a + 1); Method Call Output ifElseMystery10, 3; ifElseMystery6, 6; ifElseMystery3, 4; ifElseMystery4, 20;
(b) Write P(k) and use Mathematical Induction to prove that P(n) is true for all positive integers n. (c) Write P(k+1). 7.10 Consider the following theorem: if x and y are odd integers, then x+y is even. Give a proof by contradiction of this theorem.
a) (6 points) State a key (candidate key) for Repayment. loans in problem 2). dependency that causes it.
Problem 3: Functions, Sequences and Sums 15 points (1) [5 points] Show that f () = 22 +9 +99 is a one-to-one function from Z to Z. 30 (2) [5 points] Compute the sum (2i+1 2i). 30 1 (3) [5 points] Compute the sum k(k+2) k=1
Alt Fn E Ctrl 5.10 Find the number of subsets of S = {1, 2, 3, ..., 10} that contain exactly five elements, including 3 or 4 but not both.
1 ... 899 900 901 902 903