S2008Final_part1.ppt CS11 Introduction to Programming Final Exam Part 1 S2008 1.A computer is a mechanical or electrical device which stores, retrieves,

Slides:



Advertisements
Similar presentations
Introduction to Data and control structures Problem Solving Learning Objectives page 2page 2 Introduction to Data.
Advertisements

CS 111: Introduction to Programming Midterm Exam NAME _________________ UIN __________________ 10/30/08 1.Who is our hero? 2.Why is this person our hero?
Understanding the Three Basic Structures
CHAPTER 1: AN OVERVIEW OF COMPUTERS AND LOGIC. Objectives 2  Understand computer components and operations  Describe the steps involved in the programming.
Starting Out with C++, 3 rd Edition 1 Chapter 1. Introduction to Computers and Programming.
COSC 120 Computer Programming
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design First Edition by Tony Gaddis.
CIS105 Chapter 1 Theory Review. Page 2 Hardware and Software are the two major components o any computer system Hardware is the set of physical devices.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Program Design and Development
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Sixth Edition by Tony Gaddis, Judy Walters,
Programming Logic and Design, Introductory, Fourth Edition1 Understanding Computer Components and Operations (continued) A program must be free of syntax.
Chapter 1 Program Design
Topic 1: Introduction to Computers and Programming
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.
Programming Logic and Design Fourth Edition, Introductory
Microsoft Visual Basic 2012 CHAPTER ONE Introduction to Visual Basic 2012 Programming.
Microsoft Visual Basic 2005 CHAPTER 1 Introduction to Visual Basic 2005 Programming.
CS102 Introduction to Computer Programming
Tools make jobs easier to do -A computer is a tool used by many professions A computer can do many different jobs because they are programmable - Machine.
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.
CSC 125 Introduction to C++ Programming Chapter 1 Introduction to Computers and Programming.
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
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.
CISC105 General Computer Science Class 1 – 6/5/2006.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Seventh Edition by Tony Gaddis, Judy.
An Introduction to Computers August 12, 2008 Mrs. C. Furman.
Extended Prelude to Programming Concepts & Design, 3/e by Stewart Venit and Elizabeth Drake Chapter 2: Flowcharts.
Property of Jack Wilson, Cerritos College1 CIS Computer Programming Logic Programming Concepts Overview prepared by Jack Wilson Cerritos College.
COMPUTER PROGRAMMING. Computer programming the objective of the module to gain the necessary skills to develop a computer program using one of the high.
What is Programming? A program is a list of instructions that is executed by a computer to accomplish a particular task. Creating those instructions is.
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.
Computer Organization. The digital computer is a digital system that performs various computational tasks Digital computer use binary number system which.
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.
Programming Logic and Design, Introductory, Fourth Edition1 Understanding the Three Basic Structures Structure: a basic unit of programming logic Any program.
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.
1 Overview of Programming Principles of Computers.
Brief Version of Starting Out with C++ Chapter 1 Introduction to Computers and Programming.
Introduction to Computer Programming using Fortran 77.
C++ Programming: From Problem Analysis to Program Design, Fifth Edition Chapter 1: An Overview of Computers and Programming Languages.
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.
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
The purpose of a CPU is to process data Custom written software is created for a user to meet exact purpose Off the shelf software is developed by a software.
Chapter 1: Introduction to Computers and Programming
Introduction to Computing Systems
BASIC PROGRAMMING C SCP1103 (02)
Introduction to Visual Basic 2008 Programming
Lecture 1: Introduction to JAVA
BASIC PROGRAMMING C SCP1103 (02)
COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE
Chapter 1. Introduction to Computers and Programming
Chapter 1: Introduction to Computers and Programming
Computer Terms Good to Know.
Understanding the Three Basic Structures
Topics Introduction Hardware and Software How Computers Store Data
ICT Gaming Lesson 2.
Understand the interaction between computer hardware and software
Chapter 6 Programming the basic computer
Overview of Computer system
Chapter 1: Introduction to Computers and Programming
Presentation transcript:

