Unit 2

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

Which of the following is not a logical operator?

!=

______ invented the e-machine, helped break the Enigma code during WW2 and wrote a paper that is considered the foundation of Computer Science

Alan Turing

A computer program uses 3 bits to represent integers. When the program adds the decimal (base 10) numbers 5+3, the result is 0. Which of the following is the best explanation for the result.

An overflow error occurred

(Pseudocode) Which of the following Boolean exprssions are equivalent to the epxression num >= 15 (select 2)

B. (num > 15) or (num = 15) C. (NOT (num < 15)

What is printed to the user if he/she enters a time of 8? int ware = 8; int time = input.nextInt(); if (ware < time) { System.out.println("Get out of bed! You're late!"); } System.out.println("Have a good day!");

B. Have a good day!

Which of the following can be represented by a single binary digit?

B. The remainder when dividing a whole # by 2 C. The value of a Boolean value

What is printed to the user? boolean snowDay = true; if (!snowDay) System.out.println("Stay Inside!"); System.out.println("The weather outside is frightful!");

B. The weather outside is frightful!

Digital images are often represented by red, green, & blue values of each individual pixel in the image. A photographer is manipulating a digital image and overwriting the original image. Which of the following describes lossless transformation of the digital image?

C. Creating the negative of an image by creating a new RGB triplet for each pixel in which each value is calculated by subtracting the original value from 255. The negative of an image is reversed from the original; light areas appear dark and colors are reversed.

(Pseudocode) In the program below, the initial value of x is 5 and the initial value of y is 10

C. November

Which of the following changes will NOT affect the results when the code segment is executed? 1: IF (a=0) 2: { 3: b <- a + 10 4: } 5: else 6: { 7: b <- a + 20 8: }

Changing line 3 <- 10

One (1) bit is comprised of eight (i) bytes

False

What ASCII character is represented by the binary (base 2) number 1001010?

J

______ is the observation that, over the history of computing hardware, the # of transistors in a dense integrated circuit has doubled approx every 2 years.

Moore's Law

Which of the following digital storage units has the largest capacity?

Terabyte

ENIAC, one of the world's first electronic computers, used transisters in order to store and process data

True

Lossless compression should be used when loss of information could pose a problem. Such as with text documents + spreadsheets

True

The jpeg image format uses lousy compression to reduce the file size of images

True


Set pelajaran terkait

N123- Chp 50 Biliary disorder- Prep-U

View Set

Chap 6: Elements of Planning and Decision-making

View Set

ANATOMY EXAM 3- Neural Tissue 2.0

View Set

Cardiac Arrest and Post-Cardiac Arrest Care - Pre-Assessment

View Set

Analyzing a Procedural Text: How to Find Out Anything Assignment and Quiz 90%

View Set

Chapter 1: What is Organizational Behaviour?

View Set

CS Chapter 2: Managing files and folders

View Set