Free Essay

Test

In:

Submitted By meetsharma
Words 4907
Pages 20
Teach Yourself C++ in 21 Days, Second Edition
Introduction Week 1 at a Glance: Day 1 Getting Started Day 2 The Parts of a C++ Program Day 3 Variables and Constants Day 4 Expressions and Statements Day 5 Functions Day 6 Basic Classes Day 7 More Program Flow Week 1 in Review Week 2 at a Glance: Day 8 Pointers Day 9 References Day 10 Advanced Functions Day 11 Arrays

Day 12 Inheritance Day 13 Polymorphism Day 14 Special Classes and Functions Week 2 in Review Week 3 at a Glance: Day 15 Advanced Inheritance Day 16 Streams Day 17 The Preprocessor Day 18 Object-Oriented Analysis and Design Day 19 Templates Day 20 Exceptions and Error Handling Day 21 Whats Next Week 3 in Review Appendixes A Operator Precedence B C++ Keywords C Binary and Hexadecimal D Answers

Index

Teach Yourself C++ in 21 Days, Second Edition
Dedication
This book is dedicated to the living memory of David Levine.

Acknowledgments
A second edition is a second chance to acknowledge and to thank those folks without whose support and help this book literally would have been impossible. First among them are Stacey, Robin, and Rachel Liberty. I must also thank everyone associated with my books, both at Sams and at Wrox press, for being professionals of the highest quality. The editors at Sams did a fantastic job, and I must especially acknowledge and thank Fran Hatton, Mary Ann Abramson, Greg Guntle, and Chris Denny. I have taught an online course based on this book for a couple years, and many folks there contributed to finding and eradicating bugs and errors. A very large debt is owed to these folks, and I must especially thank Greg Newman, Corrinne Thompson, and also Katherine Prouty and Jennifer Goldman. I would also like to acknowledge the folks who taught me how to program: Skip Gilbrech and David McCune, and those who taught me C++, including Steve Rogers and Stephen Zagieboylo. I want particularly to thank Mike Kraley, Ed Belove, Patrick Johnson, Mike Rothman, and Sangam Pant, all of whom taught me how to manage a project and ship a product. Others who contributed directly or indirectly to this book include: Scott Boag, David Bogartz, Gene Broadway, Drew and Al Carlson, Frank Childs, Jim Culbert, Thomas Dobbing, James Efstratiou,

David Heath, Eric Helliwell, Gisele and Ed Herlihy, Mushtaq Khalique, Matt Kingman, Steve Leland, Michael Smith, Frank Tino, Donovan White, Mark Woodbury, Wayne Wylupski, and Alan Zeitchek. Programming is as much a business and creative experience as it is a technical one, and I must therefore acknowledge Tom Hottenstein, Jay Leve, David Rollert, David Shnaider, and Robert Spielvogel. Finally, I'd like to thank Mrs. Kalish, who taught my sixth-grade class how to do binary arithmetic in 1965, when neither she nor we knew why.

Tell Us What You Think!
As a reader, you are the most important critic and commentator of our books. We value your opinion and want to know what we're doing right, what we could do better, what areas you'd like to see us publish in, and any other words of wisdom you're willing to pass our way. You can help us make strong books that meet your needs and give you the computer guidance you require. Do you have access to CompuServe or the World Wide Web? Then check out our CompuServe forum by typing GO SAMS at any prompt. If you prefer the World Wide Web, check out our site at http://www.mcp.com

NOTE: If you have a technical question about this book, call the technical support line at 317-581-3833.

As the publishing manager of the group that created this book, I welcome your comments. You can fax, e-mail, or write me directly to let me know what you did or didn't like about this book--as well as what we can do to make our books stronger. Here's the information: Fax: 317-581-4669 E-mail: programming_mgr@sams.mcp.com Mail: Greg Wiegand Sams Publishing 201 W. 103rd Street Indianapolis, IN 46290

Introduction
This book is designed to help you teach yourself how to program with C++. In just 21 days, you'll learn about such fundamentals as managing I/O, loops and arrays, object-oriented programming, templates, and creating C++ applications--all in well-structured and easy-to-follow lessons. Lessons provide sample listings--complete with sample output and an analysis of the code--to illustrate the topics of the day. Syntax examples are clearly marked for handy reference.

To help you become more proficient, each lesson ends with a set of common questions and answers, exercises, and a quiz. You can check your progress by examining the quiz and exercise answers provided in the book's appendix. Who Should Read This Book You don't need any previous experience in programming to learn C++ with this book. This book starts you from the beginning and teaches you both the language and the concepts involved with programming C++. You'll find the numerous examples of syntax and detailed analysis of code an excellent guide as you begin your journey into this rewarding environment. Whether you are just beginning or already have some experience programming, you will find that this book's clear organization makes learning C++ fast and easy. Conventions

NOTE: These boxes highlight information that can make your C++ programming more efficient and effective.

WARNING: These focus your attention on problems or side effects that can occur in specific situations.

These boxes provide clear definitions of essential terms.

