Bookmark and Share

Start Studying Deck Add Cards

Glossary of csci 1320 midterm 1

Created by 35173
 EditDelete
!
not
 EditDelete
!!
executes last command
 EditDelete
!98
executes command 98
 EditDelete
!=
not equal to
 EditDelete
!v
executes last command beginning with v
 EditDelete
%6.2
limits total field width to 6 spaces, with two decimal places
 EditDelete
&&
and
 EditDelete
.
repeat last edit
 EditDelete
/* [...] */
inserts block comment
 EditDelete
//
inserts one line comment
 EditDelete
/0
null character
 EditDelete
/str, [shift] + N
searches from cursor forward for str, then looks for next occurrance backward
 EditDelete
1 byte
8 bits/ 2 hex/ 1 char
 EditDelete
4 parts of a loop
1. Initialization/Assignment (x=10);
2. Test until quit (while (x>5){})
3. Data modification (x = x-1)
4. Body (printf("x is %d",x))
 EditDelete
7dd
deletes 7 lines, starting at cursor line
 EditDelete
:4,8 Practice.c
writes lines 4 through 8 in file Practice.c
 EditDelete
:r Practice.c
finds Practice.c and enters contents after cursor
 EditDelete
:w Practicing.c
writes open file under name Practicing.c
 EditDelete
< / >
less than / greater than
 EditDelete
=
less than or equal to / greater than or equal to
 EditDelete
==
equal to
 EditDelete
?str, n
searches from cursor backward for str, then finds second occurance
 EditDelete
A
inserts cursor at end of line
 EditDelete
a.out
user information collected from inputfile to be used in a.out
 EditDelete
a.out >outputfile
output from a.out is inserted into outputfile
 EditDelete
binary digit
bit
 EditDelete
c$
changes until end of line
 EditDelete
call for boolean library
#include
 EditDelete
call for math library
#include
 EditDelete
cat first.c
prints entire file first.c
 EditDelete
cd ..
moves up one level in file directory
 EditDelete
cd Something
changes working directory to Something
 EditDelete
cd S[tab]
completes phrase, in this instance cd Something
 EditDelete
char in Bits, Bytes, Words, and Hex digits
8, 1, 1/4, 2
 EditDelete
chmod 644 notes.c
changes modifications on file notes.c to rw/r/r
 EditDelete
chmod 700 pictures
changes modifications on directory pictures to rwx or read, write, execute
 EditDelete
cp -r Something CSCI1320
copies folder CStuff and all contents into folder CSCI1320
 EditDelete
cp first.c first.backup.c
creates file first.backup.c with same contents as first.c
 EditDelete
create a simple if, else function
if(condition, using relational operators)
{
action for true part of construct
}
else
{
action for false part of construct
}
 EditDelete
create a string of characters of length 20 with name word
char word[20]
 EditDelete
cw
change word
 EditDelete
d$
deletes from cursor to end of line
 EditDelete
dd
deletes/cuts line
 EditDelete
double in Bits, Bytes, Words, and Hex digits
64, 8, 2, 16
 EditDelete
dw
deletes word
 EditDelete
example of boolean variable
bool x;
x = true;
boolean has only two values, true or false
 EditDelete
float in Bits, Bytes, Words, and Hex digits
32, 4, 1, 8
 EditDelete
function call for string library
#include
 EditDelete
G
places cursor at bottom of program
 EditDelete
gg
places cursor at top of program
 EditDelete
halfword
16 bits/ 4 hex
 EditDelete
head first.c
prints first 10 lines of first.c
 EditDelete
history
shows history of commands
 EditDelete
i
inserts at cursor
 EditDelete
int in Bits, Bytes, Words, and Hex digits
32, 4, 1, 8
 EditDelete
keys that move cursor
h (left), j (down), k (up), l (right) (ldur = elder)
 EditDelete
lpr first.c
prints program first.c
 EditDelete
ls
lists contents of active directory
 EditDelete
ls *.c
prints all contents that have extension .c
 EditDelete
ls -l
prints contents of directory in long form
 EditDelete
man ls
opens manual to entry on ls
 EditDelete
mkdir Something
creates directory named Something
 EditDelete
mv *.c Something
moves all files with extension .c to directory Something
 EditDelete
mv first.backup.c first.c
renames first.backup.c to first.c
 EditDelete
O
inserts line above cursor
 EditDelete
p
put/paste
 EditDelete
printf and scanf for char
%d, %X, %c/ %c
 EditDelete
printf and scanf for double
%f, %g/ %lf
 EditDelete
printf and scanf for float
%f, %g/ %f
 EditDelete
printf and scanf for int
%d, %x/ %d
 EditDelete
printf and scanf for short
%d, %X/ %d
 EditDelete
printf and scanf for string (char str[20])
%s/%s
 EditDelete
pwd
prints working directory - lists folder structure
 EditDelete
r
replace 1 character
 EditDelete
rm first.c
removes file first.c
 EditDelete
short int (short) in Bits, Bytes, Words, and Hex digits
16, 2, 1/2, 4
 EditDelete
strlen(name)
tells string length/ number of characters in name, only in string character
 EditDelete
tail first.c
prints last 10 lines of first.c
 EditDelete
takes square root, in math library
sqrt(9)
 EditDelete
terminal call for running program that uses math library
gcc program.c -lm
 EditDelete
three sections of ls -l
d/rw-/r--/r--
folder/user has read and write privledges/group has read privledges/ everyone has read privlidges
 EditDelete
typing % while cursor is on [, {, or (
highlights matching pair
 EditDelete
u
undos last action
 EditDelete
What datatypes support decimal places?
Float, double
 EditDelete
What datatypes support remainders?
int, short
 EditDelete
What does = mean?
assignment, "Calculate the expression on the right hand side, then assign it as the variable on the right hand side"
 EditDelete
word
32 bits/ 8 hex
 EditDelete
write a simple construction for a "while" function
while (condition)
{

}
 EditDelete
x
deletes one character
 EditDelete
Y
yank/copy
 EditDelete
[Ctrl]+c
stop runaway program
 EditDelete
[Ctrl]+g
displays locatoin in file and file status
 EditDelete
[Shift] + g , 7
moves to line 7
 EditDelete
\n
new line
 EditDelete
||
or