CDS Computing for Scientists. Midterm Exam Review. Midterm Exam on October 22, 2013

Similar documents
CDS Computing for Scientists. Final Exam Review. Final Exam on December 17, 2013

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

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

Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates. Invitation to Computer Science, C++ Version, Third Edition

CDS130 Mid-term exam: Sample

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

EE292: Fundamentals of ECE

1. Mark the correct statement(s)

Midterm Exam Review. CS 2420 :: Fall 2016 Molly O'Neil

Digital Logic Design Exercises. Assignment 1

DIGITAL SYSTEM DESIGN

that system. weighted value associated with it. numbers. a number. the absence of a signal. MECH 1500 Quiz 2 Review Name: Class: Date:

SIR C.R.REDDY COLLEGE OF ENGINEERING, ELURU DEPARTMENT OF INFORMATION TECHNOLOGY LESSON PLAN

Experimental Methods I

COURSE OUTLINE & WEEK WISE BREAKAGE

FUNDAMENTALS OF DIGITAL CIRCUITS

Digital Systems COE 202. Digital Logic Design. Dr. Muhamed Mudawar King Fahd University of Petroleum and Minerals

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.

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

Binary Representation. Jerry Cain CS 106AJ October 29, 2018 slides courtesy of Eric Roberts

Basic Arithmetic (adding and subtracting)

Objectives. Connecting with Computer Science 2

Digital Fundamentals

Outline. policies. with some potential answers... MCS 260 Lecture 19 Introduction to Computer Science Jan Verschelde, 24 February 2016

Sardar Patel University S Y BSc. Computer Science CS-201 Introduction to Programming Language Effective from July-2002

CHW 261: Logic Design

Agenda EE 224: INTRODUCTION TO DIGITAL CIRCUITS & COMPUTER DESIGN. Lecture 1: Introduction. Go over the syllabus 3/31/2010

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

CMPSCI 145 MIDTERM #1 Solution Key. SPRING 2017 March 3, 2017 Professor William T. Verts

Software and Hardware

ENEL 353: Digital Circuits Midterm Examination

TEACHING & EXAMINATION SCHEME For the Examination COMPUTER SCIENCE. B.Sc. Part-I

the absence of a signal. produce a result at one or more of their outputs. parallel. Y= AB. interconnected. connected. changed.

EECS 140/141 Introduction to Digital Logic Design Fall Semester 2016 Exam #1 Date: 3 October 2016

UPY14602-DIGITAL ELECTRONICS AND MICROPROCESSORS Lesson Plan

Logic, Words, and Integers

History of Computing. Ahmed Sallam 11/28/2014 1

CS/COE 0447 Example Problems for Exam 2 Spring 2011

Read this before starting!

ETGG1801 Game Programming Foundations I Andrew Holbrook Fall Lecture 0 - Introduction to Computers 1

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

D I G I T A L C I R C U I T S E E

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

CE161-4-AU UNIVERSITY OF ESSEX. Undergraduate Examinations 2014 DIGITAL SYSTEMS ARCHITECTURE. Time allowed: TWO hours

Today s lecture is all about the System Unit, the Motherboard, and the Central Processing Unit, Oh My!

CONTENTS CHAPTER 1: NUMBER SYSTEM. Foreword...(vii) Preface... (ix) Acknowledgement... (xi) About the Author...(xxiii)

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

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

Chapter 2 Exercises and Answers

END-TERM EXAMINATION

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

Introduction to Computer Science-103. Midterm

Fundamentals of Programming (C)

Von Neumann Architecture

Bits and Bit Patterns

Outline. What Digit? => Number System. Decimal (base 10) Significant Digits. Lect 03 Number System, Gates, Boolean Algebra. CS221: Digital Design

Philadelphia University Student Name: Student Number:

Syllabus for Computer Science General Part I

Chapter Three. Digital Components

/ : Computer Architecture and Design Fall Midterm Exam October 16, Name: ID #:

Boolean Algebra and Logic Gates

Midterm Exam 2B Answer key

Decoders Wilfrid Laurier University

R a) Simplify the logic functions from binary to seven segment display code converter (8M) b) Simplify the following using Tabular method

Logic Design: Part 2

Course Title III Allied Practical** IV Environmental Studies #

This podcast will demonstrate a logical approach as to how a computer adds through logical gates.

Moodle WILLINGDON COLLEGE SANGLI. ELECTRONICS (B. Sc.-I) Introduction to Number System

LOGIC DESIGN. Dr. Mahmoud Abo_elfetouh

SCHOOL OF ENGINEERING & BUILT ENVIRONMENT. Mathematics. Numbers & Number Systems

MACHINE LEVEL REPRESENTATION OF DATA

WELCOME TO. ENGR 303 Introduction to Logic Design. Hello my name is Dr. Chuck Brown

Electronic Engineering Part 1 Laboratory Experiment. Digital Circuit Design 1 Combinational Logic. (3 hours)

ECE 341 Midterm Exam

Binary, Hexadecimal and Octal number system

CMPE223/CMSE222 Digital Logic Design. Positional representation

Digital Fundamentals

Binary Adders: Half Adders and Full Adders

plc numbers Encoded values; BCD and ASCII Error detection; parity, gray code and checksums

Dec Hex Bin ORG ; ZERO. Introduction To Computing

KING FAHD UNIVERSITY OF PETROLEUM & MINERALS COMPUTER ENGINEERING DEPARTMENT