DO use the "Do/Don't" boxes to find a quick summary of a fundamental principle in a lesson. DON'T overlook the useful information offered in these boxes.

This book uses various typefaces to help you distinguish C++ code from regular English. Actual C++ code is typeset in a special monospace font. Placeholders--words or characters temporarily used to represent the real words or characters you would type in code--are typeset in italic monospace. New or important terms are typeset in italic. In the listings in this book, each real code line is numbered. If you see an unnumbered line in a listing, you'll know that the unnumbered line is really a continuation of the preceding numbered code line (some code lines are too long for the width of the book). In this case, you should type the two lines as one; do not divide them.

q

Day 1 r Getting Started s Introduction s A Brief History of C++ s Programs s Solving Problems s Procedural, Structured, and Object-Oriented Programming s C++ and Object-Oriented Programming s How C++ Evolved s The ANSI Standard s Should I Learn C First? s Preparing to Program s Your Development Environment s Compiling the Source Code s Creating an Executable File with the Linker s The Development Cycle s Figure 1.1. s HELLO.CPPYour First C++ Program s Listing 1.1. HELLO.CPP, the Hello World program. s Compile Errors s Listing 1.2. Demonstration of s compiler error. s Summary s Q&A s Workshop s Quiz s Exercises

Day 1 Getting Started
Introduction

Welcome to Teach Yourself C++ in 21 Days! Today you will get started on your way to becoming a proficient C++ programmer. You'll learn q Why C++ is the emerging standard in software development. The steps to develop a C++ program. How to enter, compile, and link your first working C++ program.

q

q

A Brief History of C++
Computer languages have undergone dramatic evolution since the first electronic computers were built to assist in telemetry calculations during World War II. Early on, programmers worked with the most primitive computer instructions: machine language. These instructions were represented by long strings of ones and zeroes. Soon, assemblers were invented to map machine instructions to humanreadable and -manageable mnemonics, such as ADD and MOV. In time, higher-level languages evolved, such as BASIC and COBOL. These languages let people work with something approximating words and sentences, such as Let I = 100. These instructions were translated back into machine language by interpreters and compilers. An interpreter translates a program as it reads it, turning the program instructions, or code, directly into actions. A compiler translates the code into an intermediary form. This step is called compiling, and produces an object file. The compiler then invokes a linker, which turns the object file into an executable program. Because interpreters read the code as it is written and execute the code on the spot, interpreters are easy for the programmer to work with. Compilers, however, introduce the extra steps of compiling and linking the code, which is inconvenient. Compilers produce a program that is very fast each time it is run. However, the time-consuming task of translating the source code into machine language has already been accomplished. Another advantage of many compiled languages like C++ is that you can distribute the executable program to people who don't have the compiler. With an interpretive language, you must have the language to run the program. For many years, the principle goal of computer programmers was to write short pieces of code that would execute quickly. The program needed to be small, because memory was expensive, and it needed to be fast, because processing power was also expensive. As computers have become smaller, cheaper, and faster, and as the cost of memory has fallen, these priorities have changed. Today the cost of a programmer's time far outweighs the cost of most of the computers in use by businesses. Well-written, easy-to-maintain code is at a premium. Easy- to-maintain means that as business requirements change, the program can be extended and enhanced without great expense.

Programs

The word program is used in two ways: to describe individual instructions, or source code, created by the programmer, and to describe an entire piece of executable software. This distinction can cause enormous confusion, so we will try to distinguish between the source code on one hand, and the executable on the other.

New Term: A program can be defined as either a set of written instructions created by a programmer or an executable piece of software.

Source code can be turned into an executable program in two ways: Interpreters translate the source code into computer instructions, and the computer acts on those instructions immediately. Alternatively, compilers translate source code into a program, which you can run at a later time. While interpreters are easier to work with, most serious programming is done with compilers because compiled code runs much faster. C++ is a compiled language.

Solving Problems
The problems programmers are asked to solve have been changing. Twenty years ago, programs were created to manage large amounts of raw data. The people writing the code and the people using the program were all computer professionals. Today, computers are in use by far more people, and most know very little about how computers and programs work. Computers are tools used by people who are more interested in solving their business problems than struggling with the computer. Ironically, in order to become easier to use for this new audience, programs have become far more sophisticated. Gone are the days when users typed in cryptic commands at esoteric prompts, only to see a stream of raw data. Today's programs use sophisticated "user-friendly interfaces," involving multiple windows, menus, dialog boxes, and the myriad of metaphors with which we've all become familiar. The programs written to support this new approach are far more complex than those written just ten years ago. As programming requirements have changed, both languages and the techniques used for writing programs have evolved. While the complete history is fascinating, this book will focus on the transformation from procedural programming to object-oriented programming. Procedural, Structured, and Object-Oriented Programming Until recently, programs were thought of as a series of procedures that acted upon data. A procedure, or function, is a set of specific instructions executed one after the other. The data was quite separate from the procedures, and the trick in programming was to keep track of which functions called which other functions, and what data was changed. To make sense of this potentially confusing situation, structured programming was created. The principle idea behind structured programming is as simple as the idea of divide and conquer. A computer program can be thought of as consisting of a set of tasks. Any task that is too complex to be

