CSI 2334

Ace your homework & exams now with Quizwiz!

x = 4 ** 4 is the same as ___.

x = 4 * 4 * 4 * 4

A two-input XNOR gate is equivalent to which equation?

y = a'b' + ab

Output y0 is captured by which equation?

y0 = i1' i0'

which is y = ab + a simplified

y=a

What does the span's style attribute method getPropertyValue("color") return? <span style="color: blue">TEST</span> <script> let span = document.querySelector("span"); </script>

"blue"

Register a callback function doThis() that gets triggered when the mouse double-clicks on an element with ID "button".

$("#button").on("dblclick", doThis);

What is the shortened version of $(document).ready(displayMessage); ?

$(displayMessage);

Which of the following results in the best simplification? Note: Each circle is denoted by parenthesis (A, B) indicates that a circle includes cells A and B

(H,J,K,L)

Apply Demorgan's law to simplify y = (ab + a'b')'

(a' + b')(a + b)

The universal selector is specified with ___

*

What is the resulting CSS for this mixin? @mixin shadow-style($size, $color){ text-shadow: $size $size $color;} .shadow{ @include shadow-style(3px, red);}

.shadow{ text-shadow: 3px 3px red;}

What is the last number output by the loop? i = 5 while(i>=0){console.log(i); i--;}

0

Given a 2-way set-associative cache with 2 entries and 1 byte block size(no offset) what is the LRU value of each entry after the following processor access sequence? Assume the LRU bits of both entries are set to 0 initially processor accesses: 1000, 10001, 11101, 11011, 11110 LRU(entry 0) = LRU(entry 1) =

0,1

Given the processor circuit below, what are the control logic actions of rf_wa_s, rf_wd_s, and add_sub if instructions sub $t2, $t3, $t0 is executed rf_wa_s = rf_wd_s= add_sub=

0,1,1

Given a 3x8 decoder, how many outputs can be set at any given time?

1

In the following snippet, what is the minimum number of items sent to the server w when the submit button is pressed?

1

In the following snippet, what is the minimum number of items sent to the server when the submit button is pressed <form> <input type ="checkbox" name = "checkbox" checked>

1

What comes after the binary number 0111

1000

Given the following register file contents, what will be the value of $t2 after executing the instruction sequence add $t2, $t3, $t3 mul $t2, $t2, $t2 Register file: 4,5,2

16

Identify the base of hexadecimal

16

How is 2048 bits written using the metric prefix

2 Kb

Determine the result of the following decimal floating-point additioin: 7.2x102+2x105

2.0072x105

Given the following data memory (DM) and register file contents, the new contents of the data memory after executing the instruction sw $t2, 0($t3) is: DM[2004] = ___, DM[2008] = ___ DM 2012, 2016 Register file: 2004, 2008

2012, 2004

What is output for Math.pow(4,4);

256

A processor running a program wishes to access memory location 4000. A copy is found in L2. How many cycles did the access take?

3 cycles

Which of the following statements is true of normallized scientific notation

3.06x103 is in decimal normalized scientific notation

Assume an audio sample is stored as one byte. The size of a 1 minute audio recording is 2.28 MB. What is the sampling rate

38000

How many AND gates are required to implement a decoder that has 4 outputs?

4

how many rows does a truth table contain for a 2-input function

4

How many grid items are in this grid layout? dy{display: grid; grid-template-areas: "head head" "nav article" "foot aside"; }

5

A value like FFFFFF is three bytes. How many bytes are needed to represent the entire given digital graphic

75

what is the correct HTML for forcing "75 mph" to always display on the same line?

75&nbsp;mph

Which code segment below converts the following image into a link?

<a href ="http://www.artist.com/"><img src="vanGogh.jpg" alt="van Gogh self portrait"></a>

In a React component, the onSubmit attribute is added to the _____ element to specify a submit event handler.

<form>

The smallest heading is ___ while the largest heading is ___

<h6>, <h1>

What are the errors in this line of code? <image src="http://example.com/my_face.jpg" "Selfie from Spain">

<image> should be <img> and the alt attribute is missing

