FINAL CSE 3901 EXAM WITH CORRECT |\ |\ |\ |\ |\ |\
ANSWERS
Advantages Thin Clients have over Thick Clients - CORRECT |\ |\ |\ |\ |\ |\ |\ |\ |\
ANSWERS ✔✔performance, flexibility, robustness, security
|\ |\ |\ |\
Unit Testing - CORRECT ANSWERS ✔✔Individual components are
|\ |\ |\ |\ |\ |\ |\ |\
tested in isolation under unit test (UUT).
|\ |\ |\ |\ |\ |\ |\
Black box is testing only to specifications, White box is testing
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\ |\
based on code structure|\ |\ |\
Integration Testing - CORRECT ANSWERS ✔✔Modules are tested|\ |\ |\ |\ |\ |\ |\ |\
in combination to check interfaces. Best done incrementally.
|\ |\ |\ |\ |\ |\ |\ |\
Bottom Up: start with most basic, easy to exercise all features,
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\ |\
can write a driver for higher levels
|\ |\ |\ |\ |\ |\
Top down: Start at top (main) test interfaces early
|\ |\ |\ |\ |\ |\ |\ |\
System Testing - CORRECT ANSWERS ✔✔Verify that systems as a
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\
whole meet the requirements and specifications.
|\ |\ |\ |\ |\
alpha: tested by developers before release
|\ |\ |\ |\ |\
beta: by "friendly customers" before general release
|\ |\ |\ |\ |\ |\
acceptance: by end customer, they better be happy! |\ |\ |\ |\ |\ |\ |\
TDD - CORRECT ANSWERS ✔✔Test Driven Development
|\ |\ |\ |\ |\ |\
,Repository = ? - CORRECT ANSWERS ✔✔working tree + store
|\ |\ |\ |\ |\ |\ |\ |\ |\
working tree - CORRECT ANSWERS ✔✔the project itself, an
|\ |\ |\ |\ |\ |\ |\ |\ |\
ordinary directory including files and sub directories. developers
|\ |\ |\ |\ |\ |\ |\ |\
retrieve copies to work on |\ |\ |\ |\
store - CORRECT ANSWERS ✔✔hidden directory (.git) in root
|\ |\ |\ |\ |\ |\ |\ |\ |\
directory of working tree. Brings in a time component. You should
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\
never access .git directly
|\ |\ |\ |\
Commit - CORRECT ANSWERS ✔✔creates a snapshot, each is
|\ |\ |\ |\ |\ |\ |\ |\ |\
identified by a hash and is almost guaranteed to be unique.
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\
Index - CORRECT ANSWERS ✔✔virtual snapshot stored at
|\ |\ |\ |\ |\ |\ |\
.git/index. this is a gateway for moving changes made in the
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\ |\ |\
working tree to the store |\ |\ |\ |\
Snapshot - CORRECT ANSWERS ✔✔apply your modifications in
|\ |\ |\ |\ |\ |\ |\ |\
the working copy to the repository. changes the repository,
|\ |\ |\ |\ |\ |\ |\ |\
"commits" changes
|\ |\
History - CORRECT ANSWERS ✔✔Directed Acyclic Graph of
|\ |\ |\ |\ |\ |\ |\ |\
snapshots. Stacking a snapshot and its predecessors gives a
|\ |\ |\ |\ |\ |\ |\ |\ |\
snapshot of the project (aka a revision or a version)
|\ |\ |\ |\ |\ |\ |\ |\ |\
Branch - CORRECT ANSWERS ✔✔pointer to a commit
|\ |\ |\ |\ |\ |\ |\
,Head - CORRECT ANSWERS ✔✔a special reference, usually
|\ |\ |\ |\ |\ |\ |\ |\
pointing to a branch. think that this is "attached" to a branch
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\ |\
git status - CORRECT ANSWERS ✔✔displays differences between
|\ |\ |\ |\ |\ |\ |\ |\
head and index |\ |\
git add - CORRECT ANSWERS ✔✔updates index based on files in
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\ |\
working tree |\
git commit - CORRECT ANSWERS ✔✔stores current content of
|\ |\ |\ |\ |\ |\ |\ |\ |\
index along with a log message (makes wt == index)
|\ |\ |\ |\ |\ |\ |\ |\ |\
git branch - CORRECT ANSWERS ✔✔creates a new branch
|\ |\ |\ |\ |\ |\ |\ |\ |\
pointing to where the head is |\ |\ |\ |\ |\
git checkout xxx - CORRECT ANSWERS ✔✔updates index and
|\ |\ |\ |\ |\ |\ |\ |\ |\
working tree, points head to whatever the argument is. only do
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\ |\
this if the working tree is clean
|\ |\ |\ |\ |\ |\
git log - CORRECT ANSWERS ✔✔display snapshots in a store, DAG
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\
merge - CORRECT ANSWERS ✔✔bring history together, bring
|\ |\ |\ |\ |\ |\ |\ |\
work from another branch into the current branch
|\ |\ |\ |\ |\ |\ |\
DVC - CORRECT ANSWERS ✔✔Distributed Version Control,
|\ |\ |\ |\ |\ |\ |\
multiple people distributed across a network contributing to a
|\ |\ |\ |\ |\ |\ |\ |\ |\
central repository |\
, Dynamically Typed Programming Language - CORRECT ANSWERS |\ |\ |\ |\ |\ |\
✔✔variables do not have to have types, objects (which variables
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\ |\
point to) do |\ |\
primitive types in ruby - CORRECT ANSWERS ✔✔numbers,
|\ |\ |\ |\ |\ |\ |\ |\
strings, ranges, regular expressions
|\ |\ |\
numbers - CORRECT ANSWERS ✔✔integers (Fixnum, Bignum)
|\ |\ |\ |\ |\ |\
float: double precision!
|\ |\
strings - CORRECT ANSWERS ✔✔over 75 built in methods
|\ |\ |\ |\ |\ |\ |\ |\
split - CORRECT ANSWERS ✔✔splits a string into an array of
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\ |\
strings based on a separator
|\ |\ |\ |\
chomp - CORRECT ANSWERS ✔✔returns a string with the
|\ |\ |\ |\ |\ |\ |\ |\ |\
separator string removed. if nothing, good for removing
|\ |\ |\ |\ |\ |\ |\ |\
whitespace & newlines |\ |\
ranges - CORRECT ANSWERS ✔✔1..10 is represented as two
|\ |\ |\ |\ |\ |\ |\ |\ |\
values of type fixnum |\ |\ |\
0..4 includes start and end value
|\ |\ |\ |\ |\
0...4 does not
|\ |\
Local (ruby) - CORRECT ANSWERS ✔✔starts with a lowercase
|\ |\ |\ |\ |\ |\ |\ |\ |\
letter or _ |\ |\
ANSWERS
Advantages Thin Clients have over Thick Clients - CORRECT |\ |\ |\ |\ |\ |\ |\ |\ |\
ANSWERS ✔✔performance, flexibility, robustness, security
|\ |\ |\ |\
Unit Testing - CORRECT ANSWERS ✔✔Individual components are
|\ |\ |\ |\ |\ |\ |\ |\
tested in isolation under unit test (UUT).
|\ |\ |\ |\ |\ |\ |\
Black box is testing only to specifications, White box is testing
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\ |\
based on code structure|\ |\ |\
Integration Testing - CORRECT ANSWERS ✔✔Modules are tested|\ |\ |\ |\ |\ |\ |\ |\
in combination to check interfaces. Best done incrementally.
|\ |\ |\ |\ |\ |\ |\ |\
Bottom Up: start with most basic, easy to exercise all features,
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\ |\
can write a driver for higher levels
|\ |\ |\ |\ |\ |\
Top down: Start at top (main) test interfaces early
|\ |\ |\ |\ |\ |\ |\ |\
System Testing - CORRECT ANSWERS ✔✔Verify that systems as a
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\
whole meet the requirements and specifications.
|\ |\ |\ |\ |\
alpha: tested by developers before release
|\ |\ |\ |\ |\
beta: by "friendly customers" before general release
|\ |\ |\ |\ |\ |\
acceptance: by end customer, they better be happy! |\ |\ |\ |\ |\ |\ |\
TDD - CORRECT ANSWERS ✔✔Test Driven Development
|\ |\ |\ |\ |\ |\
,Repository = ? - CORRECT ANSWERS ✔✔working tree + store
|\ |\ |\ |\ |\ |\ |\ |\ |\
working tree - CORRECT ANSWERS ✔✔the project itself, an
|\ |\ |\ |\ |\ |\ |\ |\ |\
ordinary directory including files and sub directories. developers
|\ |\ |\ |\ |\ |\ |\ |\
retrieve copies to work on |\ |\ |\ |\
store - CORRECT ANSWERS ✔✔hidden directory (.git) in root
|\ |\ |\ |\ |\ |\ |\ |\ |\
directory of working tree. Brings in a time component. You should
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\
never access .git directly
|\ |\ |\ |\
Commit - CORRECT ANSWERS ✔✔creates a snapshot, each is
|\ |\ |\ |\ |\ |\ |\ |\ |\
identified by a hash and is almost guaranteed to be unique.
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\
Index - CORRECT ANSWERS ✔✔virtual snapshot stored at
|\ |\ |\ |\ |\ |\ |\
.git/index. this is a gateway for moving changes made in the
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\ |\ |\
working tree to the store |\ |\ |\ |\
Snapshot - CORRECT ANSWERS ✔✔apply your modifications in
|\ |\ |\ |\ |\ |\ |\ |\
the working copy to the repository. changes the repository,
|\ |\ |\ |\ |\ |\ |\ |\
"commits" changes
|\ |\
History - CORRECT ANSWERS ✔✔Directed Acyclic Graph of
|\ |\ |\ |\ |\ |\ |\ |\
snapshots. Stacking a snapshot and its predecessors gives a
|\ |\ |\ |\ |\ |\ |\ |\ |\
snapshot of the project (aka a revision or a version)
|\ |\ |\ |\ |\ |\ |\ |\ |\
Branch - CORRECT ANSWERS ✔✔pointer to a commit
|\ |\ |\ |\ |\ |\ |\
,Head - CORRECT ANSWERS ✔✔a special reference, usually
|\ |\ |\ |\ |\ |\ |\ |\
pointing to a branch. think that this is "attached" to a branch
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\ |\
git status - CORRECT ANSWERS ✔✔displays differences between
|\ |\ |\ |\ |\ |\ |\ |\
head and index |\ |\
git add - CORRECT ANSWERS ✔✔updates index based on files in
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\ |\
working tree |\
git commit - CORRECT ANSWERS ✔✔stores current content of
|\ |\ |\ |\ |\ |\ |\ |\ |\
index along with a log message (makes wt == index)
|\ |\ |\ |\ |\ |\ |\ |\ |\
git branch - CORRECT ANSWERS ✔✔creates a new branch
|\ |\ |\ |\ |\ |\ |\ |\ |\
pointing to where the head is |\ |\ |\ |\ |\
git checkout xxx - CORRECT ANSWERS ✔✔updates index and
|\ |\ |\ |\ |\ |\ |\ |\ |\
working tree, points head to whatever the argument is. only do
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\ |\
this if the working tree is clean
|\ |\ |\ |\ |\ |\
git log - CORRECT ANSWERS ✔✔display snapshots in a store, DAG
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\
merge - CORRECT ANSWERS ✔✔bring history together, bring
|\ |\ |\ |\ |\ |\ |\ |\
work from another branch into the current branch
|\ |\ |\ |\ |\ |\ |\
DVC - CORRECT ANSWERS ✔✔Distributed Version Control,
|\ |\ |\ |\ |\ |\ |\
multiple people distributed across a network contributing to a
|\ |\ |\ |\ |\ |\ |\ |\ |\
central repository |\
, Dynamically Typed Programming Language - CORRECT ANSWERS |\ |\ |\ |\ |\ |\
✔✔variables do not have to have types, objects (which variables
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\ |\
point to) do |\ |\
primitive types in ruby - CORRECT ANSWERS ✔✔numbers,
|\ |\ |\ |\ |\ |\ |\ |\
strings, ranges, regular expressions
|\ |\ |\
numbers - CORRECT ANSWERS ✔✔integers (Fixnum, Bignum)
|\ |\ |\ |\ |\ |\
float: double precision!
|\ |\
strings - CORRECT ANSWERS ✔✔over 75 built in methods
|\ |\ |\ |\ |\ |\ |\ |\
split - CORRECT ANSWERS ✔✔splits a string into an array of
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\ |\
strings based on a separator
|\ |\ |\ |\
chomp - CORRECT ANSWERS ✔✔returns a string with the
|\ |\ |\ |\ |\ |\ |\ |\ |\
separator string removed. if nothing, good for removing
|\ |\ |\ |\ |\ |\ |\ |\
whitespace & newlines |\ |\
ranges - CORRECT ANSWERS ✔✔1..10 is represented as two
|\ |\ |\ |\ |\ |\ |\ |\ |\
values of type fixnum |\ |\ |\
0..4 includes start and end value
|\ |\ |\ |\ |\
0...4 does not
|\ |\
Local (ruby) - CORRECT ANSWERS ✔✔starts with a lowercase
|\ |\ |\ |\ |\ |\ |\ |\ |\
letter or _ |\ |\