described simply would be broken down into a set of smaller component tasks, until the tasks were sufficiently small and self-contained enough that they were easily understood. As an example, computing the average salary of every employee of a company is a rather complex task. You can, however, break it down into these subtasks: 1. Find out what each person earns. 2. Count how many people you have. 3. Total all the salaries. 4. Divide the total by the number of people you have. Totaling the salaries can be broken down into 1. Get each employee's record. 2. Access the salary. 3. Add the salary to the running total. 4. Get the next employee's record. In turn, obtaining each employee's record can be broken down into 1. Open the file of employees. 2. Go to the correct record. 3. Read the data from disk. Structured programming remains an enormously successful approach for dealing with complex problems. By the late 1980s, however, some of the deficiencies of structured programing had became all too clear. First, it is natural to think of your data (employee records, for example) and what you can do with your data (sort, edit, and so on) as related ideas. Second, programmers found themselves constantly reinventing new solutions to old problems. This is often called "reinventing the wheel," and is the opposite of reusability. The idea behind reusability is to build components that have known properties, and then to be able to plug them into your program as you need them. This is modeled after the hardware world--when an engineer needs a new transistor, she doesn't usually invent one, she goes to the big bin of transistors and finds one that works the way she needs it to, or perhaps modifies it. There was no similar option for a software engineer.

New Term: The way we are now using computers--with menus and buttons and windows-fosters a more interactive, event-driven approach to computer programming. Event-driven means that an event happens--the user presses a button or chooses from a menu--and the program must respond. Programs are becoming increasingly interactive, and it has became important to design for that kind of functionality.

Old-fashioned programs forced the user to proceed step-by-step through a series of screens. Modern event-driven programs present all the choices at once and respond to the user's actions. Object-oriented programming attempts to respond to these needs, providing techniques for managing enormous complexity, achieving reuse of software components, and coupling data with the tasks that manipulate that data. The essence of object-oriented programming is to treat data and the procedures that act upon the data as a single "object"--a self-contained entity with an identity and certain characteristics of its own. C++ and Object-Oriented Programming C++ fully supports object-oriented programming, including the four pillars of object-oriented development: encapsulation, data hiding, inheritance, and polymorphism. Encapsulation and Data Hiding When an engineer needs to add a resistor to the device she is creating, she doesn't typically build a new one from scratch. She walks over to a bin of resistors, examines the colored bands that indicate the properties, and picks the one she needs. The resistor is a "black box" as far as the engineer is concerned--she doesn't much care how it does its work as long as it conforms to her specifications; she doesn't need to look inside the box to use it in her design. The property of being a self-contained unit is called encapsulation. With encapsulation, we can accomplish data hiding. Data hiding is the highly valued characteristic that an object can be used without the user knowing or caring how it works internally. Just as you can use a refrigerator without knowing how the compressor works, you can use a well-designed object without knowing about its internal data members. Similarly, when the engineer uses the resistor, she need not know anything about the internal state of the resistor. All the properties of the resistor are encapsulated in the resistor object; they are not spread out through the circuitry. It is not necessary to understand how the resistor works in order to use it effectively. Its data is hidden inside the resistor's casing. C++ supports the properties of encapsulation and data hiding through the creation of user-defined types, called classes. You'll see how to create classes on Day 6, "Basic Classes." Once created, a welldefined class acts as a fully encapsulated entity--it is used as a whole unit. The actual inner workings of the class should be hidden. Users of a well-defined class do not need to know how the class works; they just need to know how to use it. Inheritance and Reuse When the engineers at Acme Motors want to build a new car, they have two choices: They can start from scratch, or they can modify an existing model. Perhaps their Star model is nearly perfect, but they'd like to add a turbocharger and a six-speed

transmission. The chief engineer would prefer not to start from the ground up, but rather to say, "Let's build another Star, but let's add these additional capabilities. We'll call the new model a Quasar." A Quasar is a kind of Star, but one with new features. C++ supports the idea of reuse through inheritance. A new type, which is an extension of an existing type, can be declared. This new subclass is said to derive from the existing type and is sometimes called a derived type. The Quasar is derived from the Star and thus inherits all its qualities, but can add to them as needed. Inheritance and its application in C++ are discussed on Day 12, "Inheritance," and Day 15, "Advanced Inheritance." Polymorphism The new Quasar might respond differently than a Star does when you press down on the accelerator. The Quasar might engage fuel injection and a turbocharger, while the Star would simply let gasoline into its carburetor. A user, however, does not have to know about these differences. He can just "floor it," and the right thing will happen, depending on which car he's driving. C++ supports the idea that different objects do "the right thing" through what is called function polymorphism and class polymorphism. Poly means many, and morph means form. Polymorphism refers to the same name taking many forms, and is discussed on Day 10, "Advanced Functions," and Day 13, "Polymorphism."

