CSE COMPUTER USE: Fundamentals Test 1 Version D

Similar documents
CSE-1520R Test #1. The exam is closed book, closed notes, and no aids such as calculators, cellphones, etc.

CSE-1520R Test #1. The exam is closed book, closed notes, and no aids such as calculators, cellphones, etc.

Part A: Multiple Choice Choose the option with the best fit. [20 Marks]

Data Representation and Networking

3 Data Storage 3.1. Foundations of Computer Science Cengage Learning

Learning Programme Fundamentals of data representation AS Level

NUMBERS AND DATA REPRESENTATION. Introduction to Computer Engineering 2015 Spring by Euiseong Seo

Introduction to Computer Science (I1100) Data Storage

UNIT 7A Data Representation: Numbers and Text. Digital Data

ECE 2020B Fundamentals of Digital Design Spring problems, 6 pages Exam Two 26 February 2014

ECE 2020B Fundamentals of Digital Design Spring problems, 6 pages Exam Two Solutions 26 February 2014

IT 1204 Section 2.0. Data Representation and Arithmetic. 2009, University of Colombo School of Computing 1

15110 PRINCIPLES OF COMPUTING SAMPLE EXAM 2

Chapter 1. Data Storage Pearson Addison-Wesley. All rights reserved

15110 Principles of Computing, Carnegie Mellon University - CORTINA. Digital Data

Bits and Bit Patterns

Objectives. Connecting with Computer Science 2

Number System. Introduction. Decimal Numbers

Groups of two-state devices are used to represent data in a computer. In general, we say the states are either: high/low, on/off, 1/0,...

Digital Fundamentals

CS & IT Conversions. Magnitude 10,000 1,

Read this before starting!

2nd Paragraph should make a point (could be an advantage or disadvantage) and explain the point fully giving an example where necessary.

Software and Hardware

Digital Fundamentals

N.B. These pastpapers may rely on the knowledge gained from the previous chapters.

Positional notation Ch Conversions between Decimal and Binary. /continued. Binary to Decimal

Data Representation. Types of data: Numbers Text Audio Images & Graphics Video

Midterm Exam 2B Answer key

ECE 2030D Computer Engineering Spring problems, 5 pages Exam Two 8 March 2012

Lecture (02) Operations on numbering systems

IBM 370 Basic Data Types

Read this before starting!

CHW 261: Logic Design

Jianhui Zhang, Ph.D., Associate Prof. College of Computer Science and Technology, Hangzhou Dianzi Univ.

Unit 1. Digital Representation

MACHINE LEVEL REPRESENTATION OF DATA

Hexadecimal Numbers. Journal: If you were to extend our numbering system to more digits, what digits would you use? Why those?

Data Storage. Slides derived from those available on the web site of the book: Computer Science: An Overview, 11 th Edition, by J.

EE 109 Unit 2. Analog vs. Digital. Analog vs. Digital. Binary Representation Systems ANALOG VS. DIGITAL

SISTEMI EMBEDDED. Basic Concepts about Computers. Federico Baronti Last version:

Variables Data types Variable I/O. C introduction. Variables. Variables 1 / 14

a- As a special case, if there is only one symbol, no bits are required to specify it.

Lecture 2: Number Systems

Binary Codes. Dr. Mudathir A. Fagiri

M1 Computers and Data

Binary representation and data

DECLARATIONS. Character Set, Keywords, Identifiers, Constants, Variables. Designed by Parul Khurana, LIECA.

CS/ECE 252: INTRODUCTION TO COMPUTER ENGINEERING UNIVERSITY OF WISCONSIN MADISON

Unit 3. Analog vs. Digital. Analog vs. Digital ANALOG VS. DIGITAL. Binary Representation

Data Representation 1

VARIABLES AND CONSTANTS

1. Which of the following Boolean operations produces the output 1 for the fewest number of input patterns?

Number Systems Prof. Indranil Sen Gupta Dept. of Computer Science & Engg. Indian Institute of Technology Kharagpur Number Representation

Read this before starting!

Standard 11. Lesson 9. Introduction to C++( Up to Operators) 2. List any two benefits of learning C++?(Any two points)

Chapter 2 Bits, Data Types, and Operations

