CSE 15L Lab 9

Quiz
•
Computers
•
University
•
Hard
Genevieve Dietz
Used 216+ times
FREE Resource
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between -cp and cp?
cp does not exist, we only use -cp
they are the same
-cp stands for class path and is a command line option for java, cp is for copying file/folders
-cp does not exist, we only use cp
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When do you need to use this command: javac -cp .:lib/hamcrest-core-1.3.jar:lib/junit-4.13.2.jar *.java instead of javac *.java?
always use the first command no matter what
Use the first command when compiling junit tests
always use the second command no matter what
they can be used interchangeably
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which path is the same as directory1/directory2/directory3/../../file.txt?
directory1/file.txt
directory1/directory2/file.txt
directory1/directory3/file.txt
directory2/directory3/file.txt
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which version of the junit command that we introduced in lab do we use to compile and run junit tests on ieng6?
Mac
Windows
neither
both work
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is correct?
java [fileName].java
javac [fileName]
java [fileName]
javac [fileName].class
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In this folder there is testing.java, grader.sh, listExample.java, hamcrest-core-1.3.jar, and junit-4.13.2.jar. What does running this command give us an error (assuming we are on mac)
java -cp .:lib/hamcrest-core-1.3.jar:lib/junit-4.13.2.jar org.junit.runner.JUnitCore testing
it doesn't give an error
should be this command
java -cp ".;lib/junit-4.13.2.jar;lib/hamcrest-core-1.3.jar" org.junit.runner.JUnitCore testing
missing .java at the end(testing.java)
wrong path: missing lib folder
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does it indicate if you receive this error message java.lang.IllegalArguementException: Could not find class [TestListExamples.java]?
TestListExamples.java does not exist
TestListExamples.java does not exist in the current working directory
The programmer should not have included .java
all of the above are possible
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a valid way to represent the working directory path?
./working_directory
../working_directory
/working_directory
~working_directory
Similar Resources on Wayground
10 questions
BASIC PROGRAMMING QUIZ by Group 5

Quiz
•
University
10 questions
Object-Oriented Programming Quiz

Quiz
•
University
10 questions
sample test

Quiz
•
University
10 questions
java script

Quiz
•
University
12 questions
Java

Quiz
•
University
10 questions
Java

Quiz
•
University
8 questions
CSE 15L Lab 8

Quiz
•
University
13 questions
docker advance

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University