How C++ Evolved
As object-oriented analysis, design, and programming began to catch on, Bjarne Stroustrup took the most popular language for commercial software development, C, and extended it to provide the features needed to facilitate object-oriented programming. He created C++, and in less than a decade it has gone from being used by only a handful of developers at AT&T to being the programming language of choice for an estimated one million developers worldwide. It is expected that by the end of the decade, C++ will be the predominant language for commercial software development. While it is true that C++ is a superset of C, and that virtually any legal C program is a legal C++ program, the leap from C to C++ is very significant. C++ benefited from its relationship to C for many years, as C programmers could ease into their use of C++. To really get the full benefit of C++, however, many programmers found they had to unlearn much of what they knew and learn a whole new way of conceptualizing and solving programming problems.

The ANSI Standard
The Accredited Standards Committee, operating under the procedures of the American National Standards Institute (ANSI), is working to create an international standard for C++. The draft of this standard has been published, and a link is available at www.libertyassociates.com. The ANSI standard is an attempt to ensure that C++ is portable--that code you write for Microsoft's compiler will compile without errors, using a compiler from any other vendor. Further, because the

code in this book is ANSI compliant, it should compile without errors on a Mac, a Windows box, or an Alpha. For most students of C++, the ANSI standard will be invisible. The standard has been stable for a while, and all the major manufacturers support the ANSI standard. We have endeavored to ensure that all the code in this edition of this book is ANSI compliant.

Should I Learn C First?
The question inevitably arises: "Since C++ is a superset of C, should I learn C first?" Stroustrup and most other C++ programmers agree. Not only is it unnecessary to learn C first, it may be advantageous not to do so. This book attempts to meet the needs of people like you, who come to C++ without prior experience of C. In fact, this book assumes no programming experience of any kind.

Preparing to Program
C++, perhaps more than other languages, demands that the programmer design the program before writing it. Trivial problems, such as the ones discussed in the first few chapters of this book, don't require much design. Complex problems, however, such as the ones professional programmers are challenged with every day, do require design, and the more thorough the design, the more likely it is that the program will solve the problems it is designed to solve, on time and on budget. A good design also makes for a program that is relatively bug-free and easy to maintain. It has been estimated that fully 90 percent of the cost of software is the combined cost of debugging and maintenance. To the extent that good design can reduce those costs, it can have a significant impact on the bottom-line cost of the project. The first question you need to ask when preparing to design any program is, "What is the problem I'm trying to solve?" Every program should have a clear, well-articulated goal, and you'll find that even the simplest programs in this book do so. The second question every good programmer asks is, "Can this be accomplished without resorting to writing custom software?" Reusing an old program, using pen and paper, or buying software off the shelf is often a better solution to a problem than writing something new. The programmer who can offer these alternatives will never suffer from lack of work; finding less-expensive solutions to today's problems will always generate new opportunities later. Assuming you understand the problem, and it requires writing a new program, you are ready to begin your design.

Your Development Environment
This book makes the assumption that your computer has a mode in which you can write directly to the screen, without worrying about a graphical environment, such as the ones in Windows or on the Macintosh.

Your compiler may have its own built-in text editor, or you may be using a commercial text editor or word processor that can produce text files. The important thing is that whatever you write your program in, it must save simple, plain-text files, with no word processing commands embedded in the text. Examples of safe editors include Windows Notepad, the DOS Edit command, Brief, Epsilon, EMACS, and vi. Many commercial word processors, such as WordPerfect, Word, and dozens of others, also offer a method for saving simple text files. The files you create with your editor are called source files, and for C++ they typically are named with the extension .CPP, .CP, or .C. In this book, we'll name all the source code files with the .CPP extension, but check your compiler for what it needs.

NOTE: Most C++ compilers don't care what extension you give your source code, but if you don't specify otherwise, many will use .CPP by default. DO use a simple text editor to create your source code, or use the built-in editor that comes with your compiler. DON'T use a word processor that saves special formatting characters. If you do use a word processor, save the file as ASCII text. DO save your files with the .C, .CP, or .CPP extension. DO check your documentation for specifics about your compiler and linker to ensure that you know how to compile and link your programs.

Compiling the Source Code
Although the source code in your file is somewhat cryptic, and anyone who doesn't know C++ will struggle to understand what it is for, it is still in what we call human-readable form. Your source code file is not a program, and it can't be executed, or run, as a program can. To turn your source code into a program, you use a compiler. How you invoke your compiler, and how you tell it where to find your source code, will vary from compiler to compiler; check your documentation. In Borland's Turbo C++ you pick the RUN menu command or type tc from the command line, where is the name of your source code file (for example, test.cpp). Other compilers may do things slightly differently.

NOTE: If you compile the source code from the operating system's command line, you should type the following: For the Borland C++ compiler: bcc

For the Borland C++ for Windows compiler: bcc For the Borland Turbo C++ compiler: tc For the Microsoft compilers: cl

After your source code is compiled, an object file is produced. This file is often named with the extension .OBJ. This is still not an executable program, however. To turn this into an executable program, you must run your linker.