PYTHON- AN INNOVATION

Homework 1 graded and returned in class today. Solutions posted online. Request regrades by next class period. Question 10 treated as extra credit

Chap 1. Digital Computers and Information

Chapter 4: Computer Codes. In this chapter you will learn about:

Definition. Merriam Webster

UNCA CSCI 255 Exam 1 Spring February, This is a closed book and closed notes exam. It is to be turned in by 1:45 PM.

CMPS 10 Introduction to Computer Science Lecture Notes

Name: CMSC 313 Fall 2001 Computer Organization & Assembly Language Programming Exam 1. Question Points I. /34 II. /30 III.

SE311: Design of Digital Systems

Chapter 1. Digital Systems and Binary Numbers

EE 109 Unit 3. Analog vs. Digital. Analog vs. Digital. Binary Representation Systems ANALOG VS. DIGITAL

ECE 2030B 1:00pm Computer Engineering Spring problems, 5 pages Exam Two 10 March 2010

Chapter 2 Bits, Data Types, and Operations

BSM540 Basics of C Language

As stated earlier, the declaration

OBJECTIVES After reading this chapter, the student should be able to:

Level ISA3: Information Representation

Read this before starting!

Real Numbers finite subset real numbers floating point numbers Scientific Notation fixed point numbers

Chapter 2 Bits, Data Types, and Operations

COMP Overview of Tutorial #2

Introduction to Numbering Systems

Digital Fundamentals. CHAPTER 2 Number Systems, Operations, and Codes

P( Hit 2nd ) = P( Hit 2nd Miss 1st )P( Miss 1st ) = (1/15)(15/16) = 1/16. P( Hit 3rd ) = (1/14) * P( Miss 2nd and 1st ) = (1/14)(14/15)(15/16) = 1/16

Cambridge International Examinations Cambridge International Advanced Subsidiary and Advanced Level

Read this before starting!

DigiPoints Volume 1. Student Workbook. Module 8 Digital Compression

Data encoding. Lauri Võsandi

Introduction to Computer Science-103. Midterm

3.1. Unit 3. Binary Representation

A New Compression Method Strictly for English Textual Data

Lecture C1 Data Representation. Computing and Art : Nature, Power, and Limits CC 3.12: Fall 2007

Pivot Tables, Lookup Tables and Scenarios

Bits. Binary Digits. 0 or 1

(Refer Slide Time: 00:23)

Data Representation and Architecture Modeling Year 1 Exam preparation

These notes are designed to provide an introductory-level knowledge appropriate to understanding the basics of digital data formats.

Basic data types. Building blocks of computation

Bits, bytes, binary numbers, and the representation of information

Wireless Communication

This document contains additional questions; it is not intended to be treated as a complete paper.

LING 388: Computers and Language. Lecture 5

Introduction to Computers and Programming. Numeric Values

Transcription:

Name:, (Last name) (First name) Student ID#: Registered Section: Instructor: Lew Lowther Solutions York University Faculty of Pure and Applied Science Department of Computer Science CSE 1520.03 COMPUTER USE: Fundamentals Test 1 Version D Instructions: This is an in class examination, therefore examination rules are in effect. Fill in the box at the top of this page, and print your ID# at the top of each odd numbered page. Answer ALL questions. Time allowed is 50 minutes. Use of calculators is NOT permitted. There are 5 pages of questions in addition to the cover. Please count them. Part Value Mark A 5 B 7 C 2 D 6 E 9 F 11 G 10 Total: 50

CSE 1520 Test 1 Winter '12 ID#: Part A [5 points] Enter a number in each space. For each of these concepts, indicate the generation in which it was first used and to which history (hardware or software) it belongs. high-level languages 2 hardware / software parallel computing 4 hardware / software structured programming 4 hardware / software transistors 2 hardware / software translators 1 hardware / software Part B [7 points] Complete the table. A pattern of binary digits can be interpreted in several different ways. Show how the pattern 01001010 translates using each of the following interpretations. unsigned integer 74 integer in 2 s complement notation +74 integer in excess notation -54 Hexadecimal short form 4A Octal short form 112 floating point notation +⅝ ASCII J Part C [2 points] Circle the LETTER of the best answer 1. In CSE1520, how many of a student s test grades can be annulled? a) None b) Only Test 2 c) Only Test 1 d) 0, 1, or 2 2. At what point in the course can a student in CSE1520 annul a test grade? a) Before the test b) Immediately after the test c) At the end of the term d) Never Version D 2 of 6

