CS 111: Introduction to Programming Midterm Exam NAME _________________ UIN __________________ 10/30/08 1.Who is our hero? 2.Why is this person our hero?

Slides:



Advertisements
Similar presentations
CS 1 Introduction CS 1 Part 11. Hardware 1.Central Processing Unit (CPU) 2.Main Memory 3.Secondary Memory / Storage 4.Input Devices 5.Output Devices CS.
Advertisements

CHAPTER 1: AN OVERVIEW OF COMPUTERS AND LOGIC. Objectives 2  Understand computer components and operations  Describe the steps involved in the programming.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design First Edition by Tony Gaddis.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Program Design and Development
Programming Logic and Design, Introductory, Fourth Edition1 Understanding Computer Components and Operations (continued) A program must be free of syntax.
Chapter 1 Program Design
About the Presentations The presentations cover the objectives found in the opening of each chapter. All chapter objectives are listed in the beginning.
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Copyright © 2006 by The McGraw-Hill Companies,
Starting Out with C++: Early Objects 5/e © 2006 Pearson Education. All Rights Reserved Starting Out with C++: Early Objects 5 th Edition Chapter 1 Introduction.
Chapter 3 Planning Your Solution
CS102 Introduction to Computer Programming
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Alternate Version of STARTING OUT WITH C++ 4 th Edition Chapter 1 Introduction to Computers and Programming.
Why Program? Computer – programmable machine designed to follow instructions Program – instructions in computer memory to make it do something Programmer.
Chapter Introduction to Computers and Programming 1.
TERMS TO KNOW. Programming Language A vocabulary and set of grammatical rules for instructing a computer to perform specific tasks. Each language has.
CSC 125 Introduction to C++ Programming Chapter 1 Introduction to Computers and Programming.
Chapter 1: Introduction to Visual Basic.NET: Background and Perspective Visual Basic.NET Programming: From Problem Analysis to Program Design.
The University of Texas – Pan American
1. Fundamentals of Computer Systems Define a computer system Computer Systems in the modern world Professional standards for computer systems Ethical,
Topics Introduction Hardware and Software How Computers Store Data
Simple Program Design Third Edition A Step-by-Step Approach
CIS Computer Programming Logic
Created by, Author Name, School Name—State FLUENCY WITH INFORMATION TECNOLOGY Skills, Concepts, and Capabilities.
COP1220/CGS2423 Introduction to C++/ C for Engineers Professor: Dr. Miguel Alonso Jr. Fall 2008.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Chapter 1: Introduction to Computers and Programming.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Seventh Edition by Tony Gaddis, Judy.
DEPARTMENT OF COMPUTER SCIENCE & TECHNOLOGY FACULTY OF SCIENCE & TECHNOLOGY UNIVERSITY OF UWA WELLASSA 1 CST 221 OBJECT ORIENTED PROGRAMMING(OOP) ( 2 CREDITS.
S2008Final_part1.ppt CS11 Introduction to Programming Final Exam Part 1 S A computer is a mechanical or electrical device which stores, retrieves,
Problem Solving Techniques. Compiler n Is a computer program whose purpose is to take a description of a desired program coded in a programming language.
Lecture 1 Introduction Figures from Lewis, “C# Software Solutions”, Addison Wesley Richard Gesick.
Property of Jack Wilson, Cerritos College1 CIS Computer Programming Logic Programming Concepts Overview prepared by Jack Wilson Cerritos College.
Introduction to Programming with RAPTOR
Algorithm Design.
8-1 Compilers Compiler A program that translates a high-level language program into machine code High-level languages provide a richer set of instructions.
Programming in C++ Dale/Weems/Headington Chapter 1 Overview of Programming and Problem Solving.
Copyright 2003 Scott/Jones Publishing Standard Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
Structured Programming (4 Credits)
CSC 1010 Programming for All Lecture 3 Useful Python Elements for Designing Programs Some material based on material from Marty Stepp, Instructor, University.
COIT29222 Structured Programming 1 COIT29222-Structured Programming Lecture Week 02  Reading: Textbook(4 th Ed.), Chapter 2 Textbook (6 th Ed.), Chapters.
Data Structure Introduction Dr. Bernard Chen Ph.D. University of Central Arkansas Fall 2010.
Computer Programming (1) Code & No.: CS 102 CREDIT HOURS: 5 UNIT Lecture 3.0 hours/week Lab: 2.0 hour/on every week a. This course introduces the students.
CHAPTER 2 PROBLEM SOLVING USING C++ 1 C++ Programming PEG200/Saidatul Rahah.
Controlling Computers with Programs When you create a computer program you are creating a set of instructions that tell the computer exactly and completely.
Algorithms and Pseudocode
Brief Version of Starting Out with C++ Chapter 1 Introduction to Computers and Programming.
Chapter 1: Introduction to Visual Basic.NET: Background and Perspective Visual Basic.NET Programming: From Problem Analysis to Program Design.
Introduction to Computer Programming using Fortran 77.
An Introduction to Programming with C++ Sixth Edition Chapter 5 The Selection Structure.
Copyright © 2014, 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Eighth Edition by Tony Gaddis,
Review A program is… a set of instructions that tell a computer what to do. Programs can also be called… software. Hardware refers to… the physical components.
Programming Logic and Design Seventh Edition Chapter 1 An Overview of Computers and Programming.
Chapter 1: Introduction to Computers and Programming
BASIC PROGRAMMING C SCP1103 (02)
Lecture 1 Introduction Richard Gesick.
Topics Introduction Hardware and Software How Computers Store Data
BASIC ELEMENTS OF A COMPUTER PROGRAM
BASIC PROGRAMMING C SCP1103 (02)
GC101 Introduction to computers and programs
The Selection Structure
Chapter 1: Introduction to Computers and Programming
Topics Introduction Hardware and Software How Computers Store Data
Introduction to Algorithms and Programming
CSC128 FUNDAMENTALS OF COMPUTER PROBLEM SOLVING
ICT Gaming Lesson 2.
Programming Logic and Design Eighth Edition
Chapter 1: Introduction to Computers and Programming
Presentation transcript:

CS 111: Introduction to Programming Midterm Exam NAME _________________ UIN __________________ 10/30/08 1.Who is our hero? 2.Why is this person our hero? 3.The smallest element in a computer to hold data is the ______________ 4.Base 10 has how many unique digits? 5.Base 16 has how many unique digits? 6.What are the Base 16 digits? 7.A single hexadecimal digit contains 8 bits. YES NO 8.A computer does what you ________ it to do not what you ________ it to do. 9.Computers are machines. YES NO 10.It takes a byte to make up two hexadecimal digits. Y ES NO 11.What is the controlling entity of a computer: hardware of software (circle one) 12.The primary operations of a computer are: input – output – process YES NO

13.Programs that tell a computer what to do are known as software YES NO 14.A motherboard is part of the Central Processing Unit (CPU) YES NO 15.ROM (Read-Only-memory) contains the code written by the computer programmer YES NO 16.RAM (Random-Access-memory) contains the code written by the computer programmer YES NO 17.Application software controls system resources YES NO 18.The most important step in program development is to Outline the Solution YES NO 19.All of the program development steps overlap YES NO 20.The hardest task in program development is gathering the requirements YES NO 21.Modularization is best used when the program is small and more controllable YES NO 22.There are three tools the programmer has available: Sequence; Repetition; Decision YES NO 23.Single and Dual IF statements are examples of the Loop structure YES NO

24. An IF statement can only two ways out of the decision YES NO 25. An IF statement must always have an ELSE keyword YES NO 26. An IF statement without an ELSE is not allowed YES NO 27. IF A > B THEN where A = 4 and B = 8 is this statement TRUE or FALSE 28. IF A 22 THEN if A = 4 and B = 22 is the result TRUE or FALSE 29. All logic problems can be solved by using the three structures: Sequence, Looping, Decision YES NO 30.This is a sample of a Loop structure YES NO

31. This is a Decision structure YES NO 32. This is a Sequence structure YES NO 33.This is a correct loop design YES NO

34. This is a legal use of the decision structures YES NO 35.Name the symbols

36. A variable is a memory location where the contents can vary YES NO 37. A variable can have a name for programming purposes YES NO 38. A piece of data called a constant can be named and the data cannot be changed YES NO 39. A literal is a named piece of data that is the data itself YES NO 40.Local variables are obtainable from any program in any module YES NO 41. An = sign is an Assignment Operator YES NO 42. With an assignment, anything on the left side of the = sign is placed into the item on the right side YES NO 43. A = B + C Where A = 5, B = 4, C = 3 When this is complete the value in A will be 7 YES NO means addition YES NO 45. / means division YES NO 46. * means multiplication YES NO means subtraction YES NO

48. The Relational Operator = means “equal to” YES NO 49. The Relational Operator < means “less than” YES NO 50. The Relational Operator > means “greater than” YES NO 51. The Relational Operator >= means “greater than or equal to” YES NO 52. The Relational Operator <= means “less than or equal to” YES NO 53. The Relational Operator <> means “not equal to” YES NO 54. This is a good IF statement YES NO IF A = 5 AND B = C THEN false path ELSE true path ENDIF 55. This is a good IF statement YES NO IF A = 5 AND B = C THEN true path ENDIF

56. The program will not be converted to an executable if there is a syntax error YES NO 57.If a logical error occurs, the program will run but the results will be incorrect YES NO 58.Logical errors are more difficult to find than syntax errors YES NO % of computer programming is planning, not writing code YES NO 60.Documentation is very important as it will help with future problems and enhancements YES NO