Creating an Executable File with the Linker
C++ programs are typically created by linking together one or more OBJ files with one or more libraries. A library is a collection of linkable files that were supplied with your compiler, that you purchased separately, or that you created and compiled. All C++ compilers come with a library of useful functions (or procedures) and classes that you can include in your program. A function is a block of code that performs a service, such as adding two numbers or printing to the screen. A class is a collection of data and related functions; we'll be talking about classes a lot, starting on Day 5, "Functions." The steps to create an executable file are 1. Create a source code file, with a .CPP extension. 2. Compile the source code into a file with the .OBJ extension. 3. Link your OBJ file with any needed libraries to produce an executable program.

The Development Cycle
If every program worked the first time you tried it, that would be the complete development cycle: Write the program, compile the source code, link the program, and run it. Unfortunately, almost every program, no matter how trivial, can and will have errors, or bugs, in the program. Some bugs will cause the compile to fail, some will cause the link to fail, and some will only show up when you run the program. Whatever type of bug you find, you must fix it, and that involves editing your source code, recompiling and relinking, and then rerunning the program. This cycle is represented in Figure 1.1, which diagrams the steps in the development cycle. Figure 1.1. The steps in the development of a C++ program.

HELLO.CPPYour First C++ Program
Traditional programming books begin by writing the words Hello World to the screen, or a variation on that statement. This time-honored tradition is carried on here. Type the first program directly into your editor, exactly as shown. Once you are certain it is correct, save the file, compile it, link it, and run it. It will print the words Hello World to your screen. Don't worry too much about how it works, this is really just to get you comfortable with the development cycle. Every aspect of this program will be covered over the next couple of days.

WARNING: The following listing contains line numbers on the left. These numbers are for reference within the book. They should not be typed in to your editor. For example, in line 1 of Listing 1.1, you should enter: #include

Listing 1.1. HELLO.CPP, the Hello World program.
1: 2: 3: 4: 5: 6: 7: #include int main() { cout y; 12: cout y) 15: z = x; 16: else 17: z = y; 18: 19: cout TempFer; TempCel = Convert(TempFer); cout myInt; cout > myLong; cout > myDouble; cout > myFloat; cout > myWord; cout > myUnsigned; cout cout cout cout cout cout >myVarOne >> myVarTwo; // illegal

The return value of (cin.get() >> myVarOne) is an integer, not an iostream object. A common use of get() with no parameters is illustrated in Listing 16.4.

Listing 16.4. Using get() with no parameters.
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: } // Listing 16.4 - Using get() with no parameters #include int main() { char ch; while ( (ch = cin.get()) != EOF) { cout fileName; 8: 9: ifstream fin(fileName); 10: if (fin) // already exists? 11: { 12: cout

Similar Documents

Free Essay

Test Taking

...you feel about tests in general? I don’t like taking test because I always get of feeling of nervousness. My stomach gets all tied up in knots. The problem with taking test is a feeling of not remembering. It gets uncomfortable every time I have to take a test whether I study or not. 2. What are your first memories of being in a testing situation? What were your feeling, and why? My first memory of being in a testing situation is in high school. It was finals and I needed to pass this one course to graduate. It was a course that I detested, and I was horrible at it. This course was Trigonometry. I am not good in math period, but this course was a requirement. I felt that I was going to fail the course, and it was going to be a setback. It was a depressing feeling. 3. What make a test “good” and “bad” from your perspective? What make a test good is knowing what kind of test it, what is covered and how much a percentage is geared toward that test. How do I know that the test is good is when the instructor lets you know what is going to be on the test. A test is good when much preparation and work goes into it. The format or the structure of the test also make it good. When I think of a bad test, it mean no preparation, no work or study when into taking the test. A bad test is a test that is not put together well. The organization is not good and the test is very confusing. It can be a bad test when the person taking the test is ill-prepared...

Words: 528 - Pages: 3

Premium Essay

Test

...For • Practicality-This is probably by far, the biggest argument in favor of standardized tests. Aspects include: o Standardized tests are less time-consuming than more complicated assessments that need personal time with every student. o Standardized tests are easier to administer. There are explicit directions given and each student is given the same directions in the same way. o They are easier to grade, machines do it for us. o Very easy to use a computer to track progress and levels of achievement for different groups of students in different subjects. (Holloway) • Objectivity-It is very easy for a test to be objective, it doesn't have emotion or moods or biases. When giving more personal assessments, it is very possible that the teacher or person assessing the student can let their emotions or biases affect how they score that student. • Instigator of change-Standardized tests can be a powerful tool to change classroom and school practices (Gardner). We can use testing to tell us whether we have a problem (Gerstner). When we identify a problem in a classroom, school, or district we can then take active steps in correcting that problem. In addition, achievement data from tests provide teachers with valuable information to improve classroom and student learning (Gardner) • Accountability-Setting high expectations for students and holding them accountable for the same standards, leads to achievement gains. High-stakes testing forces students to take education...

Words: 1000 - Pages: 4

Free Essay

Test