Part D [6 points] Put the proper LETTER in each blank. 1) In general, the process of converting analog data to digital data is called. a) digitizing b) reset c) encoding d) sampling e) reclocking 2) The process of correcting degradation to digital data is called. a) digitizing b) reset c) encoding d) sampling e) reclocking 3) The process of converting sound to digital data is called. a) digitizing b) reset c) encoding d) sampling e) reclocking 4) removes redundant information from within a frame. a) Huffman encoding b) keyword encoding c) run length encoding d) spatial compression e) temporal compression 5) A discrete representation, breaking the information up into separate elements. a) analog data b) digital data 6) Data can be retrieved without any loss of the original information. a) lossless b) lossy

CSE 1520 Test 1 Winter '12 ID#: Part E [9 points] 1. An Excel worksheet that contains data values that remain constant throughout the spreadsheet model would usually be called: a) Comments b) Parameters c) Graph d) Summary e) Main Data 2. A cell in a spreadsheet can contain: a) a formula b) a, c, & e c) a literal string d) none of these e) a literal value 3. In Excel, the best style for formulas is to a) use relative cell addresses b) use absolute cell addresses c) use a mixture of types of cell addresses d) use named ranges e) avoid formulas 4. In Excel, a formula on one worksheet that reads data from another worksheet a) can only use relative addressing b) cannot use LOOKUP c) is called a "between the sheets formula" d) is called an "intersheet formula" e) is illegal 5. Create an Excel formula that will randomly generate either "Heads" or "Tails".[5] =IF( RAND() <0.5, "Heads", "Tails") N.B. >=0.5 will also work BUT, >0.5 should lose ½ point N.B.#2 "Heads" and "Tails" can be interchanged Version D 4 of 6

Part F [11 points] 32 1) In 6-bit, 2 s complement notation, how many of the bit patterns represent negative numbers?[1] 2) Perform the following calculation in Binary: [1] 0001.1001 + 0101.0011 0110.1100 3) Express the answer above as a proper fraction in decimal. [1] 6¾ 4) Show an optimised calculation for the following binary multiplication. Show all your steps. [5] 57 * 66 57 * 66 can be expressed as 57 * (64 + 2) 1 57 converts to 111001 1 57 * 64 = 111001000000 1 57 * 2 = 1110010 1 57 * 64 + 57 * 2 = 111010110010 1 29 9 5) Show how a computer would use 8 bit binary notation to compute the following. [3] 29 converts to 00011101 1 9 converts to 00001001 so negative 9 is 11110111 1 To 29 00011101 add negative 9 +11110111 1 00010100 1

CSE 1520 Test 1 Winter '12 ID#: Part G [10 points] Short!! Answer 1. If the "*" is the flag character in run-length encoding, how would the following string be compressed? AAAAAABBBBBCCDDDDDDEEEEEE *A6*B5CC*D6*E6 2. What is the compression ratio achieved by this process? 14/25 or.56 or 56% 3. Using the same style for run-length encoding, unpack the following : *N4X*M5*34SSS NNNNXMMMMM3333SSS 4. Use the following Huffman alphabet to encode the string. s = 00 p = 1111 d = 110 g = 1110 o = 01 t= 10 "topdog" 10011111110011110 5. Using the same Huffman alphabet, decode the following: "001001011111" stoop 6. What is the compression ratio achieved by this process? Original size: 5 characters @ 8 bits each = 40 bits 12/40 =.30 or 30% 7. What is the term that refers to the amount of data that is used to represent a colour? colour depth 8. What basic colours are used by computer monitors to produce coloured images? red, green, blue 9. describes an image in terms of lines and geometric shapes vector graphics 10. If an image s size is 150 X 200 pixels, and is stored in Hi-Color format, how many bytes of memory are needed to store the image without compression? 150 * 200 = 30,000 pixels * 2 bytes/pixel = 60,000 bytes Version D 6 of 6