• Home
  • Ask directory
  • AP CS
  • December 2024
  • 21

AP CS Q&A Archive of December 21, 2024

Select Question

December 21 of 2024

Simplify $\left(1 + \frac{1}{a}\right) \cdot \left(1 + \frac{1}{a^2}\right) \cdot \left(1 + \frac{1}{a^4}\right) \cdot \left(1 + \frac{1}{a^8}\right) \cdots \left(1 + \frac{1}{a^{2^{100}}}\right)$
2. The following figure shows a two-dimensional generalization of the single-bit parity scheme. Correct the bit-error/errors for this scheme. (Note: show the two solutions) Row Parities 11001111 10011011 01110010 01010111 01010101 Column Parities
Zello Canada keeps a record of its employee turnover annually. It currently has a data set that contains turnover for the past 20 years. What type of data does it have? a. ordinal data b. cross-sectional data c. time series data d. categorical data
QUESTION 5 When instruction or \$9, \$10, \$9 is executed on a multi-cycle MIPS CPU, select all the correct answers from below: At the 2nd cycle, the content of \$10 is written into register B. At the 2nd cycle, ALU is performing or operation. If the content of register B is flipped by a fault…
Give all super keys and all keys that can be induced using the following table. Note that this question will be evaluated based on either whole or nothing A B C a1 b1 c1 a1 b1 c2 a2 b1 c1 a2 b1 c3
Fatima enjoys online shopping because it allows her to buy things from a wide range of categories from the convenience of her home. She recently bought a food processor online. In this scenario, Fatima is involved in business-to-consumer e-commerce business-to-business…
6. Magic Dates The date June 10, 1960, is special because when it is written in the following format, the month times the day equals the year: 6/10/60
Consider the car theft problem with attributes Color, Type, Origin, and the target, Stolen can be either Yes or No. The dataset is represented as below. Use Naïve Bayesian classifier to predict whether a Red SUV Domestic is getting stolen or not. Example No. Color Type Origin Stolen? 1 Red…
(a) You are asked to design a database which will hold data about university students, academic advisors, their club memberships, the moderators of the clubs, and the activities that the clubs sponsor. Attributes required: Student: StuName, Major, Credits Advisor: AdvisorID, AdvisorName, Dept,…
Which answer correctly orders different types of memory in increasing order of speed? Processor register, SRAM, DRAM, Hard Drive Processor register, Hard Drive, DRAM, SRAM Hard Drive, DRAM, SRAM, Processor register DRAM, SRAM, Processor register, Hard Drive
Problem 7 (6 points) Suppose you were trying to prove that the language $\{ab^{n+1}c^nd \mid n \in \mathbb{N}\}$ is not regular and you are using the proof by contradiction using the pumping lemma style proof we discussed in class. You decide to prove this using the string $s = ab^{m+1}c^md$…
Discussion-SDLC 1. Discuss the ethical and legal aspects of software development, including data privacy, security, and compliance with regulations.
Q4. Convert the following Context Free Grammar into Chomsky Normal Form (S is the start variable). $S \to 0A0 \mid 1B1 \mid BB$ $A \to S \mid \varepsilon$ $B \to S \mid A$
7. (15pt) Consider the following ARM code. ldr r0, [r1] add r2,r0,r0 Our ARM architecture is implemented in 5 stage pipelining: IF, ID, EX, MEM, WB. Assume that the load instruction requires 4 cycles at MEM stages. The other stage takes a cycle. Therefore, it takes 10 cycles to execute two…
Q1. Considering a system with five processes P1 through P5 and three resources of type R1, R2, R2 and R4. Suppose at time to following snapshot of the system has been taken: Currently Available Resources R1 R2 R3 R4 2 1 2 0 Current Allocation Max Need Process R1 R2 R3 R4 R1 R2 R3 R4 P1 0 0 1…
Write a function `digit_sum` which accepts a single positive integer argument stored in `$a0` and computes the sum of the digits of that argument recursively. For example, the sum of the digits of 1972 = 1+9+7+2=19 Your implementation must be recursive. An iterative solution will earn no credit…
Question 17 8 pts Consider the paths of the execution of BEQ instruction in this single cycle datapath design. Assume the comparison return TRUE. Fill in the appropriate control signal values in the table below. Inst Memory Adr Instruction<31:0> Rs Rt Rd Imm16 nPC sel RegDst Rd…
Protecting against computer security threats and designing ways to handle data storage are jobs done by someone who has studied a. computer science. b. computer engineering. c. information systems. d. software engineering.
Which of the following acronyms represents an American association that is most similar in function to the Canadian Standards Association? NIOSH Select an Option -- NIOSH 1 point) ANSI ACGIH ISO itive strain injuries, while working with microscopes in the laboratory
Q3 - Below figure shows the one line diagram of a three-phase power system. Lines 1 and 2 have series reactances of 60 and 80 $\Omega$, respectively. The data are given as follows: G: 90 MVA 22 kV x=0.18 per unit T1: 50 MVA 22/220 kV x=0.10 per unit T2: 40 MVA 220/11 kV x=0.06 per unit T3: 40…
What is the value of the status register SREG after executing the following code: LDI R16, 0x18 LDI R17, 0x92 ADD R17, R16 Select one: a. 0x25 b. 0x92 c. 0x14 d. 0x21 e. 0xCE f. no-one of the mentioned g. 0x1A h. 0x23 i. 0x35 j. 0x01 k. 0x00 l. 0x20 m. 0xAA
For each item, identify whether the component is an offered product or acquired product from the perspective identified. A15 Bionic Processor as used in the Apple iPhone A. Offered Snapdragon 845 SoC as used in the Samsung Galaxy S9 B. Acquired Google Tensor Processor as used in the Google…
11. (5 pts) An empty hash table hashTable has 5 buckets and a hash function of key % 5. The following operations are performed in order. Select the operations (put x in front of that operation) that cause a collision. HashInsert(valsTable, item 15) HashInsert(valsTable, item…
Question 9 6 pts Convert the following base 10 number into single precision floating point Binary representation using IEEE 754 standard. -18.59375 Some powers of 2 for your convenience: $2^{-1} = 0.5$, $2^{-2} = 0.25$, $2^{-3} = 0.125$, $2^{-4} = 0.0625$, $2^{-5} = 0.03125$, $2^{-6} =…
Q.11 An 8-bit number represents a coded function, bit 3-4 describe the operation to be performed on the number in bits 0-2 and 5-7 00 Add 01 Subtract 10 Divide 11 Multiply Write a function to extract the number and operation. Q.12 A plant controller is connected to a series of sensors along a…
A CNN model is used for sentiment classification and applies a filter of size 3 $\times$ 4 (3 words, 4 embedding dimensions) to a sentence represented by an embedding matrix $S$ of shape 5 $\times$ 4. Given the following data: 1. Sentence matrix $S = \begin{bmatrix} 0.2 & 0.3 & 0.4 & 0.1 \\ 0.5…
People working in this field may design software, solve problems such as security threats, or come up with better ways of handling data storage. a. software engineering b. computer science c. information technology d. information systems
Assume that boolean done = false, int x = 10, int y = 11, String s = "Help" and String t = "Goodbye". Then the expression (!done && x <= y) is false. True False
1. Draw a syntactic tree diagram of the following sentence, and identify the X'-schema where applicable: John hopes that the sky will rain.
We assume that all memories are initialized by 0 and the branch result is known in an ID state. In addition, let us assume that all memory accesses are cache hit. Instruction Sequence strcpy: subi $sp,$sp,4 sw $s0,0($sp) addi $s0,$s0,2 L1: add $t1,$al,$s0 lb $t2,0($t1) add $t3,$a0,$s0 sb…
Part 3 (continued) Let M = The set of strings over the alphabet {a,b} in which every "a" is followed by a “b” (Yes, this is the same language as on the previous page) Problem 3c (6 points) Write a regular grammar for M. (If you write a grammar that is context-free but not regular, you will lose…
Provide the base 10 (decimal) values for the following representations of the 8-bit value 1101 1000. Also, provide the powers of 2 used (as a comma separated list with ascending values without spaces like: 2,3,5) and the bias value (a single decimal value) where asked: • Unsigned: •…
Question 16 8 pts Consider the paths of the execution of SLTI instruction in this single cycle datapath design. Fill in the appropriate control signal values in the table below. Inst Instruction<31:0> Memory Adr Rs Rt Rd Imm16 nPC sel RegDst Rd Rt Equal ALUctr MemtoReg 1 0 MemWr RegWr Rs Rt Rw…
Question 2 1. Build the next-state and the output tables of the circuit described by the following graph. 00, 11/1 S0 01/0 00/1 00, 01/0 10, 11/1 10/1 10/1 01/0 S3 S1 11/0 11/1 01, 10/1 S2 00/0 1) Is this graph representing the behavior of a Moore or Mealy machine? 2) Build the next-state and…
are portable computing devices with a touchscreen interface. a. Chromebooks b. Supercomputers c. Tablets d. Desktops
What is the value of j that is printed at the end? #include <stdio.h> int main() { int i, sum=0; for(i=0;i<10;i++) sum += i; printf("%d\n",sum); }
These two ways to set up a String will not yield identical results: String my\_string = new String("a bunch of words"); String my\_string = "a bunch of words"; True False
Which of the following has the function growth rates (from our algorithm analysis discussion) in the proper order from smallest to largest? n log n nlog n $n^2$ $2^n$ log n n nlog n n! $2^n$ log n n nlog n $2^n$ $n^3$ log n n nlog n $n^2$ $2^n$
You can use a function before defining it, python will look for the definition elsewhere in the file True False
Question 14 Which XXX would replace the missing statement in the given Java remove() method for the MaxHeap class? int remove() { int maxValue = heapArray[0]; int replaceValue = heapArray[heapSize - 1]; heapSize--; if (heapSize > 0) { heapArray[0] = replaceValue; XXX return…
You accidentally select an unknown link in an email, and your system seems to be running very slowly. Which of the following actions will help keep you and your organization secure? Delete the message and monitor your computer for other problems. Report it immediately. Delete your web browser…
You are going to design a combinational circuit which has 4-bits binary input (w, x, y, z) and 5-bits BINARY CODED DECIMAL output. The output of combinational circuit is going to be displayed on 7-Segment as 2-digit Decimal Number. 4-Bits BCD Converter Circuit has the features below; • Circuit…
Part 2 Let L = The set of strings over the alphabet $\{a, b, c, d\}$ where the string MUST CONTAIN only letters in alphabetical order So, for example ... These strings ARE in L cc accd aaabbccd a $\lambda$ abcd bbbbdddd abbbbd These strings ARE NOT in…
Workers in the information technology field make sure the technology infrastructure is in place to support users. This may include all of the following except a. making software recommendations. b. making hardware recommendations. c. setting up a network. d. writing software programs.
Q2. Consider the following set of processes, with the length of the CPU burst given in milliseconds. Process Arrival Time CPU Burst P1 0 7 P2 1 4 P3 2 3 P4 3 6 Draw the Gantt chart & compute the average turnaround and waiting time for the processes in the above table using Shortest Job First…
Software engineering involves the a. study of computer hardware and software systems. b. design of information systems. c. writing of software programs. d. technology infrastructure is in place to support users.
What type of computer is sometimes arranged into computer clusters? a. tablets b. supercomputer c. wearable computers d. desktop computer
Hexadecimal numbers are used for representing color digitally. For example the hexadecimal number C7BDE9 represents this color in the RGB color system. The first pair of digits represents the amount of red, the second pair is green, and the last pair blue. Convert each of the following…
Which of the following code segments is an example of a nested if statement? if a == b: print(a) else: print(b) a = a - 1 if a > 0 else a = a + 1 if a == b: print(a) if c == d: print(c) if a == b: print(a)
Question 10 5 pts Convert the following single precision floating point Hex representation into decimal (base 10) number using IEEE 754 standard. 0x02BA0000 Some powers of 2 for your convenience: $2^{-1} = 0.5$, $2^{-2} = 0.25$, $2^{-3} = 0.125$, $2^{-4} = 0.0625$, $2^{-5} = 0.03125$, $2^{-6} =…
Computing power refers to the \_\_\_\_\_\_ of data that a computer can process and the \_\_\_\_\_\_ at which it can be processed. a. complexity; accuracy b. types; accuracy c. amount; speed d. diversity; reliability level
2. Dijkstra's algorithm can be used to compute least-cost paths from a source. In the graph below, what is the shortest distance from node A to each of the destinations (B, C, D, and E)? Also in what order does Dijkstra add the nodes (B, C, D, and E) to the final set of least-cost paths? Show…
15. You are given a data set representing the monthly sales of a retail store in different product categories. The sales data is stored in a matrix, where each row corresponds to a specific month, and each column corresponds to a different product category (e.g., electronics, clothing,…
The signal $o(t)$ shown below, is fed into a PCM system to obtain a digital representation for this signal. The signal $o(t)$ is nonzero only in the interval 0 to 21 milliseconds. The signal $o(t)$ has a spectrum $W(f)$ which is also shown below. $W(f)$ is non-zero in the frequency range…
Which of the following BEST describes riser data cable? Cable that passes between two floors and must be fire-stopped Cable that is only used for fiber optic connections Cable that is specifically designed for outdoor use and exposure to the elements Cable that is used for horizontal runs…
← Alloc→ ← Req→ ← Avail A B C A B C A B C PO 0 1 0 7 4 3 1 3 2 P1 2 0 0 0 2 0 P2 5 0 2 4 0 0 P3 2 1 1 0 1 1 P4 0 0 2 4 3 1
QUESTION 5 Which of the following standards for wireless encryption is considered the weakest? WPA. WPA2. WPA3. WEP.
For each authentication method, select Yes if it is part of multifactor authentication or No if is not. Note: You will receive partial credit for each correct selection. Answer Area Biometric data such as your fingerprint The security code on the back of a credit card An SMS-generated PIN that…
Question 15 8 pts Consider the paths of the execution of SLT instruction in this single cycle datapath design. Fill in the appropriate control signal values in the table below. Inst Memory Adr <0:15> <11:15> <16:20> <21:25> Instruction<31:0> nPC sel RegDst Rd Rt Rs Rt Rd…
The speed of a processor is measured in a. megabits per second (Mbps). b. hertz (Hz). c. megabytes (MB). d. revolutions per minute (RPM).
Question 11 9 pts Translate the following MIPS instruction into machine code by filling in the blanks accordingly. beq $s0, $t0, Label <There are 4 lines of instructions here> Label: <An instruction> For 1-6, fill in binary number by entering the correct number of bits in each blank with no…
In which of the following situations would it be appropriate to use a Python set? Select zero or more below: Storing information about a collection of countries, in which each country is represented by a unique mapping that maps cities in the country to that country's current population, which…
Decimal A B Sum Carry Out C0 9 + 5 9 - 5 9 + 13 10 + 6 6 - 10 9 - 9
The Manager class inherits from the Employee base class. The Manager class overrides the get\_salary() function. What is wrong with the following definition of get\_salary() in the Manager class? double Manager::get\_salary() const { double base\_salary = get\_salary(); return base\_salary +…
There are many types of input devices. Some examples of input devices are keyboards, scanners, bar code readers, and a. printers. b. RAM. c. central processing units. d. smartphone touchscreens.
In this project, you will build a system to maintain the information of districts and cities. Your program should read a set of districts and their relevant information from a file named district.txt The format of the input data is as follows: district:town:population: elevation:…
To determine if an invention is obvious in the context of receiving a patent, what do the patent office and courts look at? The difference between it and existing technologies to see if that difference would be unexpected to someone unskilled in the field at the time of patenting The difference…
Fuzzy Logic Control HW The input-output data of a system is given in which it has one input u as the voltage and output is the response of that black-box system y, and t is the simulation time for the system response. The structure of the system is completely unknown and we are going to model…
What is the output of the following code snippet? class Employee { public: Employee(); Employee(string new\_name, double new\_salary); void set\_name(string new\_name); void set\_salary(double new\_salary); string get\_name() const; double get\_salary() const; private: string name; double…
Any computing device with storage and network connectivity can be considered A) processor B) edge computing C) actuator D) transceiver E) fog node
Question 2 0.5 pts Rotational delay is the disk rotation time after the seek operation but before data is either read from or written to the disk surface. True False
Q1. Construct a Context Free Grammar for each of the following languages: • L = {$a^n b^m c^{2n+2m}$ | n≥0, m≥0} • L = {$a^i b^j c^k$ | i=2j or j=2k} • L = {$0^n 1^m$ | n≤m≤2n}
Question 5 How many times will the following print statement be executed? for x in range(10, 5, -2): print (x) 1 2 3 4 None of the above
Python is a compiled language True False Python is a compiled language True False
Consider the following code snippet: class BaseClass { public: BaseClass(); virtual void set_data(int new_data1); private: int data1; }; BaseClass::BaseClass() { data1 = 0; } void BaseClass::set_data(int new_data1) { cout << "BaseClass set_data" << endl; } class DerivedClass: public…
A digital computer uses mechanical operations to perform calculations. Select one: True False
Question 9 (Mandatory) (10 points) Which of the following is a correct declaration of an abstract class? abstract void PrintAll(void); void PrintAll(void) { }; void PrintAll(void) = 0; None of the above are correct.
Sam has used malware to access Sally's computer on the network. He has found information that will allow him to use the underlying privileges without needing the plaintext password. Which of the following types of attacks did he use? Password sniffing Pass the hash Dictionary attack Rainbow…
What is a Cisco developer program community that allows the user to learn, connect, inspire, and code and consists of coordinated developer tools and sandboxes? Cisco Learning Network LinkedIn IEEE
(8 pts) 2. a. Consider the weighted graph below. Use the Bellman-Ford algorithm with source node = 0 to find the shortest distance to all other nodes. Show the successive distance and predecessor arrays. (6 nodes → max 5 hops needed) BELLMAN-FORD (G, w,s) 1 INITIALIZE-SINGLE-SOURCE (G, 5) 2 for…
Suppose you have an unfair dice such that if you roll it, the probability that each odd number (i.e., 1, 3, 5) appears on the top is $\frac{1}{4}$, and the probability that each even number (i.e., 2, 4, 6) appears on the top is $\frac{1}{12}$. (1) Suppose that you roll this dice exactly once. •…
The point (0,0) always represents the upper left corner of a given canvas. True False
Question 29 (Mandatory) (10 points) Give the following code: class dataType { public: [1] private: int value; }; Write an inline method named GetValue to return value.
Draw the 2-3 tree that results from adding the following numbers in this order to an initially empty tree. 37, 18, 19, 21, 42, 25, 45, 36, 29, 43 Show what the tree looks like after each element is added. You are not required to show the splitting steps, but you must show what the tree looks…
Programming websites, developing the text and visual content, and explaining how clients can use tools such as search engine optimization (SEO) falls into the domain of this area of computing careers. a. software engineering b. information technology c. database administration d. web…
Multiple Choice 1 point Which of the following statement related to Sharing Rules in Salesforce is TRUE? Sharing Rules are created to either grant or restrict access to records beyond what was originally specified with the organization-wide defaults Sharing Rules are created to restrict access…
Do the following tasks: i. Design and implement an efficient algorithm that computes the OSR metric for the MCM Problem's DP solution and generates the OSR metric table up to an entered table size (See the sample output below) (80 pts) ii. Analyze your algorithm's time complexity by making…
Question 20 Olivia's food packaging startup employs thirty people. Running low on capital, Olivia contacted Sean, a cloud vendor, to provide her company with an operating system and a database management system. In this scenario, which of the following services will Sean be providing…
Given the following code, which line defines the size of the canvas? import tkinter class myShape: def __init__(self): self.main_window = tkinter.Tk() self.canvas = tkinter.Canvas(self.main_window, width=200, height=200) self.canvas.create_rectangle(30,30, 175,…
Discussion-SDLC 1. Discuss the ethical and legal aspects of software development, including data privacy, security, and compliance with regulations.
An attack that overwhelms a target server by exhausting bandwidth through unfinished requests is a __________. A) volumetric attack B) protocol attack C) slowloris attack D) smurf attack E) protocol attack
The ______ instruction copies the source data to a destination and allows portions of the data to be masked. A BTD B MVM C MOV D CLR
Example. Trace the following Turing machine for input:#abc# (the head initially points to the first blank on the right-hand-side) Start L<sub>r</sub> action description Input/output string Start #abc#(there are more# on the right-hand-side →L<sub>r</sub> move the head to the first # on…
Performance of "Stall on Branch" Estimate the impact on the clock cycles per instruction (CPI) of stalling on branches. Assume all other instructions have a CPI of 1.
It is often easier to analyze e-business transaction data than data from other types of transactions because information is captured in databases that can be manipulated. a. True b. False
1. Look at the Microsoft description of the stages of the graphics pipeline. Compare the stages with the stages in Figure 16.2 of your textbook (page 764). What stages from the microsoft graphics pipeline match with one from the book? Which stages from the Microsoft pipeline are not in the book…
A \_\_\_\_\_ is one floating-point operation per second. a. flop b. cache c. byte d. bit
Question 30 In interface design, 'Transparency' is achieved when: Users interact only through visual cues Users receive limited feedback All interface elements are hidden System processes are clear, and users understand how actions affect outcomes
72 Multiple Choice 1 point One of the first things developers of IoT applications should focus on is building in ____ from the start. disaster recovery redundancy and backup security Clear my selection
Question 35 (5 points) Which of the following websites would have the highest web accessibility? a website that has a search functionality which confines the search to the website rather than the whole web, to make it easy for visitors to locate relevant information a website which is designed…
Question 1 20 Points The purpose of implementation is to define the organization of the code, in terms of implementation subsystems organized in layers to implement classes and objects in terms of components A) True B) False
The primary software components of a system consist of: Presentation logic and application logic Application logic, presentation logic, and data access logic Presentation logic, application logic, data access logic, and data storage Data access logic and data storage
13. (1 pt) In the exponential function $y = b^x$ (where b is a constant and $b > 1$), what happens to y as x gets larger?
A \_\_\_\_\_\_\_ is a template GPO that contains Administrative Templates settings that are automatically applied to the new GPO. O start GPO O standard GPO O starter GPO O startup GPO
A group of students were debating the efficiency of the five-stage pipeline when one student pointed out that not all instructions are active in every stage of the pipeline. After deciding to ignore the effects of hazards, they made the following four statements. Which ones are correct? 1.…
Which of the following tasks belongs more to the field of information systems (IS) than to the field of information technology (IT)? a. setting up and maintaining a network b. making sure devices on a network are able to communicate with each other c. designing technology solutions to solve…
1. The following code is written in C, where elements of an array are allocated contiguously. Arrays a has 1024x1024 elements. Arrays b and c have 1024 elements respectively. Assume each element of arrays is a 4-byte (32-bit) integer. The data type of all variables is a 4-byte integer also.…
A ListBox can be created to allow either a single selection or multiple selections when the user interacts with the widget. True False
Turn a Las Vegas algorithm to a Monte Carlo algorithm. Let A be a randomized algorithm for some decision problem P (e.g., to decide if a graph is connected or not). Suppose that for any given instance of P of size n, A runs in expected T(n) time and always outputs the correct answer. Use A to…
These two ways to set up a String will not yield identical results: String my_string = new String("123.45"); String my_string = "" + 123.45; True False
6. Magic Dates The date June 10, 1960, is special because when it is written in the following format, the month times the day equals the year: 6/10/60
//rewrite the below code to implement polynomial multiplications using one loopCode using namespace std; #include <iostream> int main() { int a[3]={1,3,12}; int b[2]={3,2}; int mul[5]={0}; for(int j=0;j< 2;j++) for(int i=0;i<3;i++) mul[i+j]+=a[i]*b[j]; for(int…
Add Mux ALU Add result Shift RegDst left 2 Branch MemRead Instruction [31-26] MemtoReg Control ALUOP MemWrite ALUSrc RegWrite Instruction [25-21] Read PC Read address Instruction [20-16] Instruction [31-0] Instruction memory M Instruction [15-11] x Write register 1 Read Read register 2 data…
(20%) Complete the following code for reversing a given linked list by filling (1), (2), (3), (4) and (5). Please use C-style expression. /** * Definition for singly-linked list. * public class ListNode { * public int val; * public ListNode next; * public ListNode(int x) { val = x;…
I want to keep this assignment as simple as possible while still learning something about C and capturing some of the material from the end of the semester. It should be simple to complete as you can use anything at your disposal. However, you must submit all tasks or you will only receive…
Computers offered for sale in an office superstore generally fall into three categories: \_\_\_-based or \_\_\_-based PCs, Mac computers, and Chromebooks. a. Android; Symbian b. OS X; Unix c. Windows; Linux d. Unix; Android
Translate the following MIPS program into an equivalent C code segment. addi $s0, $0, 10 addi $s2, $0, 5 Label: sll $t0, $s2, 2 add $t0, $t0, $s1 add $t1, $s2, $s2 sw $t1, 0($t0) addi $s2, $s2, 1 slti $t2, $s2, 10 bne $t2, $0, Label Use the following mappings of registers when answering: • $s0…
If a form displays in Design view, what can you press to display the form in Form view? F3 F5 F7 F8 Done
A byte is a. the text unit used by the UNICODE standard. b. the largest unit on which a computer can act. c. a collection of 8 binary digits. d. the 3-digit system used by ASCII.
[d] Creating the logarithmic function graph using the inverse function properties Step1: Reflect the five points (A, B, C, D, and E) you obtained from the table of values, as well as the exponential function curve, across the line $y=x$. Use the following commands points =…
What are the coordinates of the upper right corner of the Canvas object created below? self.canvas = tkinter.Canvas(self.main_window, width=200, height=200)
Slicing an array returns a copy that can be modified without affecting the original O True O False
Part 5 Problem 5 (10 points): Draw a PDA with at most 8 states that accepts the language: $\{a^{2n+1}bc^n | n \in \mathbb{N}\}$ You may use JFLAP notation or textbook notation. PDA acceptance should be the same as we did in class, i.e. it is based on string consumption and final-state…
Let A = {1,2,3,4} and R is a relation defined by “ a ≠ b ". Then the set of ordered pairs in the relation R are ○ {(1,2),(1,3),(1,4),(1,1),(2,1),(2,3),(2,4),(3,1),(3,2),(3,4),(4,1),(4,2),(4,3)} ○ {(1,2),(1,3),(1,4),(2,1),(2,3),(2,4),(3,1),(3,2),(3,3),(3,4),(4,1),(4,2),(4,3),(4,4)} ○…
The following is known as the Ackermann function. function Ack(m, n ∈ {0, 1, 2, 3, ... }) if m = 0 then return n + 1 else Γ if n = 0 then return Ack(m - 1, 1) else L return Ack(m - 1, Ack(m, n - 1)) Compute the values returned by the following function calls. (a) Ack(0, 11) = (b) Ack(1, 0)…
A group of radio buttons sharing the same IntVar object form a mutually exclusive relations where one and only one radio button can be selected from the group. True False
14. Custom Calculator: Scenario: Consider a manufacturing company that produces custom parts for clients. The cost of producing a part depends on several factors, including: The material type used for the part. The number of labor hours required for the production. An expedited processing fee…
On adding HCl to all the following salts it form a gas and a precipitate except ...... a $Na_2S_2O_3$ b $HgNO_2$ c $Pb(HCO_3)_2$ d $Na_2CO_3$
Which of the following processes real data through a test program? test data approach Artificial Intelligence software Integrated Test Facility Parallel Simulation approach
Which statement describes the term Industrial Internet? Internet infrastructure components The integration of complex physical machinery with networked sensors and software The platform that allows cloud-based application development The software and hardware that extends IoT applications to…
Hospital Propose a Network Structure for that entity, then Draw two layouts, one for its Physical topology and the other for its Logical topology.
Question 15 Identity is called an $\boxed{}$ predicate, because it appears in between the two terms it equates. 2 points
4) The sequence $\{h_n\}$ is defined recursively as follows: $h_0 = 1$, and $h_n = 3 \cdot h_{n-1} + 1$, for $n \ge 1$. Suppose that the following theorem is proven by induction: Theorem: For any non-negative integer $n$, $h_n = \frac{1}{2} \cdot (3^{n+1} - 1)$. The proof of the induction step…
A(n) ______ uses symbols that represent data in the form of code. a. digital computer b. adding machine c. analog computer d. slide rule
Question 6 10 pts Provide the base 10 (decimal) values for the following representations of the 8-bit value 1101 1000. Also, provide the powers of 2 used (as a comma separated list with ascending values without spaces like: 2,3,5) and the bias value (a single decimal value) where…
Question 40 Since big data architectures must accommodate many different data types and a large volume, a relational database is almost always the best choice for big data architecture. O True O False
Directions for questions 5 to 8: Read the information carefully and answer the questions given below. P1, P2, P3, P4, P5, P6 and P7 are seven members of a family. There are two married couples among them belonging to two different generations. Each of them like different Fast food - Pizza,…
Write Matlab code for the questions. Submission: • Take a screenshot of your Matlab code at each question. 1. You have a 2 by N matrix named GasData. The first row of GasData contains N temperature values [°C]. The second row contains N pressure values [atm]. You also have a scalar variable n…
class myClassType { private: int x; public: myClassType(void); void SetX(int newX); void Output(ofstream& fout); }; class yourClassType: public myClassType { private: int y; public: yourClassType(void); void SetXY(int newX, int newY); void Output(ofstream& fout); }; Write the yourClassType…
Consider the paths of the execution of SLTI instruction in this single cycle datapath design. Fill in the appropriate control signal values in the table below. Instruction<31:0> Rs Rt Rd Imm16 nPC sel RegDst Rd Rt Equal ALUctr MemtoReg MemWr Note the following IMPORTANT points when…
4) Consider a system of linear equations: $3x_1 - 0.5x_2 + x_3 = 10$ $0.1x_1 + 4x_2 - 2x_3 = 25$ $-x_1 + 2x_2 + 8x_3 = -7$ Use the Gauss-Seidel method to solve this system of equations. Starting with an initial guess of $x_1 = x_2 = x_3 = 0$, perform three iterations, showing the updated values…
The advantages of the \_\_\_\_\_\_\_\_ risk assessment approach are that it provides the most detailed examination of the security risks of an organization's IT system and produces strong justification for expenditure on the controls proposed.
Evaluate the integral by making the given substitution. (Use C for the constant of integration.) $\int \cos(3x) dx$, $u = 3x$
The access levels available for a collection are __________. Read/Write, Read Only, and No Access Read/Write, Write Only, and No Access Read Only, Write Only, and No Access Read Only, No Access, All Access
Suppose v is an array with 100 int elements. If 100 is assigned to v[100], what happens? Another variable or array will very likely be unexpectedly modified. The program will crash. Nothing. 100 is assigned to the last element of v.
What is the Big O of the following code segment? (assume $n$ refers to the number of elements being processed, or a value that otherwise represents the problem size.) for(int a = 0; a < n; ++a) { for(int b= 0; b < 22; ++b) { //do some constant O(1) operation here } } O(1) O(n) O($2^n$) O($n^2$)
Shortest Paths 1. (§10.4, #3) Apply the first form of Dijkstra's algorithm (the original algorithm, not the improved algorithm) to find a shortest path from A to E in the graph below. Label all vertices.
Computer clusters joined together with custom connections are referred to as a. petaflops. b. render farms. c. clouds. d. CPUs.
Today, larger \_\_\_\_\_ are designed as replacements for desktop computers. a. smartphones b. Chromebooks c. laptops d. supercomputers
ACTIVITY 60 - Lists and Strings for Drawing A list can also be thought of as a canvas to draw on. It can be represented as a list of lists or a list of strings, as below. Consider the letter 'O' drawn with character '*'. Create the lists figlist and figstrg using functions you already know,…
Computers that take the form of glasses or watches are referred to as a. wearable computers. b. microcomputers. c. computer-like devices. d. personal computing devices.
Question 19 Convert the unsigned 16 bit integer 31477 base 10 to binary. Ο 0111 1010 1111 0101 Ο 0111 1011 1111 0111 Ο 0111 1010 1101 1100 None of the above Question 20 Which of the following can be used for comments with as (GNU Assembler V2.24 and newer)? 0/ * block comment */ //single line…
Write the function that would resize the array when the capacity is full. Show the 4 steps from allocating the new array, copying the data from the old array to the new array, reset the pointer to point back to the original array and remove the old array from the program. This can be written in…
Topic : Functions Program : List of divisors of a number (divisor.c) Definition : The program prompts the user to enter a positive number and then finds both positive and negative divisors of the number. Create functions to find and list positive and negative divisors separately. Both functions…
Instructions This week, you will develop a database for a fictitious small school for its management of student records. You will also be required to write SQL statements to answer a few questions. Your instructor is the product owner. Post questions for approval before making any…
The advantages of the \_\_\_\_\_\_\_\_ risk assessment approach are that it provides the most detailed examination of the security risks of an organization's IT system and produces strong justification for expenditure on the controls proposed.
Question 33 (5 points) Engineered suites offer solid integration on the backend and consistent user interfaces throughout. True False
lists certificates that have a future expiry date but should not be used. O Revoked Certificates O Pending Certificates O Issued Certificates O Failed Certificates
Create a SQL statement from the Sales.OrderLines table with the following information: OrderLines table: StockItemID, count Condition: Group by the necessary column(s) from the Sales.OrderLines table.
QUESTION 6 A 3-way SA cache has block size of 256B and 16 sets. At a certain point, the snapshot of the cache has the following blocks with valid bit = 1: set 3 way 0 (s3w0) has tag = 0x6789, s3w1 has tag = 0x78912, s8w0 has tag = 0x5D, s8w1 has tag = 0x5C, s8w2 has tag = 0x29, s9w0 has tag =…
class myClassType { private: int x; public: myClassType(void); void SetX(int newX); void Output (ofstream& fout); }; class yourClassType: public myClassType { private: int y; public: yourClassType (void); void SetXY(int newx, int newy); void Output(ofstream& fout); }; Write the yourClassType…
Write a segment of code that implements a functions called doSomething () that takes in a list of words (list), a string (str), and the number of words (n) in list as arguments, and implements the logic described below. doSomething() searches for str in list and returns A NEW LIST containing…
Given the following file permissions: ---rwxrwX Does the owner of the file have permission to read the file? No Yes
Question 15 8 pts Consider the paths of the execution of SLT instruction in this single cycle datapath design. Fill in the appropriate control signal values in the table below. Instruction<31:0> Rs Rt Rd Imm16 nPC sel RegDst Rd Rt Equal ALUctr MemtoReg MemWr 0 RegWr Rs Rt Rw Ra Rb busA…
The simultaneous consumption of many different kinds of media is known as synergy. cross-platform interdiction. multidimensional consumption. media multitasking.
6. Consider the graph 2 A D 7 9 3 6 5 9 3 9 S B E T 2 7 1 2 6 C F 6 (a) (§12.3, #1(c)) Use Kruskal's algorithm to find a spanning tree of minimum total weight. Give the weight of your minimum tree and show your steps. (b) (§12.3, #2(c)) Apply Prim's algorithm to find a minimum spanning tree…
An array of 1000 integers is declared. What is the largest integer that can be used as an index to the array? 999 1000 -1 1001
3. How many edges cross this cut? Put an X mark on top of each edge that crosses the cut.
Windows Defender provides default \_\_\_\_\_ that specify appropriate restrictions for each network type and automatically applies them when you connect to the associated network. app & browser rules private rules firewall rules defender rules
What is the data type of the return value of the ListBox curselection method? list of integer tuple list of tuple integer
Designing an interface that uses a conversational approach Question 29 1 pts What does 'Flow' refer to in interaction design? An interactive tutorial guiding users A static design with minimal functionality A seamless and intuitive experience where users engage without confusion The use of…
In the TCP/IP model data termination is handled in the _____ layer. A) internet B) host-to-host C) application D) session E) network access
1. Step through Dijkstra's algorithm to calculate the single-source shortest paths from '5' to every other vertex. [1 for each correct vertex, including distance, path and parent]
Question 46 In the following code fragment, assuming we have register r1 as the base address for an array of 16 bit integers, the content of register r2 is stored in the array's sixth element. str r2, [r1, +#12] /* (r1 + 12) -> r2 */ True False Question 47 Which of the following directives do…
What is cybersecurity and cyber risk? Cybersecurity is the body of technologies, processes and practices designed to protect networks, operating systems, applications, databases and devices (collectively, IT systems) and information, including data, on them from compromise (i.e., loss of…
What does the following code do? Select three that apply. 1 import pandas as pd 2 import pandas_datareader.data as pdr 3 AMZN = pdr.DataReader('AMZN', 'yahoo', '2010-01-01', '2020-12-31') 4 AMZN.describe() It creates a pandas dataframe called AMZN The result will show the first few rows of all…
Question 11 (3 points) Consider the following code snippet: public interface Sizable { double size; double getSize(); } What is wrong with this code? The getSize method must be declared as public. The getSize method must be declared as public. The getSize method must be declared as final. An…
What is output? dict1 = {1: 'Hi', 2: 'Bye'} dict2 = {2: 'Yes'} dict1.update(dict2) dict3 = {3: 'No'} dict1.update(dict3) print(dict1) {1: 'Hi', 2: 'Yes', 3: 'No'} {1: 'Hi', 2: 'Yes', 2: 'Bye', 3: 'No'} {1: 'Hi', 2: 'Bye', 2: 'Yes', 3: 'No'} {1: 'Hi', 2: 'ByeYes', 3: 'No'}
Question 15 8 pts Consider the paths of the execution of SLT instruction in this single cycle datapath design. Fill in the appropriate control signal values in the table below. Instruction<31:0> Rs Rt Rd Imm16 nPC sel RegDst Rd Rt Equal ALUctr MemtoReg MemWr 0 RegWr Rs Rt Rw Ra Rb busA…
Which set of values is a function? (6,-5) (7, -3) (8, -1) (9, 1) (9,5) (10,5) (9,-5) (10,-5) (3,4) (4,-3) (7,4) (3,8) (2,-2) (5,9) (5, -7)
For each item, identify whether the component is an offered product or acquired product from the perspective identified. A15 Bionic Processor as used in the Apple iPhone A. Offered Snapdragon 845 SoC as used in the Samsung Galaxy S9 B. Acquired Google Tensor Processor as used in the Google…
write the scheduling process Check if machine is balanced or not A 2 fu 1 B 2 fx 1 C 3 fy fz = 4 all buffers are empty except for this = 4 (feedback buffer
A ______ is an object or data structure that authoritatively binds an identity to a token possessed and controlled by a subscriber.
A ______ exploits weaknesses of the internet protocol and internet control message protocol. A) smurf attack B) slowloris attack C) the ping of death D) zero-day attack E) protocol attack
4. (§12.1, #10(a)) Solve the Traveling Salesman's Problem for the following graph by making a tree that displays all Hamiltonian cycles. Start at vertex A. 25 A D 20 20 40 30 B C 15
Question 10 (Mandatory) (10 points) Given the following code, what value will be printed to the screen? int red = 80; cout << &red;
Create a SQL statement from the Sales.Orders and Sales.OrdersLines tables with the following information: Orders table: stockitemid, description, OrdersLines table: sum of quantity Joining column: orderID Condition: Group by the necessary columns from the Sales.Orders table.
What is Infrastructure as Code (IaC)? A cloud service that provides infrastructure on demand A manual process of configuring infrastructure through physical hardware adjustments A type of software that automatically patches operating systems An infrastructure management approach that uses…
What is the default sort order for date fields? newest to oldest oldest to newest largest to smallest smallest to largest Done
What is $\Delta G^\circ$ for a redox reaction where 6 moles of electrons are transferred and $E^\circ = -2.25$ V? (F = 96,500 J/(V·mol))
An average of 50 customers per hour arrive at a small post office. Interarrival times are exponentially distributed. Each employee can serve a customer in 2.4 minutes on the average. Service times are exponentially distributed. a. Assume that there are 3 employees with a single line in front of…
Question 17 (5 points) Which of the following statements is true of ICT architectures in the 1960s? Personal computer operating systems were developed. Mainframe computers formed the foundation of the ICT architecture. Multiple suppliers of PC hardware offered more options to…
Question 7 9 pts Provide the base 10 (decimal) values for the following representations of the 8-bit value 0100 0001. Also, provide the powers of 2 used (as a comma separated list with ascending values without spaces like: 2,3,5) and the bias value (a single decimal value) where…
Consider following relational schema. Employee(fname, minit, lname, ssn, bdate, address, sex, salary, superssn, dno) Department(dname, dnumber, mgrssn, mgrstartdate) Dept\_Locations(dnumber, dlocation) Project(pname, pnumber, plocation, dnum) Works\_on(essn, pno, hours) Dependent(essn,…
Question 8 [4 marks] Use the following 4 to 1 multiplexer and as many NOT gates as needed to design a circuit that is given by the following Boolean expression $f = z\overline{y}x + \overline{z}yx$ VCC 0 1 2 4 x 1 MUX 3 1 0 Y X F
What is returned by the function: abs(x) if x = 5.64? 5 5.64 Nothing, there is an error in the statement 6
Which SSH command is used for transferring files with an FTP-like command interface? ssh-transfer scp sftp ftp-ssh
1. int limit = 10; 2. input y; 3. input x; 4. for (int i = 1; i < limit; i++) 5. { x = x + i; 6. y = y + $i^2$;} 7. print("x = ", x, "y = ", y); Draw a Control Flow Graph to compute the Cyclomatic complexity of the above program. (3 marks)
TestOut Scenario Complete the following tasks in order on Exec: 1. Configure a local Password Policy and Account Lockout Policy to enforce password restrictions using the following settings: • Users cannot reuse any of their last 7 passwords. • Passwords must change every 30 days. • Users…
12. (5 pts) Given that Hash table valsTable uses double probing with the hash functions hash1(key): key % 11 hash2(key): 7 - key % 7 and a table size of 11. Which bucket that HashInsert(valsTable, item 94) inserts item 94 into? valsTable: 0 1 2 3 4 5 6 50 7 62 8 9 10 Bucket
Simplify $\left(1 + \frac{1}{a}\right) \cdot \left(1 + \frac{1}{a^2}\right) \cdot \left(1 + \frac{1}{a^4}\right) \cdot \left(1 + \frac{1}{a^8}\right) \cdots \left(1 + \frac{1}{a^{2^{100}}}\right)$
2. The following figure shows a two-dimensional generalization of the single-bit parity scheme. Correct the bit-error/errors for this scheme. (Note: show the two solutions) Row Parities 11001111 10011011 01110010 01010111 01010101 Column Parities
Zello Canada keeps a record of its employee turnover annually. It currently has a data set that contains turnover for the past 20 years. What type of data does it have? a. ordinal data b. cross-sectional data c. time series data d. categorical data
QUESTION 5 When instruction or \$9, \$10, \$9 is executed on a multi-cycle MIPS CPU, select all the correct answers from below: At the 2nd cycle, the content of \$10 is written into register B. At the 2nd cycle, ALU is performing or operation. If the content of register B is flipped by a fault…
Give all super keys and all keys that can be induced using the following table. Note that this question will be evaluated based on either whole or nothing A B C a1 b1 c1 a1 b1 c2 a2 b1 c1 a2 b1 c3
Fatima enjoys online shopping because it allows her to buy things from a wide range of categories from the convenience of her home. She recently bought a food processor online. In this scenario, Fatima is involved in business-to-consumer e-commerce business-to-business…
6. Magic Dates The date June 10, 1960, is special because when it is written in the following format, the month times the day equals the year: 6/10/60
Consider the car theft problem with attributes Color, Type, Origin, and the target, Stolen can be either Yes or No. The dataset is represented as below. Use Naïve Bayesian classifier to predict whether a Red SUV Domestic is getting stolen or not. Example No. Color Type Origin Stolen? 1 Red…
(a) You are asked to design a database which will hold data about university students, academic advisors, their club memberships, the moderators of the clubs, and the activities that the clubs sponsor. Attributes required: Student: StuName, Major, Credits Advisor: AdvisorID, AdvisorName, Dept,…
Which answer correctly orders different types of memory in increasing order of speed? Processor register, SRAM, DRAM, Hard Drive Processor register, Hard Drive, DRAM, SRAM Hard Drive, DRAM, SRAM, Processor register DRAM, SRAM, Processor register, Hard Drive
Problem 7 (6 points) Suppose you were trying to prove that the language $\{ab^{n+1}c^nd \mid n \in \mathbb{N}\}$ is not regular and you are using the proof by contradiction using the pumping lemma style proof we discussed in class. You decide to prove this using the string $s = ab^{m+1}c^md$…
Discussion-SDLC 1. Discuss the ethical and legal aspects of software development, including data privacy, security, and compliance with regulations.
Q4. Convert the following Context Free Grammar into Chomsky Normal Form (S is the start variable). $S \to 0A0 \mid 1B1 \mid BB$ $A \to S \mid \varepsilon$ $B \to S \mid A$
7. (15pt) Consider the following ARM code. ldr r0, [r1] add r2,r0,r0 Our ARM architecture is implemented in 5 stage pipelining: IF, ID, EX, MEM, WB. Assume that the load instruction requires 4 cycles at MEM stages. The other stage takes a cycle. Therefore, it takes 10 cycles to execute two…
Q1. Considering a system with five processes P1 through P5 and three resources of type R1, R2, R2 and R4. Suppose at time to following snapshot of the system has been taken: Currently Available Resources R1 R2 R3 R4 2 1 2 0 Current Allocation Max Need Process R1 R2 R3 R4 R1 R2 R3 R4 P1 0 0 1…
Write a function `digit_sum` which accepts a single positive integer argument stored in `$a0` and computes the sum of the digits of that argument recursively. For example, the sum of the digits of 1972 = 1+9+7+2=19 Your implementation must be recursive. An iterative solution will earn no credit…
Question 17 8 pts Consider the paths of the execution of BEQ instruction in this single cycle datapath design. Assume the comparison return TRUE. Fill in the appropriate control signal values in the table below. Inst Memory Adr Instruction<31:0> Rs Rt Rd Imm16 nPC sel RegDst Rd…
Protecting against computer security threats and designing ways to handle data storage are jobs done by someone who has studied a. computer science. b. computer engineering. c. information systems. d. software engineering.
Which of the following acronyms represents an American association that is most similar in function to the Canadian Standards Association? NIOSH Select an Option -- NIOSH 1 point) ANSI ACGIH ISO itive strain injuries, while working with microscopes in the laboratory
Q3 - Below figure shows the one line diagram of a three-phase power system. Lines 1 and 2 have series reactances of 60 and 80 $\Omega$, respectively. The data are given as follows: G: 90 MVA 22 kV x=0.18 per unit T1: 50 MVA 22/220 kV x=0.10 per unit T2: 40 MVA 220/11 kV x=0.06 per unit T3: 40…
What is the value of the status register SREG after executing the following code: LDI R16, 0x18 LDI R17, 0x92 ADD R17, R16 Select one: a. 0x25 b. 0x92 c. 0x14 d. 0x21 e. 0xCE f. no-one of the mentioned g. 0x1A h. 0x23 i. 0x35 j. 0x01 k. 0x00 l. 0x20 m. 0xAA
For each item, identify whether the component is an offered product or acquired product from the perspective identified. A15 Bionic Processor as used in the Apple iPhone A. Offered Snapdragon 845 SoC as used in the Samsung Galaxy S9 B. Acquired Google Tensor Processor as used in the Google…
11. (5 pts) An empty hash table hashTable has 5 buckets and a hash function of key % 5. The following operations are performed in order. Select the operations (put x in front of that operation) that cause a collision. HashInsert(valsTable, item 15) HashInsert(valsTable, item…
Question 9 6 pts Convert the following base 10 number into single precision floating point Binary representation using IEEE 754 standard. -18.59375 Some powers of 2 for your convenience: $2^{-1} = 0.5$, $2^{-2} = 0.25$, $2^{-3} = 0.125$, $2^{-4} = 0.0625$, $2^{-5} = 0.03125$, $2^{-6} =…
Q.11 An 8-bit number represents a coded function, bit 3-4 describe the operation to be performed on the number in bits 0-2 and 5-7 00 Add 01 Subtract 10 Divide 11 Multiply Write a function to extract the number and operation. Q.12 A plant controller is connected to a series of sensors along a…
A CNN model is used for sentiment classification and applies a filter of size 3 $\times$ 4 (3 words, 4 embedding dimensions) to a sentence represented by an embedding matrix $S$ of shape 5 $\times$ 4. Given the following data: 1. Sentence matrix $S = \begin{bmatrix} 0.2 & 0.3 & 0.4 & 0.1 \\ 0.5…
People working in this field may design software, solve problems such as security threats, or come up with better ways of handling data storage. a. software engineering b. computer science c. information technology d. information systems
Assume that boolean done = false, int x = 10, int y = 11, String s = "Help" and String t = "Goodbye". Then the expression (!done && x <= y) is false. True False
1. Draw a syntactic tree diagram of the following sentence, and identify the X'-schema where applicable: John hopes that the sky will rain.
We assume that all memories are initialized by 0 and the branch result is known in an ID state. In addition, let us assume that all memory accesses are cache hit. Instruction Sequence strcpy: subi $sp,$sp,4 sw $s0,0($sp) addi $s0,$s0,2 L1: add $t1,$al,$s0 lb $t2,0($t1) add $t3,$a0,$s0 sb…
Part 3 (continued) Let M = The set of strings over the alphabet {a,b} in which every "a" is followed by a “b” (Yes, this is the same language as on the previous page) Problem 3c (6 points) Write a regular grammar for M. (If you write a grammar that is context-free but not regular, you will lose…
Provide the base 10 (decimal) values for the following representations of the 8-bit value 1101 1000. Also, provide the powers of 2 used (as a comma separated list with ascending values without spaces like: 2,3,5) and the bias value (a single decimal value) where asked: • Unsigned: •…
Question 16 8 pts Consider the paths of the execution of SLTI instruction in this single cycle datapath design. Fill in the appropriate control signal values in the table below. Inst Instruction<31:0> Memory Adr Rs Rt Rd Imm16 nPC sel RegDst Rd Rt Equal ALUctr MemtoReg 1 0 MemWr RegWr Rs Rt Rw…
Question 2 1. Build the next-state and the output tables of the circuit described by the following graph. 00, 11/1 S0 01/0 00/1 00, 01/0 10, 11/1 10/1 10/1 01/0 S3 S1 11/0 11/1 01, 10/1 S2 00/0 1) Is this graph representing the behavior of a Moore or Mealy machine? 2) Build the next-state and…
are portable computing devices with a touchscreen interface. a. Chromebooks b. Supercomputers c. Tablets d. Desktops
What is the value of j that is printed at the end? #include <stdio.h> int main() { int i, sum=0; for(i=0;i<10;i++) sum += i; printf("%d\n",sum); }
These two ways to set up a String will not yield identical results: String my\_string = new String("a bunch of words"); String my\_string = "a bunch of words"; True False
Which of the following has the function growth rates (from our algorithm analysis discussion) in the proper order from smallest to largest? n log n nlog n $n^2$ $2^n$ log n n nlog n n! $2^n$ log n n nlog n $2^n$ $n^3$ log n n nlog n $n^2$ $2^n$
You can use a function before defining it, python will look for the definition elsewhere in the file True False
Question 14 Which XXX would replace the missing statement in the given Java remove() method for the MaxHeap class? int remove() { int maxValue = heapArray[0]; int replaceValue = heapArray[heapSize - 1]; heapSize--; if (heapSize > 0) { heapArray[0] = replaceValue; XXX return…
You accidentally select an unknown link in an email, and your system seems to be running very slowly. Which of the following actions will help keep you and your organization secure? Delete the message and monitor your computer for other problems. Report it immediately. Delete your web browser…
You are going to design a combinational circuit which has 4-bits binary input (w, x, y, z) and 5-bits BINARY CODED DECIMAL output. The output of combinational circuit is going to be displayed on 7-Segment as 2-digit Decimal Number. 4-Bits BCD Converter Circuit has the features below; • Circuit…
Part 2 Let L = The set of strings over the alphabet $\{a, b, c, d\}$ where the string MUST CONTAIN only letters in alphabetical order So, for example ... These strings ARE in L cc accd aaabbccd a $\lambda$ abcd bbbbdddd abbbbd These strings ARE NOT in…
Workers in the information technology field make sure the technology infrastructure is in place to support users. This may include all of the following except a. making software recommendations. b. making hardware recommendations. c. setting up a network. d. writing software programs.
Q2. Consider the following set of processes, with the length of the CPU burst given in milliseconds. Process Arrival Time CPU Burst P1 0 7 P2 1 4 P3 2 3 P4 3 6 Draw the Gantt chart & compute the average turnaround and waiting time for the processes in the above table using Shortest Job First…
Software engineering involves the a. study of computer hardware and software systems. b. design of information systems. c. writing of software programs. d. technology infrastructure is in place to support users.
What type of computer is sometimes arranged into computer clusters? a. tablets b. supercomputer c. wearable computers d. desktop computer
Hexadecimal numbers are used for representing color digitally. For example the hexadecimal number C7BDE9 represents this color in the RGB color system. The first pair of digits represents the amount of red, the second pair is green, and the last pair blue. Convert each of the following…
Which of the following code segments is an example of a nested if statement? if a == b: print(a) else: print(b) a = a - 1 if a > 0 else a = a + 1 if a == b: print(a) if c == d: print(c) if a == b: print(a)
Question 10 5 pts Convert the following single precision floating point Hex representation into decimal (base 10) number using IEEE 754 standard. 0x02BA0000 Some powers of 2 for your convenience: $2^{-1} = 0.5$, $2^{-2} = 0.25$, $2^{-3} = 0.125$, $2^{-4} = 0.0625$, $2^{-5} = 0.03125$, $2^{-6} =…
Computing power refers to the \_\_\_\_\_\_ of data that a computer can process and the \_\_\_\_\_\_ at which it can be processed. a. complexity; accuracy b. types; accuracy c. amount; speed d. diversity; reliability level
2. Dijkstra's algorithm can be used to compute least-cost paths from a source. In the graph below, what is the shortest distance from node A to each of the destinations (B, C, D, and E)? Also in what order does Dijkstra add the nodes (B, C, D, and E) to the final set of least-cost paths? Show…
15. You are given a data set representing the monthly sales of a retail store in different product categories. The sales data is stored in a matrix, where each row corresponds to a specific month, and each column corresponds to a different product category (e.g., electronics, clothing,…
The signal $o(t)$ shown below, is fed into a PCM system to obtain a digital representation for this signal. The signal $o(t)$ is nonzero only in the interval 0 to 21 milliseconds. The signal $o(t)$ has a spectrum $W(f)$ which is also shown below. $W(f)$ is non-zero in the frequency range…
Which of the following BEST describes riser data cable? Cable that passes between two floors and must be fire-stopped Cable that is only used for fiber optic connections Cable that is specifically designed for outdoor use and exposure to the elements Cable that is used for horizontal runs…
← Alloc→ ← Req→ ← Avail A B C A B C A B C PO 0 1 0 7 4 3 1 3 2 P1 2 0 0 0 2 0 P2 5 0 2 4 0 0 P3 2 1 1 0 1 1 P4 0 0 2 4 3 1
QUESTION 5 Which of the following standards for wireless encryption is considered the weakest? WPA. WPA2. WPA3. WEP.
For each authentication method, select Yes if it is part of multifactor authentication or No if is not. Note: You will receive partial credit for each correct selection. Answer Area Biometric data such as your fingerprint The security code on the back of a credit card An SMS-generated PIN that…
Question 15 8 pts Consider the paths of the execution of SLT instruction in this single cycle datapath design. Fill in the appropriate control signal values in the table below. Inst Memory Adr <0:15> <11:15> <16:20> <21:25> Instruction<31:0> nPC sel RegDst Rd Rt Rs Rt Rd…
The speed of a processor is measured in a. megabits per second (Mbps). b. hertz (Hz). c. megabytes (MB). d. revolutions per minute (RPM).
Question 11 9 pts Translate the following MIPS instruction into machine code by filling in the blanks accordingly. beq $s0, $t0, Label <There are 4 lines of instructions here> Label: <An instruction> For 1-6, fill in binary number by entering the correct number of bits in each blank with no…
In which of the following situations would it be appropriate to use a Python set? Select zero or more below: Storing information about a collection of countries, in which each country is represented by a unique mapping that maps cities in the country to that country's current population, which…
Decimal A B Sum Carry Out C0 9 + 5 9 - 5 9 + 13 10 + 6 6 - 10 9 - 9
The Manager class inherits from the Employee base class. The Manager class overrides the get\_salary() function. What is wrong with the following definition of get\_salary() in the Manager class? double Manager::get\_salary() const { double base\_salary = get\_salary(); return base\_salary +…
There are many types of input devices. Some examples of input devices are keyboards, scanners, bar code readers, and a. printers. b. RAM. c. central processing units. d. smartphone touchscreens.
In this project, you will build a system to maintain the information of districts and cities. Your program should read a set of districts and their relevant information from a file named district.txt The format of the input data is as follows: district:town:population: elevation:…
To determine if an invention is obvious in the context of receiving a patent, what do the patent office and courts look at? The difference between it and existing technologies to see if that difference would be unexpected to someone unskilled in the field at the time of patenting The difference…
Fuzzy Logic Control HW The input-output data of a system is given in which it has one input u as the voltage and output is the response of that black-box system y, and t is the simulation time for the system response. The structure of the system is completely unknown and we are going to model…
What is the output of the following code snippet? class Employee { public: Employee(); Employee(string new\_name, double new\_salary); void set\_name(string new\_name); void set\_salary(double new\_salary); string get\_name() const; double get\_salary() const; private: string name; double…
Any computing device with storage and network connectivity can be considered A) processor B) edge computing C) actuator D) transceiver E) fog node
Question 2 0.5 pts Rotational delay is the disk rotation time after the seek operation but before data is either read from or written to the disk surface. True False
Q1. Construct a Context Free Grammar for each of the following languages: • L = {$a^n b^m c^{2n+2m}$ | n≥0, m≥0} • L = {$a^i b^j c^k$ | i=2j or j=2k} • L = {$0^n 1^m$ | n≤m≤2n}
Question 5 How many times will the following print statement be executed? for x in range(10, 5, -2): print (x) 1 2 3 4 None of the above
Python is a compiled language True False Python is a compiled language True False
Consider the following code snippet: class BaseClass { public: BaseClass(); virtual void set_data(int new_data1); private: int data1; }; BaseClass::BaseClass() { data1 = 0; } void BaseClass::set_data(int new_data1) { cout << "BaseClass set_data" << endl; } class DerivedClass: public…
A digital computer uses mechanical operations to perform calculations. Select one: True False
Question 9 (Mandatory) (10 points) Which of the following is a correct declaration of an abstract class? abstract void PrintAll(void); void PrintAll(void) { }; void PrintAll(void) = 0; None of the above are correct.
Sam has used malware to access Sally's computer on the network. He has found information that will allow him to use the underlying privileges without needing the plaintext password. Which of the following types of attacks did he use? Password sniffing Pass the hash Dictionary attack Rainbow…
What is a Cisco developer program community that allows the user to learn, connect, inspire, and code and consists of coordinated developer tools and sandboxes? Cisco Learning Network LinkedIn IEEE
(8 pts) 2. a. Consider the weighted graph below. Use the Bellman-Ford algorithm with source node = 0 to find the shortest distance to all other nodes. Show the successive distance and predecessor arrays. (6 nodes → max 5 hops needed) BELLMAN-FORD (G, w,s) 1 INITIALIZE-SINGLE-SOURCE (G, 5) 2 for…
Suppose you have an unfair dice such that if you roll it, the probability that each odd number (i.e., 1, 3, 5) appears on the top is $\frac{1}{4}$, and the probability that each even number (i.e., 2, 4, 6) appears on the top is $\frac{1}{12}$. (1) Suppose that you roll this dice exactly once. •…
The point (0,0) always represents the upper left corner of a given canvas. True False
Question 29 (Mandatory) (10 points) Give the following code: class dataType { public: [1] private: int value; }; Write an inline method named GetValue to return value.
Draw the 2-3 tree that results from adding the following numbers in this order to an initially empty tree. 37, 18, 19, 21, 42, 25, 45, 36, 29, 43 Show what the tree looks like after each element is added. You are not required to show the splitting steps, but you must show what the tree looks…
Programming websites, developing the text and visual content, and explaining how clients can use tools such as search engine optimization (SEO) falls into the domain of this area of computing careers. a. software engineering b. information technology c. database administration d. web…
Multiple Choice 1 point Which of the following statement related to Sharing Rules in Salesforce is TRUE? Sharing Rules are created to either grant or restrict access to records beyond what was originally specified with the organization-wide defaults Sharing Rules are created to restrict access…
Do the following tasks: i. Design and implement an efficient algorithm that computes the OSR metric for the MCM Problem's DP solution and generates the OSR metric table up to an entered table size (See the sample output below) (80 pts) ii. Analyze your algorithm's time complexity by making…
Question 20 Olivia's food packaging startup employs thirty people. Running low on capital, Olivia contacted Sean, a cloud vendor, to provide her company with an operating system and a database management system. In this scenario, which of the following services will Sean be providing…
Given the following code, which line defines the size of the canvas? import tkinter class myShape: def __init__(self): self.main_window = tkinter.Tk() self.canvas = tkinter.Canvas(self.main_window, width=200, height=200) self.canvas.create_rectangle(30,30, 175,…
Discussion-SDLC 1. Discuss the ethical and legal aspects of software development, including data privacy, security, and compliance with regulations.
An attack that overwhelms a target server by exhausting bandwidth through unfinished requests is a __________. A) volumetric attack B) protocol attack C) slowloris attack D) smurf attack E) protocol attack
The ______ instruction copies the source data to a destination and allows portions of the data to be masked. A BTD B MVM C MOV D CLR
Example. Trace the following Turing machine for input:#abc# (the head initially points to the first blank on the right-hand-side) Start L<sub>r</sub> action description Input/output string Start #abc#(there are more# on the right-hand-side →L<sub>r</sub> move the head to the first # on…
Performance of "Stall on Branch" Estimate the impact on the clock cycles per instruction (CPI) of stalling on branches. Assume all other instructions have a CPI of 1.
It is often easier to analyze e-business transaction data than data from other types of transactions because information is captured in databases that can be manipulated. a. True b. False
1. Look at the Microsoft description of the stages of the graphics pipeline. Compare the stages with the stages in Figure 16.2 of your textbook (page 764). What stages from the microsoft graphics pipeline match with one from the book? Which stages from the Microsoft pipeline are not in the book…
A \_\_\_\_\_ is one floating-point operation per second. a. flop b. cache c. byte d. bit
Question 30 In interface design, 'Transparency' is achieved when: Users interact only through visual cues Users receive limited feedback All interface elements are hidden System processes are clear, and users understand how actions affect outcomes
72 Multiple Choice 1 point One of the first things developers of IoT applications should focus on is building in ____ from the start. disaster recovery redundancy and backup security Clear my selection
Question 35 (5 points) Which of the following websites would have the highest web accessibility? a website that has a search functionality which confines the search to the website rather than the whole web, to make it easy for visitors to locate relevant information a website which is designed…
Question 1 20 Points The purpose of implementation is to define the organization of the code, in terms of implementation subsystems organized in layers to implement classes and objects in terms of components A) True B) False
The primary software components of a system consist of: Presentation logic and application logic Application logic, presentation logic, and data access logic Presentation logic, application logic, data access logic, and data storage Data access logic and data storage
13. (1 pt) In the exponential function $y = b^x$ (where b is a constant and $b > 1$), what happens to y as x gets larger?
A \_\_\_\_\_\_\_ is a template GPO that contains Administrative Templates settings that are automatically applied to the new GPO. O start GPO O standard GPO O starter GPO O startup GPO
A group of students were debating the efficiency of the five-stage pipeline when one student pointed out that not all instructions are active in every stage of the pipeline. After deciding to ignore the effects of hazards, they made the following four statements. Which ones are correct? 1.…
Which of the following tasks belongs more to the field of information systems (IS) than to the field of information technology (IT)? a. setting up and maintaining a network b. making sure devices on a network are able to communicate with each other c. designing technology solutions to solve…
1. The following code is written in C, where elements of an array are allocated contiguously. Arrays a has 1024x1024 elements. Arrays b and c have 1024 elements respectively. Assume each element of arrays is a 4-byte (32-bit) integer. The data type of all variables is a 4-byte integer also.…
A ListBox can be created to allow either a single selection or multiple selections when the user interacts with the widget. True False
Turn a Las Vegas algorithm to a Monte Carlo algorithm. Let A be a randomized algorithm for some decision problem P (e.g., to decide if a graph is connected or not). Suppose that for any given instance of P of size n, A runs in expected T(n) time and always outputs the correct answer. Use A to…
These two ways to set up a String will not yield identical results: String my_string = new String("123.45"); String my_string = "" + 123.45; True False
6. Magic Dates The date June 10, 1960, is special because when it is written in the following format, the month times the day equals the year: 6/10/60
//rewrite the below code to implement polynomial multiplications using one loopCode using namespace std; #include <iostream> int main() { int a[3]={1,3,12}; int b[2]={3,2}; int mul[5]={0}; for(int j=0;j< 2;j++) for(int i=0;i<3;i++) mul[i+j]+=a[i]*b[j]; for(int…
Add Mux ALU Add result Shift RegDst left 2 Branch MemRead Instruction [31-26] MemtoReg Control ALUOP MemWrite ALUSrc RegWrite Instruction [25-21] Read PC Read address Instruction [20-16] Instruction [31-0] Instruction memory M Instruction [15-11] x Write register 1 Read Read register 2 data…
(20%) Complete the following code for reversing a given linked list by filling (1), (2), (3), (4) and (5). Please use C-style expression. /** * Definition for singly-linked list. * public class ListNode { * public int val; * public ListNode next; * public ListNode(int x) { val = x;…
I want to keep this assignment as simple as possible while still learning something about C and capturing some of the material from the end of the semester. It should be simple to complete as you can use anything at your disposal. However, you must submit all tasks or you will only receive…
Computers offered for sale in an office superstore generally fall into three categories: \_\_\_-based or \_\_\_-based PCs, Mac computers, and Chromebooks. a. Android; Symbian b. OS X; Unix c. Windows; Linux d. Unix; Android
Translate the following MIPS program into an equivalent C code segment. addi $s0, $0, 10 addi $s2, $0, 5 Label: sll $t0, $s2, 2 add $t0, $t0, $s1 add $t1, $s2, $s2 sw $t1, 0($t0) addi $s2, $s2, 1 slti $t2, $s2, 10 bne $t2, $0, Label Use the following mappings of registers when answering: • $s0…
If a form displays in Design view, what can you press to display the form in Form view? F3 F5 F7 F8 Done
A byte is a. the text unit used by the UNICODE standard. b. the largest unit on which a computer can act. c. a collection of 8 binary digits. d. the 3-digit system used by ASCII.
[d] Creating the logarithmic function graph using the inverse function properties Step1: Reflect the five points (A, B, C, D, and E) you obtained from the table of values, as well as the exponential function curve, across the line $y=x$. Use the following commands points =…
What are the coordinates of the upper right corner of the Canvas object created below? self.canvas = tkinter.Canvas(self.main_window, width=200, height=200)
Slicing an array returns a copy that can be modified without affecting the original O True O False
Part 5 Problem 5 (10 points): Draw a PDA with at most 8 states that accepts the language: $\{a^{2n+1}bc^n | n \in \mathbb{N}\}$ You may use JFLAP notation or textbook notation. PDA acceptance should be the same as we did in class, i.e. it is based on string consumption and final-state…
Let A = {1,2,3,4} and R is a relation defined by “ a ≠ b ". Then the set of ordered pairs in the relation R are ○ {(1,2),(1,3),(1,4),(1,1),(2,1),(2,3),(2,4),(3,1),(3,2),(3,4),(4,1),(4,2),(4,3)} ○ {(1,2),(1,3),(1,4),(2,1),(2,3),(2,4),(3,1),(3,2),(3,3),(3,4),(4,1),(4,2),(4,3),(4,4)} ○…
The following is known as the Ackermann function. function Ack(m, n ∈ {0, 1, 2, 3, ... }) if m = 0 then return n + 1 else Γ if n = 0 then return Ack(m - 1, 1) else L return Ack(m - 1, Ack(m, n - 1)) Compute the values returned by the following function calls. (a) Ack(0, 11) = (b) Ack(1, 0)…
A group of radio buttons sharing the same IntVar object form a mutually exclusive relations where one and only one radio button can be selected from the group. True False
14. Custom Calculator: Scenario: Consider a manufacturing company that produces custom parts for clients. The cost of producing a part depends on several factors, including: The material type used for the part. The number of labor hours required for the production. An expedited processing fee…
On adding HCl to all the following salts it form a gas and a precipitate except ...... a $Na_2S_2O_3$ b $HgNO_2$ c $Pb(HCO_3)_2$ d $Na_2CO_3$
Which of the following processes real data through a test program? test data approach Artificial Intelligence software Integrated Test Facility Parallel Simulation approach
Which statement describes the term Industrial Internet? Internet infrastructure components The integration of complex physical machinery with networked sensors and software The platform that allows cloud-based application development The software and hardware that extends IoT applications to…
Hospital Propose a Network Structure for that entity, then Draw two layouts, one for its Physical topology and the other for its Logical topology.
Question 15 Identity is called an $\boxed{}$ predicate, because it appears in between the two terms it equates. 2 points
4) The sequence $\{h_n\}$ is defined recursively as follows: $h_0 = 1$, and $h_n = 3 \cdot h_{n-1} + 1$, for $n \ge 1$. Suppose that the following theorem is proven by induction: Theorem: For any non-negative integer $n$, $h_n = \frac{1}{2} \cdot (3^{n+1} - 1)$. The proof of the induction step…
A(n) ______ uses symbols that represent data in the form of code. a. digital computer b. adding machine c. analog computer d. slide rule
Question 6 10 pts Provide the base 10 (decimal) values for the following representations of the 8-bit value 1101 1000. Also, provide the powers of 2 used (as a comma separated list with ascending values without spaces like: 2,3,5) and the bias value (a single decimal value) where…
Question 40 Since big data architectures must accommodate many different data types and a large volume, a relational database is almost always the best choice for big data architecture. O True O False
Directions for questions 5 to 8: Read the information carefully and answer the questions given below. P1, P2, P3, P4, P5, P6 and P7 are seven members of a family. There are two married couples among them belonging to two different generations. Each of them like different Fast food - Pizza,…
Write Matlab code for the questions. Submission: • Take a screenshot of your Matlab code at each question. 1. You have a 2 by N matrix named GasData. The first row of GasData contains N temperature values [°C]. The second row contains N pressure values [atm]. You also have a scalar variable n…
class myClassType { private: int x; public: myClassType(void); void SetX(int newX); void Output(ofstream& fout); }; class yourClassType: public myClassType { private: int y; public: yourClassType(void); void SetXY(int newX, int newY); void Output(ofstream& fout); }; Write the yourClassType…
Consider the paths of the execution of SLTI instruction in this single cycle datapath design. Fill in the appropriate control signal values in the table below. Instruction<31:0> Rs Rt Rd Imm16 nPC sel RegDst Rd Rt Equal ALUctr MemtoReg MemWr Note the following IMPORTANT points when…
4) Consider a system of linear equations: $3x_1 - 0.5x_2 + x_3 = 10$ $0.1x_1 + 4x_2 - 2x_3 = 25$ $-x_1 + 2x_2 + 8x_3 = -7$ Use the Gauss-Seidel method to solve this system of equations. Starting with an initial guess of $x_1 = x_2 = x_3 = 0$, perform three iterations, showing the updated values…
The advantages of the \_\_\_\_\_\_\_\_ risk assessment approach are that it provides the most detailed examination of the security risks of an organization's IT system and produces strong justification for expenditure on the controls proposed.
Evaluate the integral by making the given substitution. (Use C for the constant of integration.) $\int \cos(3x) dx$, $u = 3x$
The access levels available for a collection are __________. Read/Write, Read Only, and No Access Read/Write, Write Only, and No Access Read Only, Write Only, and No Access Read Only, No Access, All Access
Suppose v is an array with 100 int elements. If 100 is assigned to v[100], what happens? Another variable or array will very likely be unexpectedly modified. The program will crash. Nothing. 100 is assigned to the last element of v.
What is the Big O of the following code segment? (assume $n$ refers to the number of elements being processed, or a value that otherwise represents the problem size.) for(int a = 0; a < n; ++a) { for(int b= 0; b < 22; ++b) { //do some constant O(1) operation here } } O(1) O(n) O($2^n$) O($n^2$)
Shortest Paths 1. (§10.4, #3) Apply the first form of Dijkstra's algorithm (the original algorithm, not the improved algorithm) to find a shortest path from A to E in the graph below. Label all vertices.
Computer clusters joined together with custom connections are referred to as a. petaflops. b. render farms. c. clouds. d. CPUs.
Today, larger \_\_\_\_\_ are designed as replacements for desktop computers. a. smartphones b. Chromebooks c. laptops d. supercomputers
ACTIVITY 60 - Lists and Strings for Drawing A list can also be thought of as a canvas to draw on. It can be represented as a list of lists or a list of strings, as below. Consider the letter 'O' drawn with character '*'. Create the lists figlist and figstrg using functions you already know,…
Computers that take the form of glasses or watches are referred to as a. wearable computers. b. microcomputers. c. computer-like devices. d. personal computing devices.
Question 19 Convert the unsigned 16 bit integer 31477 base 10 to binary. Ο 0111 1010 1111 0101 Ο 0111 1011 1111 0111 Ο 0111 1010 1101 1100 None of the above Question 20 Which of the following can be used for comments with as (GNU Assembler V2.24 and newer)? 0/ * block comment */ //single line…
Write the function that would resize the array when the capacity is full. Show the 4 steps from allocating the new array, copying the data from the old array to the new array, reset the pointer to point back to the original array and remove the old array from the program. This can be written in…
Topic : Functions Program : List of divisors of a number (divisor.c) Definition : The program prompts the user to enter a positive number and then finds both positive and negative divisors of the number. Create functions to find and list positive and negative divisors separately. Both functions…
Instructions This week, you will develop a database for a fictitious small school for its management of student records. You will also be required to write SQL statements to answer a few questions. Your instructor is the product owner. Post questions for approval before making any…
The advantages of the \_\_\_\_\_\_\_\_ risk assessment approach are that it provides the most detailed examination of the security risks of an organization's IT system and produces strong justification for expenditure on the controls proposed.
Question 33 (5 points) Engineered suites offer solid integration on the backend and consistent user interfaces throughout. True False
lists certificates that have a future expiry date but should not be used. O Revoked Certificates O Pending Certificates O Issued Certificates O Failed Certificates
Create a SQL statement from the Sales.OrderLines table with the following information: OrderLines table: StockItemID, count Condition: Group by the necessary column(s) from the Sales.OrderLines table.
QUESTION 6 A 3-way SA cache has block size of 256B and 16 sets. At a certain point, the snapshot of the cache has the following blocks with valid bit = 1: set 3 way 0 (s3w0) has tag = 0x6789, s3w1 has tag = 0x78912, s8w0 has tag = 0x5D, s8w1 has tag = 0x5C, s8w2 has tag = 0x29, s9w0 has tag =…
class myClassType { private: int x; public: myClassType(void); void SetX(int newX); void Output (ofstream& fout); }; class yourClassType: public myClassType { private: int y; public: yourClassType (void); void SetXY(int newx, int newy); void Output(ofstream& fout); }; Write the yourClassType…
Write a segment of code that implements a functions called doSomething () that takes in a list of words (list), a string (str), and the number of words (n) in list as arguments, and implements the logic described below. doSomething() searches for str in list and returns A NEW LIST containing…
Given the following file permissions: ---rwxrwX Does the owner of the file have permission to read the file? No Yes
Question 15 8 pts Consider the paths of the execution of SLT instruction in this single cycle datapath design. Fill in the appropriate control signal values in the table below. Instruction<31:0> Rs Rt Rd Imm16 nPC sel RegDst Rd Rt Equal ALUctr MemtoReg MemWr 0 RegWr Rs Rt Rw Ra Rb busA…
The simultaneous consumption of many different kinds of media is known as synergy. cross-platform interdiction. multidimensional consumption. media multitasking.
6. Consider the graph 2 A D 7 9 3 6 5 9 3 9 S B E T 2 7 1 2 6 C F 6 (a) (§12.3, #1(c)) Use Kruskal's algorithm to find a spanning tree of minimum total weight. Give the weight of your minimum tree and show your steps. (b) (§12.3, #2(c)) Apply Prim's algorithm to find a minimum spanning tree…
An array of 1000 integers is declared. What is the largest integer that can be used as an index to the array? 999 1000 -1 1001
3. How many edges cross this cut? Put an X mark on top of each edge that crosses the cut.
Windows Defender provides default \_\_\_\_\_ that specify appropriate restrictions for each network type and automatically applies them when you connect to the associated network. app & browser rules private rules firewall rules defender rules
What is the data type of the return value of the ListBox curselection method? list of integer tuple list of tuple integer
Designing an interface that uses a conversational approach Question 29 1 pts What does 'Flow' refer to in interaction design? An interactive tutorial guiding users A static design with minimal functionality A seamless and intuitive experience where users engage without confusion The use of…
In the TCP/IP model data termination is handled in the _____ layer. A) internet B) host-to-host C) application D) session E) network access
1. Step through Dijkstra's algorithm to calculate the single-source shortest paths from '5' to every other vertex. [1 for each correct vertex, including distance, path and parent]
Question 46 In the following code fragment, assuming we have register r1 as the base address for an array of 16 bit integers, the content of register r2 is stored in the array's sixth element. str r2, [r1, +#12] /* (r1 + 12) -> r2 */ True False Question 47 Which of the following directives do…
What is cybersecurity and cyber risk? Cybersecurity is the body of technologies, processes and practices designed to protect networks, operating systems, applications, databases and devices (collectively, IT systems) and information, including data, on them from compromise (i.e., loss of…
What does the following code do? Select three that apply. 1 import pandas as pd 2 import pandas_datareader.data as pdr 3 AMZN = pdr.DataReader('AMZN', 'yahoo', '2010-01-01', '2020-12-31') 4 AMZN.describe() It creates a pandas dataframe called AMZN The result will show the first few rows of all…
Question 11 (3 points) Consider the following code snippet: public interface Sizable { double size; double getSize(); } What is wrong with this code? The getSize method must be declared as public. The getSize method must be declared as public. The getSize method must be declared as final. An…
What is output? dict1 = {1: 'Hi', 2: 'Bye'} dict2 = {2: 'Yes'} dict1.update(dict2) dict3 = {3: 'No'} dict1.update(dict3) print(dict1) {1: 'Hi', 2: 'Yes', 3: 'No'} {1: 'Hi', 2: 'Yes', 2: 'Bye', 3: 'No'} {1: 'Hi', 2: 'Bye', 2: 'Yes', 3: 'No'} {1: 'Hi', 2: 'ByeYes', 3: 'No'}
Question 15 8 pts Consider the paths of the execution of SLT instruction in this single cycle datapath design. Fill in the appropriate control signal values in the table below. Instruction<31:0> Rs Rt Rd Imm16 nPC sel RegDst Rd Rt Equal ALUctr MemtoReg MemWr 0 RegWr Rs Rt Rw Ra Rb busA…
Which set of values is a function? (6,-5) (7, -3) (8, -1) (9, 1) (9,5) (10,5) (9,-5) (10,-5) (3,4) (4,-3) (7,4) (3,8) (2,-2) (5,9) (5, -7)
For each item, identify whether the component is an offered product or acquired product from the perspective identified. A15 Bionic Processor as used in the Apple iPhone A. Offered Snapdragon 845 SoC as used in the Samsung Galaxy S9 B. Acquired Google Tensor Processor as used in the Google…
write the scheduling process Check if machine is balanced or not A 2 fu 1 B 2 fx 1 C 3 fy fz = 4 all buffers are empty except for this = 4 (feedback buffer
A ______ is an object or data structure that authoritatively binds an identity to a token possessed and controlled by a subscriber.
A ______ exploits weaknesses of the internet protocol and internet control message protocol. A) smurf attack B) slowloris attack C) the ping of death D) zero-day attack E) protocol attack
4. (§12.1, #10(a)) Solve the Traveling Salesman's Problem for the following graph by making a tree that displays all Hamiltonian cycles. Start at vertex A. 25 A D 20 20 40 30 B C 15
Question 10 (Mandatory) (10 points) Given the following code, what value will be printed to the screen? int red = 80; cout << &red;
Create a SQL statement from the Sales.Orders and Sales.OrdersLines tables with the following information: Orders table: stockitemid, description, OrdersLines table: sum of quantity Joining column: orderID Condition: Group by the necessary columns from the Sales.Orders table.
What is Infrastructure as Code (IaC)? A cloud service that provides infrastructure on demand A manual process of configuring infrastructure through physical hardware adjustments A type of software that automatically patches operating systems An infrastructure management approach that uses…
What is the default sort order for date fields? newest to oldest oldest to newest largest to smallest smallest to largest Done
What is $\Delta G^\circ$ for a redox reaction where 6 moles of electrons are transferred and $E^\circ = -2.25$ V? (F = 96,500 J/(V·mol))
An average of 50 customers per hour arrive at a small post office. Interarrival times are exponentially distributed. Each employee can serve a customer in 2.4 minutes on the average. Service times are exponentially distributed. a. Assume that there are 3 employees with a single line in front of…
Question 17 (5 points) Which of the following statements is true of ICT architectures in the 1960s? Personal computer operating systems were developed. Mainframe computers formed the foundation of the ICT architecture. Multiple suppliers of PC hardware offered more options to…
Question 7 9 pts Provide the base 10 (decimal) values for the following representations of the 8-bit value 0100 0001. Also, provide the powers of 2 used (as a comma separated list with ascending values without spaces like: 2,3,5) and the bias value (a single decimal value) where…
Consider following relational schema. Employee(fname, minit, lname, ssn, bdate, address, sex, salary, superssn, dno) Department(dname, dnumber, mgrssn, mgrstartdate) Dept\_Locations(dnumber, dlocation) Project(pname, pnumber, plocation, dnum) Works\_on(essn, pno, hours) Dependent(essn,…
Question 8 [4 marks] Use the following 4 to 1 multiplexer and as many NOT gates as needed to design a circuit that is given by the following Boolean expression $f = z\overline{y}x + \overline{z}yx$ VCC 0 1 2 4 x 1 MUX 3 1 0 Y X F
What is returned by the function: abs(x) if x = 5.64? 5 5.64 Nothing, there is an error in the statement 6
Which SSH command is used for transferring files with an FTP-like command interface? ssh-transfer scp sftp ftp-ssh
1. int limit = 10; 2. input y; 3. input x; 4. for (int i = 1; i < limit; i++) 5. { x = x + i; 6. y = y + $i^2$;} 7. print("x = ", x, "y = ", y); Draw a Control Flow Graph to compute the Cyclomatic complexity of the above program. (3 marks)
TestOut Scenario Complete the following tasks in order on Exec: 1. Configure a local Password Policy and Account Lockout Policy to enforce password restrictions using the following settings: • Users cannot reuse any of their last 7 passwords. • Passwords must change every 30 days. • Users…
12. (5 pts) Given that Hash table valsTable uses double probing with the hash functions hash1(key): key % 11 hash2(key): 7 - key % 7 and a table size of 11. Which bucket that HashInsert(valsTable, item 94) inserts item 94 into? valsTable: 0 1 2 3 4 5 6 50 7 62 8 9 10 Bucket
1 ... 2 3 4 5 6