...Quantitative research methods in educational planning Series editor: Kenneth N.Ross Module John Izard 6 Overview of test construction UNESCO International Institute for Educational Planning Quantitative research methods in educational planning These modules were prepared by IIEP staff and consultants to be used in training workshops presented for the National Research Coordinators who are responsible for the educational policy research programme conducted by the Southern and Eastern Africa Consortium for Monitoring Educational Quality (SACMEQ). The publication is available from the following two Internet Websites: http://www.sacmeq.org and http://www.unesco.org/iiep. International Institute for Educational Planning/UNESCO 7-9 rue Eugène-Delacroix, 75116 Paris, France Tel: (33 1) 45 03 77 00 Fax: (33 1 ) 40 72 83 66 e-mail: information@iiep.unesco.org IIEP web site: http://www.unesco.org/iiep September 2005 © UNESCO The designations employed and the presentation of material throughout the publication do not imply the expression of any opinion whatsoever on the part of UNESCO concerning the legal status of any country, territory, city or area or of its authorities, or concerning its frontiers or boundaries. All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or by any means: electronic, magnetic tape, mechanical, photocopying, recording or otherwise, without permission ...

Words: 13966 - Pages: 56

Free Essay

Test

...Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category test User Category...

Words: 588 - Pages: 3

Free Essay

Test

...Test Automation Criteria Benefit * How often do you believe the test should be run? * How many minutes are required for one tester to execute the test manually? * Will human intervention still be required to execute the test after automation? * Does the execution of the test require the tester to input a large amount of data (e.g. populating many fields or populating the same fields many times) via the gui interface? * Does the test require an inordinate amount of user interface actions (e.g. mouse clicks, validations)? * Will automating the test increase the productivity of the team? * Will automating the test allow us to increase test coverage? * Will automating the test allow us to increase the accuracy (exactness) and precision ( reproducibility or repeatability) of the test? * Is the execution of this test prerequisite to the execution of multiple other tests? Cost * How many hours of data preparation (e.g. querying data, setup within the application, etc.) is required for this test? * Is the test documented in such a way that someone other than the author can execute it, and is it stored in Quality Center? * What is the average number of times the test needs to be updated (e.g to reflect development changes) within a six month span? * Are the manual test steps currently up to date? * Are the systems and environments in which the test is run stable and consistently available? * Are third party systems involved...

Words: 276 - Pages: 2

Free Essay

Test

...academic scores and to include the family’s social, culture and educational background. Sandel states that the A 700 score for a student who attended poor public schools in the South Bronx has more meaning than that of a student from an Upper East Side of Manhattan. 2. What is the essence of Richard Dworkin's argument in support of affirmative action university admissions policies? b. Dworkin’s idea of the supporting argument on affirmative action in relations to the universities admission policies is stated that possibly the right at stake should be based according to academic criteria alone. The fact of being good at football, or coming from Idaho, or having volunteered in a soup kitchen. Dworkin views the facts of grades, test scores, and other measures of academic promise land me in the top group of applicants, therefore I should be admitted. One should be considered based on academic merit alone. 3. What does it mean to sever the idea of "moral desert" from our notions of what constitutes justice?  Would this be helpful? c. Severing the idea of “moral desert” signifies that our nation should reject the talents that one has that enable them to compete more successfully than others in not entirely one’s own doing. He also states an equally decisive contingency where the quality of societal values at any given time...

Words: 504 - Pages: 3

Free Essay

Standardized Tests

...Standardized Testing Standardized testing has been a key part in education for awhile now, but how effective is it really? Does it truly grasp the students’ individualities to highlight their unique abilities? Of course it does not, how can it? If this is true, however, why are they still vital to earn a high school diploma? Education was once about the students, not about the score. It was about enjoying the time in the classroom, creating a desire to want to know more. Standardized tests have taken this away from classrooms, they have caused many pupils to not enjoy the material they are taught while also taking the individualism, the one on one individual experiences, out of the classrooms. Education is no longer about the individual student. It is about the student body, making everyone the same or “equal”. Education should be fun. It should make the student desire to learn more. Francine Prose discusses this in her essay, I Know Why the Caged Bird Cannot Read. She talks of how each September she is more and more depressed when she receives her sons’ reading lists for the upcoming school year. Not only have the books they are forced to read not the best choices, but the information from the books is forced down the student’s throats. Students are not given the opportunity to read the books and enjoy them. Upon receiving the their assignments, they are also given worksheets and other assignments,outlining the information and key points they are expected understand...

Words: 1053 - Pages: 5

Free Essay

Standardized Tests

...Standardized Tests Sections I and II Sammy North DeVry University Standardized Tests Sections I and II Brittany, an honors student in Atlanta, Georgia, had worked hard her entire academic career to celebrate what would be her proudest moment in high school: commencement. She wanted to walk across the stage to the flash of cameras and the smiles of her family just like her classmates, and then journey off to a college in South Carolina where she had already been accepted. So she gathered her proud family members from Chicago and Washington, D.C., to come to share in her joy. Brittany watched as her classmates put on their caps and gowns and walked across the stage to receive their diplomas. But she did not, and instead waited all during the day to get a last-minute waiver signed. She continued to wait through the night, but it never came. She began to realize that if she graduated, it would not be quick or easy. Her problem was that she had not passed one of four subject areas in the state’s graduation test, which students must pass to earn a regular diploma. She is not alone. Thousands of students, such as Brittany, every year do not make it across the stage at graduation due to failing these state tests. And many of them, such as Brittany, were honors students who had fulfilled all the other requirements of graduation except this one (Torres, 2010). Stories such as this one are far too common and should not happen. We have the power to change the status quo, so that...

