Review2

jaspersugarlandΛογισμικό & κατασκευή λογ/κού

14 Δεκ 2013 (πριν από 3 χρόνια και 6 μήνες)

66 εμφανίσεις

CPSC 430: Fall 2001
-
2002

Review for Exam #2


This exam will emphasize systems software, some of Linux, and the beginnings of C++.



What is a user interface?



What is a shell?

o

Categories of user
-
interfaces



Command
-
Line



Menu
-
Driven



GUI



WIMP



Web
-
Form



Natural L
anguage

o

Shell Issues



Run
-
Time Intervention



Demands on hardware



Differing needs of users



Operating System



Know how to use pipes in Linux



Know what stdin and stdout are in Linux



Know how to use file redirection in Linux



command < file input to the

command is the file rather than the keyboard



command > file output of the command is to the file rather than the monitor



command >& file error messages are sent to the file rather than the monitor



command >> file output is appende
d to the file rather than sent to the monitor



Know what the following Linux commands accomplish

o

ls

o

cd

o

cat

o

more

o

cp

o

pwd

o

mkdir

o

rm



From Lecture #12 (Linux Tutorial on the shell)

o

what does
alias

allow you to do?

o

What does the environment variable
PATH

govern?
What is its significance?

o

Shell metacharacters: *, ?



What are the 2 main objectives of an operating system?



Job Scheduling

o

What is the difference between batch and interactive processing?

o

What is multiprogramming?

o

What is an interrupt?

o

What is an interrup
t handler?

o

What is a buffer?

o

What is buffering?

o

What is a device controller?

o

What is timesharing?

o

What is a time
-
slice?

o

Don’t just memorize definitions
---

understand why time
-
sharing is useful



Memory Management

o

What is meant by resident? What sorts of th
ings are resident?

o

What is meant by transient? What sorts of things are transient?

o

What is the fixed partition memory management scheme? Advantages? Disadvantages?

o

Dynamic Memory Management?

o

Fragmentation

o

First
-
Fit, Best
-
Fit, Optimal
-
Fit, Worst
-
Fit

o

Pagi
ng



Pages



Frames



Demand paging



Page Fault



Thrashing



Virtual Memory



You are expected to understand the implementation and concept of paging well.

o

Segmentation: What it is. What it offers. How it differs from paging.



Everything covered in C++

o

Programming E
rrors: Syntax, Run
-
Time, Logic

o

Purpose of typing rules

o

Template for a C++ program

o

What are valid identifiers?

o

Is C++ case
-
sensitive?

o

preprocessor directives and including header files

o

comments (2 forms)

o

input (using cin)

o

output (using cout)

o

assignment op
erators (=, +=,
-
=, /=, %=, ++i, i++,
--
i, i
--
)

o

integers (more complicated than in Delphi)

o

implicit coercion and associated discussion (differences between C++ and Delphi
philosophically, why some programming language theorists dislike implicit coercions)
.

o

explicit coercion functions

o

arithmetic operators (+,
-
, *, / %)

o

logic operators (&&, ||, !)

o

relational operators (!=, >=, <=, <, >, ==)

o

precedence and its role

o

booleans in C++

o

if
-
statement

o

declaration of variables (how, where, initialization)

o

named cons
tants (how to declare them, why they are in a language)

o

enumerated types

o

What is a side
-
effect?

o

Scope of a variable (what does this mean? 2 kinds of scope discussed).

o

Lifetime of a variable (what does this mean? 2 kinds of lifetime discussed).

o

What is an

overloaded operator? Give an example of one.

o

Difference between a unary operator and a binary operator

o

Conditional Expressions

o

O
-
notation