Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
41 Cards in this Set
- Front
- Back
A shell acts as an interface between the user and the system |
True |
|
As a command interpreter, the shell sends the commands to the kernel for execution |
True |
|
A directory is a specialized form of file that maintains a list of all files in it |
True |
|
Unit testing is the testing of the whole class as a unit. |
False |
|
JUnit is a unit testing framework for the Java Programming Language. |
True |
|
Debugging is not algorithmic. |
True |
|
In test-driven development, tests are written before the software to be tested is written |
True |
|
It is usually feasible to test all possible values of arguments to a method |
False |
|
stdout should be used for unusual output from your program, such as error reporting. |
False, stderr |
|
In a Makefile, every target line must begin with a tab. |
False |
|
In debugging, reproducing the problem comes before fixing the problem |
True |
|
If all your unit tests pass, that means the software being tested has no bugs |
False |
|
A software version management repository holds a master copy of only text/html code. |
False |
|
Making changes to a software repository means editing, adding and deleting files |
True |
|
IDE stands for “integrated development environment” |
True |
|
Eclipse does not allow you to have multiple workspaces. |
False |
|
In test-driven development, you must understand the specification of what the software you are testing is supposed to do |
True |
|
In Unix, executing programs have unique process identifiers. |
True |
|
A Unix pipe is a way to send the output of one command to the input of another. |
True |
|
As a login script, .profile runs each time a Unix shell is started. |
True |
|
The Makefile contains rules which tell make what to do. |
True |
|
If a target in a Makefile names a file that is older than the files it depends on, then the actions in that rule will not be performed. |
False |
|
Write a Unix commands that displays the contents of folder “Q1” in long form including the directory entries whose names begin with a dot (.). |
ls -al Q1 |
|
List three common Unix shells. |
bash, zsh, csh |
|
Write a command to make the file “Q3.txt” in the current directory read-only |
chmod 444 Q3.txt |
|
Absolute path in Unix paths start at: i. users ii. bin iii. home iv. root |
iv. root |
|
Relative to the working directory, dot dot (..) refers to: i. current working directory ii. home iii. root iv. a level above |
iv. a level above |
|
List the names of the two files that a shell automatically opens when it starts up. |
.bashrc, .profile |
|
Write a command that redirects the contents of standard input to an output file called ‘temp.txt’. |
cat > temp.txt |
|
Write a filtering command using Unix pipes to search for occurrences of the word ‘time’ in the manual page for Unix command called “time”. |
man time | grep time |
|
What is the function of the Unix environment variable “PATH” |
A comma delineated list of paths that the shell will search through whenever you type in a command |
|
List two cons and two pros of unit testing |
Pros: 1) Results in modular and extensible code 2) Leads to concise goal-driven code Cons: 1) Takes a lot of time to test each unit of code in complex code 2) Does not test the code in it's entirety |
|
Which file does make look for in the current working directory? |
makefile |
|
For this problem, consider this Makefile:A.class: A.java javac A.java B.class: A.class B.java javac B.java C.class: B.class A.class C.java javac C.java all: C.class B.class A.class a. Suppose ls -l produces this output: -rw-rw-r-- 1 u1 lec 150 May 7 13:16 A.java -rw-rw-r-- 1 u1 lec 81 May 7 13:25 B.java -rw-rw-r-- 1 u1 lec 189 May 7 13:20 C.java -rw-rw-r-- 1 u1 lec 168 May 7 13:00 Makefile (a) Now running “make all” will cause what command(s) to be executed? List them. (b) Suppose ls -l produces this output: -rw-rw-r-- 1 u1 lec 356 May 7 13:50 A.class -rw-rw-r-- 1 u1 lec 150 May 7 13:16 A.java -rw-rw-r-- 1 u1 lec 251 May 7 13:50 B.class -rw-rw-r-- 1 u1 lec 69 May 7 13:25 B.java -rw-rw-r-- 1 u1 lec 532 May 7 13:50 C.class -rw-rw-r-- 1 u1 lec 189 May 7 13:55 C.java -rw-rw-r-- 1 u1 lec 168 May 7 13:00 Makefile Now running make all will cause what command(s) to be executed? List them. |
(a) javac A.java, javac B.java, javac C.java (b) javac C.java |
|
Complete the following sentence to explain how make interprets the Makefile rules. “To make the _____________ , first make all its _____________________ , then perform all the ___________.” |
target, dependencies, actions |
|
List two problems that can arise in non-version controlled software when there is only one individual involved in the software development process. |
1) No way to go back to previous version once saved (revert). 2) Cannot provide stable version releases, as in cannot "freeze" one version for deployment and continue working on a new version. |
|
Put the following steps in order within an SVN workflow: makes changes, update, commit, resolve conflicts. |
1) make changes 2) update 3) commit 4) resolve conflicts |
|
Name three steps in debugging and put them in order. |
1) Identify bug 2) Reproduce bug 3) Fix bug |
|
Fill in the blank: A string enclosed in back quotes (``) in a Unix shell script is treated as a _____________ and the shell attempts to execute it. |
command |
|
Complete the following shell script.#!/bin/shecho Total number of inputs: _______ echo First input: _____ echo Second input: ______ |
1) $# 2) $1 3) $2 |
|
Square brackets ( [ ] ) in a Unix shell script is an alias for the _____ command |
test |