Words: 2702 - Pages: 11

Premium Essay

Standardized Test

...’ve always thought about attending a school where students don’t have to take tests mandated by the government. I just realized that it is possible. In the article “What Schools Could Use Instead of Standardized Test”, by Anya Kamenetz, it recommends that it might come true in future years. As of right now, attorneys and legislators have been trying to draft a bill that could get rid of the desire for a federal bubble test and dismiss the renewal of the rule that states no child left behind, but switching it with fast state wide evaluations. The debate over the elimination of the federal testing comes in conclusion of the increasing concern of the time amount of these students use to take this test and the increasing number of parents deciding to withdraw their children from these tests. The council of chief state school officers and broad and big school districts were in support of decreasing the number of standardized tests students take. Plenty democratic groups have come out and backed this idea. If Schools do drop the mandated government tests, Kamenetz advice of three different choices measuring national students The first choice that Kamenetz...

Words: 631 - Pages: 3

Free Essay

Test

...P a g e |1 BackTrack 5 guide 4: How to perform stealth actions Karthik R, Contributor You can read the original story here, on SearchSecurity.in. In previous installments of this BackTrack 5 how to tutorial, we have discussed information gathering and vulnerability assessment of the target system; explored network assessment, scanning and gaining access into the target; and, delved into privilege escalation tools. In this installment of the tutorial on BackTrack 5, how to perform stealth actions will be discussed. Why stealth? The objective of penetration testing is to replicate the actions of a malicious attacker. No attacker desires discovery of surreptitious entry into the network, and hence employs stealth techniques to remain unnoticed. The penetration tester needs to adopt the same stealth methods, in order to honestly assess the target network. http://searchsecurity.techtarget.in/tip/BackTrack-5-guide-4-How-to-perform-stealth-actions P a g e |2 Figure 1. The ‘maintaining access’ category in BackTrack 5, with a focus on OS backdoors. This installment of the BackTrack 5 how to tutorial deals with the “Maintaining Access” feature, within which are options for OS backdoors, tunneling and Web backdoors, as shown in Figure 1. OS backdoors > Cymothoa: Cymothoa is a stealth backdooring tool on BackTrack 5 that injects backdoor shell code into an existing process. This tool has been developed by codewizard and crossbower from ElectronicSouls. The general...

Words: 1111 - Pages: 5

Premium Essay

Pre And Post-Test Assessment

...Compare your experience in taking the pre and post-test assessment. For this post exam, I experienced more anxiety than with the previous assessment test. I reviewed APEA material for most of the week, so I felt better prepared in some areas. However, with this exam falling on a holiday week, it was difficult to maintain consistent review times. Physically, I felt like I was sitting for the actual exam, therefore, my stomach was unsettled. However, I was more focused on taking my time reading the questions instead of rushing through the exam. Compare the scores you received pre and post-test, and the areas of lowest and highest scores. How did you do? The results of the pre-test reveal the lowest scores in Diagnosis and the post-test evaluation indicate that this is an area in which I need to improve in. My scores were consistently high for Assessment, however, they dropped in Planning and Intervention. I believe the challenge is deciding the most appropriate intervention. The areas of Evaluation and Pharmocotherapeutics were improved....

Words: 1046 - Pages: 5

Premium Essay

Eco 410 Test Bank

...A++PAPER;http://www.homeworkproviders.com/shop/eco-410-test-bank/ ECO 410 TEST BANK ECO 410 Test Bank, All Possible Questions With Answers ECO 410 Week 2 Quiz 1: Chapters 1 and 2 ECO 410 Week 3 Quiz 2: Chapters 3 and 4 ECO 410 Week 4 Quiz 3: Chapters 5 and 6 ECO 410 Week 5 Quiz 4: Chapters 7 and 8 ECO 410 Week 6 Quiz 5: Chapters 9 and 10 ECO 410 Week 7 Quiz 6: Chapters 11 and 12 ECO 410 Week 8 Quiz 7: Chapters 13 and 14 ECO 410 Week 9 Quiz 8: Chapters 15 and 16 ECO 410 Week 10 Quiz 9: Chapter 17 and 18 ECO 410 Week 11 Quiz 10: Chapter 19 and 20 ECO 410 Quizzes and Exam Week 1 - 11 All Possible Questions With Answers ECO 410 Week 2 Quiz 1: Chapters 1 and 2 ECO 410 Week 3 Quiz 2: Chapters 3 and 4 ECO 410 Week 4 Quiz 3: Chapters 5 and 6 ECO 410 Week 5 Quiz 4: Chapters 7 and 8 ECO 410 Week 6 Quiz 5: Chapters 9 and 10 ECO 410 Week 7 Quiz 6: Chapters 11 and 12 ECO 410 Week 8 Quiz 7: Chapters 13 and 14 ECO 410 Week 9 Quiz 8: Chapters 15 and 16 ECO 410 Week 10 Quiz 9: Chapter 17 and 18 ECO 410 Week 11 Quiz 10: Chapter 19 and 20 ECO 410 Quizzes and Exam Week 1 - 11 All Possible Questions With Answers ECO 410 Week 2 Quiz 1: Chapters 1 and 2 ECO 410 Week 3 Quiz 2: Chapters 3 and 4 ECO 410 Week 4 Quiz 3: Chapters 5 and 6 ECO 410 Week 5 Quiz 4: Chapters 7 and 8 ECO 410 Week 6 Quiz 5: Chapters 9 and 10 ECO 410 Week 7 Quiz 6: Chapters 11 and 12 ECO 410 Week 8 Quiz 7: Chapters 13 and 14 ...