Which XXX is missing from the return statement? function GroceryList() { const item = [ {id:1

<li key={item.id}>{item.item}</li>

Which element is complete

<p>Hello World</p>

Given HTML and jQuery code, what is the resulting DOM transformation? <p>It is <em>so much</em> fun to learn <strong>new</strong> things!</p> $("em").wrap("<strong></strong>");

<p>It is <strong><em>so much</em></strong> fun to learn <strong>new</strong> things!</p>

The weather is humid. I feel like I am going to melt

<p>The sun is hot. <br> The weather is humid. <br> I feel like I am going to belt. </p>

which of the following statements is true of a record

A record declares a new type, which can be used to group multiple subitems

Resistance is ____

A wire's opposition to flow

Embedded systems often use various combinations of microprocessors and custom

All of the above

Current is measured in

Amps

What is the transition property of this object doing? #object { height: 50px; width: 50px; transition: width 10s; }

Animates a width transition that completes in 10 seconds

Which data types can the useState() argument be?

Any data type

What is rainbow's data type? let rainbow = ["red", "orange", "green", "purple"];

Array

In the metric system, what does the prefix "giga" mean?

Billion

Identify the correct binary to decimal conversion

Binary number 1100 is represented as 12 in decimal

what color font is the second paragraph inheriting <!DOCTYPE html> <html lang = "en"> <style> body{color: blue;} </style> <body> <p><span style="color: orange">Hello World</span>!</p> <p style="color: inherit"> How are you?</p> </body> </html>

Blue

Which is the correct order of events in token-based authentication A. GET request for protected resource B. Token generated C. POST request with username/password D. Token Validation

C,B,A,D

Representing, storing, and retrieving application data in relational and non-relational databases is called ___

Data modeling

Use the table to identify the three-letter word that represents the sequence of bits 100 0100 110 0001 111 1001

Day

why would someone use the jQuery UI plugin?

Display a date picker widget

Which loop executes once before the condition is tested?

Do-while

Which statement is INCORRECT

Each truth table row corresponds to a 1 in a function's value

Which of the following statements is most true?

Equivalent functions will have the same sum-of-minterms representations

Which type of positioning does not scroll with the document?

Fixed

The React Router route below is missing a path. Which path would match the URL http://localhost:3000/games? <Route path="_____" element ={<Sports/>} />

Incorrect: /game

A RESTful API supports updating movies with a PUT request. What must fetch() send in the HTTP request body to update an existing movie.

JSON-encoded movie with the same ID in the URL path

A DMA controller can carry out simultaneous transfers having:

Multiple internal processors

Which attribute(s) is/are required to autmatically play a <video> in all browsers?

Muted and autoplay

A list within a list is called a(n) ___.

Nested list

What is the result of this background setting? background repeating-linear-gradient(blue, grey 5%);

Not 5 horizontal stripes

A control input for an electronically controlled switch

Prevents or allows the flow of voltage based on the value of the control input

Which pair is appropriate to describe the area of a plot

Square feet and acres

With flexbox, elements are laid out in a container and behave predictably when

The container is viewed on different screen sizes

What can be inferred about the jQuery library in this line of code?<script src="jquery-3.5.0.min.js"><?script>

The library was minified to reduce file size

What happens when type="i" is added to the <ol> tag? <ol type = "i"> <li>Sam</li> <li>Mike</li> <li>Sandra</li> </ol>

The numbers change to lower-case roman numerals

Why might a React app use the React Router's Link component

To create a link that matches a Route

Why does a React component call the useEffect() hook?

To perform a side effect, like fetching data with a web API

How is a RESTful web API called?

Using a URL and parameters

Circle (J) corresponds to what simplified term

a'b'

Circle (M) corresponds to what simplified term?

a'c'

The following equation is converted to sum-of-products form. Indicate the product term y = a(b'c' + ab) y = ab'c' + ?

ab

which of the following is a sum-of-minterm representation of a(b + c')?

abc + abc' + ab'c'

What replaces XXX in the code below so logRequest() executes before any route callback functions? const express = require("express"); const app = express(); const logRequest = function(req, res, next){ console.log("Logged");}; XXX;

app.use(logRequest)

Which element is a block element with semantic meaning, ideal for containing blog post content

article

complete the missing background properties p{___: rgb(248, 248,255); background-image: ___("kitty.jpg");}

background-color, url

Which of the instructions is equivalent to the following instruction sequence slt $t0, $t2, $t1 beq $t0, $zero, BLabel

bge $t2, $t1, BLabel

When styling elements of a web form, which setting is defined for radio buttons and not for checkboxes

border-radius

Which equation best captures the following logic: A car starts when doing all of the following the keyless fob is within a specified proximity, the driver presses the brake, the driver presses the start button. Inputs: k: key within a specified proximity, b:brake pressed, s: start button pressed Output c: car starts

c = kbs

Apply DeMorgan's Law to simplify y = (c' +d)'

cd'

Fill in the property and value so all paragraphs are displayed directly below all images img { float: left; } p{ ____:____; }

clear:left;

The input in the react component's form below is a ____ input <input type = "text" id ="name" />

controlled

A decoder ____

converts N inputs to a 1 on one of 2N outputs

What input type forces the user to enter a valid date?

date

The following equation is converted to a sum-of-products form. Indicate the product term possible y = e'(f' +g) y = e'f' + ?

e'g

The jQuery UI plugin requires an additional ___ in order to work.

external style sheet

An example of a falsy value is ___

if ("")

What expression iterates over all the animals properties? let animals = { "cat": 1, "dog": 1, "fish": 3, "hamster": 2 }; for(___){ console.log(animal + "count = " + animals[animal]);}

let animal in animals

Given the following DM and assuming $t0 holds 5304, $t1 holds 5308, which instruction sequence performs the operation DM[5308] = DM[5300] DM: 10, 20, 30

lw $t1, -4($t0) sw $t1, 4($t0)

Consider the given table. Identify the syntax used to update the 3rd element of myArray with 144

myArray[2] = 144

What special character is used to display a phone number like 123-456-7890 on the same line without breaking

non-breaking-hyphen

The ___ tool is used to run Create React App, and then ___is used to start the development web server that listens on port 3000

npx, npm

The given table consists of unicode points for characters. What three letter word does the sequence of bits 0071 0061 0054 represents in Unicode

paT

Circling two adjacent 1's in a K-maps _____.

represents the simplification i(j + j') = i(1) = i

What is used to import a module into a Node.js program?

require()

A React component is calling useState() below. How does the component assign firstName with a new value in an event handler? const [firstName, setFirstName] = useState("John");

setFirstName("Emily");

A two-input XNOR gate outputs 1 if

the input values are the same


Related study sets

ACCT 4375 Final Exam Chapters 11-14

View Set

Quiz: Module 03 Threats and Attacks on Endpoints

View Set

*possible help/practice exams 2*

View Set