S2008Final_part1.ppt CS11 Introduction to Programming Final Exam Part 1 S A computer is a mechanical or electrical device which stores, retrieves, and manipulates data at a high speed. 2.Mainframes are larger and more powerful than servers. 3.Hardware and software constitute a computer. 4.Software is the primary driver/controller of a computer. 5.The Central Processing Unit (CPU) takes data from input devices, processes the data, and places the results on output devices. 6.Syntax error is the only error a computer can make. 7.A compiler converts machine language into translator instructions. 8.ROM is where the operating system and application programs reside. 9.Internal storage is called RAM. 10.A bit is the lowest element in a computer that can hold data bits make up a byte. T F Name: ___________ UIN: ______________

S2008Final_part1.ppt CS11 Introduction to Programming Final Exam Part 1 S There are 4 bits in a nibble and 2 nibbles in a byte. 13. Application software interfaces with the user. 14. An operating system controls the functioning of an application. 15. Hardware controls the functioning of an operating system. 16. Computer programs written by programmers are converted to machine language before being executed. 17. Compilers create machine language instructions one program instruction at a time. 18. Translators create a single executable program by converting all of the program instructions at one time into machine language. 19. The two error types are syntax and logic. 20. Math may be accomplished with alphanumeric data. 21. The following is alphanumeric data: “34269” 22. This is valid: variablename = variablename * 24 T F

S2008Final_part1.ppt CS11 Introduction to Programming Final Exam Part 1 S The following are arithmetic operators: + - * / 24. A file and a database are the same thing. 25. In a file or database table a field consists of characters (alphanumeric or numeric) 26. In a file a record consists of fields. 27. A file consists records. 28. Fields are stand-a-lone individual pieces of information that are the same data type and store the same type of data. 29. A constant is a programming aid that holds data but the data can be changed by the program. 30. A variable is a named memory location that the program does not change the data. 31. The most important step in program development is to code the program in some selected language. 32. The initial housekeeping tasks of a program are executed just before the program terminates. T F

S2008Final_part1.ppt CS11 Introduction to Programming Final Exam Part 1 S Checking for End of File (EOF) is used in programming to see if more data is available. 34. A main loop may control modules that actually perform programming tasks. 35. In a programmers toolbox there are three main tools: sequence, repetition, decision. 36. This is a Decision structure 37. This is a Decision structure T F

S2008Final_part1.ppt CS11 Introduction to Programming Final Exam Part 1 S This would be a dual alternative IF statement 39. This is not a legitimate form of the IF statement T F IF the hours worked is more than 40 THEN total pay will be = regular pay amount plus overtime hours multiplied by 1 ½ times regular pay amount ELSE total pay is regular hours times regular pay amount END IF 40. This would be a single alternative IF statement

S2008Final_part1.ppt CS11 Introduction to Programming Final Exam Part 1 S An IF statement is used to make a decision 42. Looping is another way of describing the Repetition Structure. 43. This is a loop structure. 44. Loops can be controlled by DO WHILE and DO UNTIL instructions. 45. Using a counter is the only way to control a loop. T F

S2008Final_part1.ppt CS11 Introduction to Programming Final Exam Part 1 S A do-while loop executes as long as the question’s answer is Yes or True 47. A do-while loop Test is checked at beginning of a loop 48. A do-while loop may not be executed 49. A do-until loop executes as long as the question’s answer is No or False (until it becomes Yes or True) 50. A do-until loop is checked at end of loop 51. A do-until loop will always execute at least once 52. Relational operator > means less than 53. Relational operator <> means not equal to 54. The Relational operators are:, =, =, <> T F

S2008Final_part1.ppt CS11 Introduction to Programming Final Exam Part 1 S Multiple rational operators may be used in a single instruction. 56. Logical AND operator: Allows you to ask two or more questions in a single question 57. Logical AND operator: each expression must be true to produce a result of true 58. Logical OR operator: at least one of two conditions must be true to produced a result of True 59. When range checking by using >= and <= the outside numbers in the range will not be included in the check 60. The CASE statement is a good way to make decisions if it is available in the selected programming language. 61. Are we having fun. T F T