Unit 7 Quiz
Exception Handling and Git
FTC Omega 9656 | Learn Code
Sign in to Google to save your progress. Learn more
What structure do you use to handle exceptions in Java? *
1 point
True or false: All exceptions are classes. *
1 point
What does the printStackTrace() method do? *
1 point
When does code inside of the finally block run? *
1 point
True or false: Use the throw keyword to declare that a method throws an exception. *
1 point
True or false: You can use the new operator to create an Exception object. *
1 point
Which of the following commands is used to move to a different folder? *
1 point
Which of the following commands is used to list all files and directories? in the current directory? *
1 point
Which command(s) would you use to delete a directory that has files in it? Select all that apply. *
1 point
Required
True or false: Git and GitHub are the same thing. *
1 point
How do you initialize a Git repository? *
1 point
How do you commit a file? *
1 point
True or false: The git branch <branch> command creates a new branch and checks out the newly created branch. *
1 point
True or false: When you merge a branch into another branch, a merge commit is created which automatically incorporates changes from both branches. *
1 point
If you only wanted to view the state of the repository at a certain commit, what command would you use? *
1 point
What do you use to check the status of the repository? *
1 point
What do you use to see commit history? *
1 point
True or false: Forking is when you make a copy of a repository on your own account. *
1 point
What is a PR (when talking about GitHub)? *
1 point
What are PRs used for (on GitHub)? *
1 point
Submit
Clear form
This content is neither created nor endorsed by Google.