CS2 Quiz 1
a remote machine to code. Interactive program that reads text-based commands and passes
them to the operating system. - ANS-The Linux Shell
/home/John/file.type - ANS-Linux File Systems
A powerful command-line text editor available on most UNIX and Linux systems. - ANS-the vi
editor
prints working dir - ANS-file commands pwd
list content in current directory - ANS-ls
make directory - ANS-mkdir
Changes to a different directory - ANS-cd
remove directory - ANS-rmdir
show the manual for command - ANS-man command
____ is a style of programming that involves representing items, things, and people as objects
rather than basing the logic around actions. - ANS-object-oriented programming
A class in Java is compound data type containing a set of data fields & functions
public class MyClass {
int x = 5;
} - ANS-Java Class
a func with the same name as its class w/ no return type and any numb of args. Automatically
invoked when an obj is created.
public class MyClass {
int x;
public MyClass() {
x = 5;
}
public static void main(String[] args) {
MyClass myObj = new MyClass();
a remote machine to code. Interactive program that reads text-based commands and passes
them to the operating system. - ANS-The Linux Shell
/home/John/file.type - ANS-Linux File Systems
A powerful command-line text editor available on most UNIX and Linux systems. - ANS-the vi
editor
prints working dir - ANS-file commands pwd
list content in current directory - ANS-ls
make directory - ANS-mkdir
Changes to a different directory - ANS-cd
remove directory - ANS-rmdir
show the manual for command - ANS-man command
____ is a style of programming that involves representing items, things, and people as objects
rather than basing the logic around actions. - ANS-object-oriented programming
A class in Java is compound data type containing a set of data fields & functions
public class MyClass {
int x = 5;
} - ANS-Java Class
a func with the same name as its class w/ no return type and any numb of args. Automatically
invoked when an obj is created.
public class MyClass {
int x;
public MyClass() {
x = 5;
}
public static void main(String[] args) {
MyClass myObj = new MyClass();