VOLUME-I [ UNIT I & II ] CHAPTER 1-8 [ COMPLETE BOOK BACK ONE MARKS ]

IB Computer Science Topic.2-

Introduction to Informatics

LAB #1 BASIC DIGITAL CIRCUIT

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

Time: 8:30-10:00 pm (Arrive at 8:15 pm) Location What to bring:

6.1 Combinational Circuits. George Boole ( ) Claude Shannon ( )

CS1800 Discrete Structures Fall 2017 October 25, CS1800 Discrete Structures Midterm Version B

ENEL Digital Circuits Midterm Examination

A Level Computing. Contents. For the Exam:

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

Aryan College. Computer Fundamental. Introduction to Computer System

Number System. Introduction. Decimal Numbers

1 of 8. I. (13pts) TRUE OR FALSE

Assembly Language for Intel-Based Computers, 4 th Edition. Chapter 1: Basic Concepts. Chapter Overview. Welcome to Assembly Language

ECS15, Lecture 10. Goals of this course 2/8/13. Mini-Review & Topic 3.2 Software. Today s agenda

Combinational Circuits

Computer Science and Engineering 331. Midterm Examination #1. Fall Name: Solutions S.S.#:

6. Combinational Circuits. Building Blocks. Digital Circuits. Wires. Q. What is a digital system? A. Digital: signals are 0 or 1.

Transcription:

CDS 130-001 Computing for Scientists Midterm Exam Review Midterm Exam on October 22, 2013 1. Review Sheet 2. Sample Midterm Exam

CDS 130-001 Computing for Scientists Midterm Exam - Review Sheet The following is a complete list of topics that will be covered in the midterm exam. Section I: Computer Fundamentals (CF) CF-CH1: Binary Representation Positional Notation Binary to Decimal Conversion: Template Method Decimal to Binary Conversion: Template Method Decimal to Binary Conversion: Long Division Method Octal Numeral System; Hexadecimal Numeral System CF-CH2: Binary Operation Binary Addition Binary Subtraction CF-CH3: Binary Encoding/Decoding ASCII Code, ASCII Table Encoding ASCII Characters to Binary Sequences Decoding Binary Sequences to ASCII Characters CF-CH4: Logic Circuits and Logic Tables Logic Circuit Boolean Operation AND gate, AND table OR gate, OR table NOT gate, NOT table NAND gate, NAND table NOR gate, NOR table XOR gate, XOR table Logic Circuits with Three Inputs Binary Number Adding Machine CF-CH5: Data Storage Data density Bits, Bit Pattern, Bytes Transistors Section II: Scientific Simulation (SS) SS-CH1: Introduction The Pipeline of Scientific Model, Mathematical Model and Computational Model SS-CH2: Computational Models Convert Scientific Model to Mathematical Model Convert mathematic Model to Computational Model in MATLAB Predator-Prey Model: two unknowns

Tool: Introduction to MATLAB (MT) (PDF Slides, P1-134) MT-CH1: Prologue MT-CH2: The MATLAB Environment MT-CH3: Assignments, Variables and Intrinsic Functions MT-CH4: Vectors and Vector Operations MT-CH5: Iteration I: FOR loops

CDS 130-001 Computing for Scientists Midterm Exam - Sample Midterm Exam Midterm Exam on October 22, 2013 This is a closed-book closed-computer exam. Calculators are not allowed. Your answer should be on the space provided immediately following each question on the exam sheets. 1. Convert 1111 2 to its base ten equivalent using the template method 2. Convert 79 10 to its binary equivalent using either the template method or long-division method. 3. Carry out the binary addition of 10111 2 + 01001 2? Keep your answer in binary format 4. Carry out the binary subtraction of 10111 2-01001 2? Keep your answer in binary format 5. Carry out the binary multiplication of 110 2 x 101 2? Keep your answer in binary format 6. What is the decimal value of 465 8?

7. What is the decimal value of character "B" in ASCII table? What is the binary number of character "B"? 8. Use ASCII code to encode the string "ASCII" into a binary sequence. Note that each character corresponds to 8 bits in binary number. 9. In the image below, four NANDS are connected and three of the inputs are set to 1. What are the values of Z and output if B = 1 and A = 0?

10. Fill out the logic table corresponding to the Logic Circuit shown below, which consists of a NAND gate and an OR gate. Show all input bit pattern combinations A, B and C in the table. For each input bit pattern combination, calculate the corresponding output. A B C output A B C Output 11. In a 7 bit analog to digital converter, how many different levels of data can be recorded?

12 For the matrix "A" shown below 12 4 5 1 7 6 32 23 9 (1) How many rows and columns in this matrix? (2) What is value of A(2,1)? (3) What is value of A (1,3)? (4) What is value of A(2,2)+A(3,1)? 12. Considering the following iteration code, what is A(4)? A(1)=13; for i=[2:4] A(i)=A(i-1)+37; end 13. Considering the following iteration code, what is A after the FOR loop? A(1)=0 for i=[1:5] A(i+1)=A(i)+i^2; end

The following statement is used for question 14, 15 My bank offers 5% interest on my account compounded yearly. Every year I deposit an additional $100. Assuming that on the first year your account had a balance of $100. 14. Translate the above statement into a mathematical model 15.Translate your mathematical model into MATLAB programming code. Your code should be able to calculate the balance in the next 10 years. There is no need of doing the calculation in the exam. Only MATLAB code is needed.

1. ASCII Table Information Sheet 2. Logical Gates and Tables AND OR NOT NAND NOR XOR