Words: 471 - Pages: 2

Free Essay

Eco 410 Test Bank

...ECO 410 TEST BANK A+ Graded Tutorial Available At: http://hwsoloutions.com/?product=eco-410-test-bank Visit Our website: http://hwsoloutions.com/ Product Description PRODUCT DESCRIPTION ECO 410 Test Bank, All Possible Questions With Answers ECO 410 Week 2 Quiz 1: Chapters 1 and 2 ECO 410 Week 3 Quiz 2: Chapters 3 and 4 ECO 410 Week 4 Quiz 3: Chapters 5 and 6 ECO 410 Week 5 Quiz 4: Chapters 7 and 8 ECO 410 Week 6 Quiz 5: Chapters 9 and 10 ECO 410 Week 7 Quiz 6: Chapters 11 and 12 ECO 410 Week 8 Quiz 7: Chapters 13 and 14 ECO 410 Week 9 Quiz 8: Chapters 15 and 16 ECO 410 Week 10 Quiz 9: Chapter 17 and 18 ECO 410 Week 11 Quiz 10: Chapter 19 and 20 ECO 410 Quizzes and Exam Week 1 – 11 All Possible Questions With Answers ECO 410 Week 2 Quiz 1: Chapters 1 and 2 ECO 410 Week 3 Quiz 2: Chapters 3 and 4 ECO 410 Week 4 Quiz 3: Chapters 5 and 6 ECO 410 Week 5 Quiz 4: Chapters 7 and 8 ECO 410 Week 6 Quiz 5: Chapters 9 and 10 ECO 410 Week 7 Quiz 6: Chapters 11 and 12 ECO 410 Week 8 Quiz 7: Chapters 13 and 14 ECO 410 Week 9 Quiz 8: Chapters 15 and 16 ECO 410 Week 10 Quiz 9: Chapter 17 and 18 ECO 410 Week 11 Quiz 10: Chapter 19 and 20 ECO 410 Quizzes and Exam Week 1 – 11 All Possible Questions With Answers ECO 410 Week 2 Quiz 1: Chapters 1 and 2 ECO 410 Week 3 Quiz 2: Chapters 3 and 4 ECO 410 Week 4 Quiz 3: Chapters 5 and 6 ECO 410 Week 5 Quiz 4: Chapters 7 and 8 ECO 410 Week 6 Quiz 5: Chapters 9 and 10 ECO 410 Week 7 Quiz 6: Chapters 11 and 12 ECO...

Words: 484 - Pages: 2

Premium Essay

Standardized Test Outline

...I. Standardized test give an unfair advantage to some groups, with the contrast only widening throughout the decades. A. The wealthier class are more prepared than the poor class. 1. Since the 1960s, the contrast of standardized test results between those with wealth and those in poverty have widened by 60%. 2. Students in wealthier environments have greater access to methods and classes that help them prepare specifically for standardized tests. B. Whites and Asians have an advantage over Latinos and African Americans. 1. Although the African American and Latino students make up about 70% of the total student body, they are consistent in scoring lower on standardized tests in New York. 2. Schools in Virginia require a smaller percent...

Words: 615 - Pages: 3

Premium Essay

Standardization Test

...these test has become important for teachers since a student may take a least one standardized test per year. And therein lies the problem; relying heavily on standardized test, whether or not these test actually have reliable scores and are worth the extensive focus. Standardized test negatively affect student learning because they focus on certain topics and generate unreliable test scores due to certain factors. These factors include limitation of creativity, narrowing of curriculum, use of outdated methods, repetition, race and gender. In my research I have found significant data supporting my views. But first it is important to understand what standardized tests are. Standardized tests are different from other testing because they have uniform procedure. This means that they have the same time limits, fixed set of questions, and the scoring is also carefully outlined and uniform. Standardized test are usually scored objectively but there can be some questions such as a short answer question or personality questions which can be scored differently. Almost all test can be classified as informal or formal; a test given and create by a teacher is informal, but a standardized test is classified as formal (Mehrens and Lehmannn). There are certain characteristics a test must have to be a standardized test. The first characteristic is that the test must be designed by a specialist. These specialists have been trained in measurement and principles of test development...

Words: 1511 - Pages: 7