CS Midterm 2

Ace your homework & exams now with Quizwiz!

An image captured in 65,536 colors, with a size of 2,000 pixels by 4,000 pixels, is saved on a memory stick. What is the size in bits and bytes/MB of the file?

(2,000*4,000)/8/1024/1024= 95mb

Which of the following operators performs concatenation in JavaScript?

+

With the Object Model_____________

-JavaScript can change all the CSS styles in the page -JavaScript can add new HTML elements and attributes -JavaScript can change all the HTML elements in the page -JavaScript can react to all existing HTML events in the page

Using the table converts the ASCII character "M" to a binary number.

1001101

In terms of image representation, how many different colors/shades can be specified using 8 bits?

256

Convert decimal number (398) to hexadecimal number. Please include the steps you used to do the calculations.

398/16=24 r 14 24/16=1 r 8 1/16=0 r1

Which of the following is the correct value of converting Binary number (0111100000111100) to Octal number?

74074

After the following JavaScript statements have executed what does the variable 'x' contain? var x; var y = 8; var z = 16; x = y; y = z; z = x;

8

The symbol used to terminate a statement in JavaScript is ____________

; semicolon

What HTML element tag would you use if you wanted to create an text box on a webpage

<input ... >

What is the correct HTML for referring to an external style sheet?

<link rel="stylesheet" type="text/css" href="mystyle.css">

In order for Google to answer your search queries it has to create a Repository of web pages, what is the type of program that creates and updates the Repository?

A Web Crawler

What is a Function in programming? Where can you define/declare the Function? List the types of User Define Functions.

A section of code you can you over and over again. At the top of the file calling the function. Function with no arguments and no return value.Function with no arguments and a return value.Function with arguments and no return value.Function with arguments and with return value.

An image representation based on a division into a grid of pixels is called a

Bitmap representation

Which of the following describes a lossy transformation of digital data?

Compressing an image file into a smaller resolution image so the image can easily be emailed

Where is cloud data stored?

Data centers of computers that can keep your information accessible

An index is a data structure storing a mapping from content, such as words or numbers, to its locations in a document or a set of documents.

False

GIF and TIFF are examples of formats that are good for representing and storing sound waves

False

Standard (original) ASCII and extended ASCII encode the same number of characters

False

_______ is the main disadvantage of HTML?

HTML can create only static webpages so for dynamic web page other languages have to be used.

Which of the following image formats is lossy?

JPG

What is NOT a Programming Library?

Libraries are the owner of all other objects in your webpage

An electronic document (for example, one produced by text-processing software) often includes information that is about the document, this information is called...

Metadata

Given the following JavaScript function, what are the two entries (item1, item2) on the first line of the function called? function sumup (item1, item2) { var temp; temp = item1 + item2; return temp; }

Parameters

What is NOT true about the crawlers?

Score documents so that the query processor can use them to rank the results

Data center infrastructure refers to all of the physical resources and components that comprise and support a data center. List all components adata center infrastructure may include?

Servers, Computers, Security, Storage

A page has high rank if_________

The page has a few highly ranked backlinks The page has many backlinks If the sum of the ranks of its backlinks is high

A search engine consists of two main components, a database of indexed links and files, and a series of algorithms that search for and return query results.

True

All data on a computer system is represented using binary patterns, which are sequences of 1s and 0s.

True

Search engines like Google or Bing apply a search algorithm to the data collected by web crawlers to display relevant information and websites in response to user searches.

True

The DOM represents a document with a logical tree. Each branch of the tree ends in a node, and each node contains objects.

True

The Document Object Model (DOM) connects web pages to scripts or programming languages by representing the structure of a document—such as the HTML representing a web page—in memory.

True

Represent the following text in Binary based on the ASCII code table (find the ASCII table in the slides on Canvas).

https://www.rapidtables.com/convert/number/ascii-to-binary.html

Which of the expressions are equivalent to the Boolean expression NOT (num < 17)?

num > 17 AND num = 17


Related study sets

Chapter 9: Making Capital Investment Decisions

View Set

Content Quiz 2: Forecasting (Module 2)

View Set

if you could be beautiful and not so smart or brilliant and not so beautiful what would it be a why?

View Set

Immunology Unit 3 - Chapter 10 T-Cell Activation, Helper Subset Differentiation, and Memory

View Set

Psychology Final Test Ch. 9 - Ch. 16

View Set

Econ 102 Quiz Week 15 - Public Goods and Externalities

View Set