Quiz 4

docx

School

New York University *

*We aren’t endorsed by this school

Course

4513

Subject

Computer Science

Date

Feb 20, 2024

Type

docx

Pages

8

Uploaded by ara21059

Report
1. "git add myFile" will... 1. add myFile to the staging area 2. add myFile to the remote repo 3. add myFile to the working directory 4. do nothing 2. Incremental and iterative development were a response to failures in...? 1. functional programming 2. the waterfall model 3. test-driven development 4. resume-driven development 3. git and GitHub are...? 1. just different names for the same software 2. very different: git is the basic version control software, while GitHub is a place to store git repos 3. entirely unrelated 4. none of the above 4. If you type 'git pull origin master' then master is...? 1. the branch you are pulling 2. the level of difficulty of the pull 3. the repo you are pulling from 4. how much git should try to force the pull 5. Incremental development slices the system functionality into increments, namely...? 1. inception and elaboration
2. construction and transition 3. both A and B 4. none of the above 6. Versioning everything means...? 1. scripting only infrastructure 2. all source artifacts must be in text files 3. scripting only application code 4. using GitHub 7. "git stash apply {stash_id}" will... 1. show a stash with the given stash_id 2. delete a stash with the given stash_id 3. create a stash with the given stash_id 4. apply the given stash to the working directory 8. If we version control everything about our project, we...? 1. create a big mess no one could understand 2. waste a lot of time 3. establish a single source of truth for the system 4. clog our version control system with trivial stuff 9. Commit messages in git are...? 1. important to communicate to team members what you are up to 2. unimportant and should be ignored 3. can be the same for every commit 4. generated automatically 10. Iterative and incremental development means...?
1. developing a system through repeated cycles 2. developing a system in smaller portions at a time 3. both A and B 4. none of the above 11. A quite different way of developing than Incremental Development is...? 1. Waterfall development 2. Agile 3. DevOps 4. Fine Motor Skill Development 12. If we see text like "<<<<< HEAD:file.txt" inserted into a file, that is...? 1. the header for the file 2. a UNIX command accidentally inserted in the file 3. git showing us where a conflict is in file.txt 4. none of the above 13. 'git stash push -m"added comments"' will... 1. create a stash 2. delete the local changes 3. push the changes to the remote branch 4. push the changes to the local repo 14. Versioning everything allows...? 1. distributing the source files that make up the system across shared serves
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
2. any team member to recreate any version of the software system 3. both A and B 4. none of the above 15. We develop incrementally because it .... ? 1. increases programmer satisfaction 2. produces less buggy software 3. delivers value to the customers faster 4. all of the above 16. "git rm --cached myFile" will... 1. remove the file both from the staging area and working directory 2. remove the file only from the working directory 3. remove the file only from the staging area 4. produce a syntax error 17. To rename a file in git...? 1. run git mv <old_filename> <new_filename> 2. rename a file using your native OS 3. run git rm <filename> 4. both A and B 18. Automated deployment should be coupled with...? 1. automated tests 2. manual steps to make sure the sys admin is on their toes 3. manual configuration
4. none of the above 19. An example of version control software is...? 1. TensorFlow 2. Git 3. Subversion 4. both B and C 20. Given that myFile was staged, "rm myFile" will... 1. remove the file from the staging area 2. remove the file only from the working directory 3. remove the file both from the staging area and working directory 4. produce a syntax error 21. We use "git clone" to...? 1. add a clone of a file to a repo 2. turn one repo into two repos 3. make a local copy of a repo 4. all of the above 22. Version control is an important part of incremental development because...? 1. it allows us to roll back changes easily 2. it permits auditors to see how much work has been done 3. "if you don't know your past you won't know your future." 4. all of the above 23. "git commit -h" will...
1. show a commit hash 2. show the documentation for the commit command 3. commit all files with -h extension 4. show commit history 24. "git stash drop {stash_id}" will 1. create a stash with the given stash_id 2. delete a stash with the given stash_id 3. show a stash with the given stash_id 4. none of the above 25. "git commit myFile" will... 1. add the file to the working directory 2. commit the file to the staging area 3. commit the file to the remote repo 4. commit the file to the local repo 26. Fail-fast principle means...? 1. writing software that does NOT fail 2. failing fast 3. failing early 4. both B and C 27. "git checkout myBranch" will... 1. switch us to myBranch 2. create a new branch called myBranch 3. delete myBranch 4. produce an error 28. The problem with describing a server setup in a detailed document is...?
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
1. an engineer has to manually do the setup 2. the document will get out of date 3. the document is likely to miss some "obvious" step 4. all of the above 29. Iterative and incremental development consists of the following steps...? 1. initialization 2. iteration 3. Project Control List 4. all of the above 30. "git stash list" will... 1. produce a syntax error 2. show the deleted stashes 3. add all of the stashes to a list 4. show all the existing stashes 31. Configuration defines...? 1. information that varies across environments 2. documentation 3. structure of a relational database 4. both A and C 32. "git stash clear" will... 1. delete all the existing stashes 2. show a clear view of all the stashes 3. delete all the changes in a working directory 4. none of the above 33. In Git, stashing the files means...
1. deleting the files 2. storing the files in a "safe place" 3. committing the files 4. editing the files 34. The right artifacts of a project to put under version control are...? 1. project source code 2. scripts to build the project infrastructure 3. project documentation 4. all of the above 35. To remove a directory in Git, we need to run... 1. "rm myDirectory" 2. "git rm myDirectory" 3. "git rm -r myDirectory" 4. "git remove myDirectory"