Question 6 Which of the following statements are true. Select all that apply. You may assume each is independent. $ git checkout 750a58f $ git branch example will move HEAD to 750a58f. $ git branch -v will list fcc756f next to master. $ git checkout -b example will create and checkout a branch with fcc756f as its most recent commit. $ git checkout 750a58f -b example will move HEAD to 750a58f.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Question 6
Which of the following statements are true. Select all that apply. You may assume
each is independent.
O$ git checkout 750a58f
$ git branch example
will move HEAD to 750a58f.
O$ git branch -v
will list fcc756f next to master.
O$ git checkout -b example
will create and checkout a branch with fcc756f as its most recent commit.
O$ git checkout 750a58f -b example
will move HEAD to 750a58f.
Question 7
A StringList implementation can contain null items and empty strings.
True
O False
Question 8 (1 point)
The out of bounds / range criteria for the methods in StringList differ depending
on their function / purpose and the supplied value for their index parameter. Match
each of the methods below to its corresponding out of bounds criteria.
1.
(index <0|| index > size())
hnolean ada(irt, intex, Strirs s)
2.
(index <0 || index = size (0)
String reuove (Int index)
3. (index >= 0 kà index size())
String ee:(int index)
4.
(index >= 0 ke index < size (0)
Question 9
Suppose that you have a reference to a newly created object of a class that properly
implements the stringList interface, including the extra credit requirements.
Further suppose that reference is stored in a variable called myList and the
following valid code snippet is executed within a method:
myList.add (0, "a");
myList.add (1, "b");
myList.add (2, "c");
Which of the following code snippets will produce the output below if executed
within the method directly following the snippet above?
$a b c!
String out - ylist. akeString("S", _", "!").
Systen at. printin(out):
U Systen Jul. Br intln("s__e ").
UStrine aut = yList. nakeStrine"_")
Systen Jut. pr intin("" - vut - "!")
Transcribed Image Text:Question 6 Which of the following statements are true. Select all that apply. You may assume each is independent. O$ git checkout 750a58f $ git branch example will move HEAD to 750a58f. O$ git branch -v will list fcc756f next to master. O$ git checkout -b example will create and checkout a branch with fcc756f as its most recent commit. O$ git checkout 750a58f -b example will move HEAD to 750a58f. Question 7 A StringList implementation can contain null items and empty strings. True O False Question 8 (1 point) The out of bounds / range criteria for the methods in StringList differ depending on their function / purpose and the supplied value for their index parameter. Match each of the methods below to its corresponding out of bounds criteria. 1. (index <0|| index > size()) hnolean ada(irt, intex, Strirs s) 2. (index <0 || index = size (0) String reuove (Int index) 3. (index >= 0 kà index size()) String ee:(int index) 4. (index >= 0 ke index < size (0) Question 9 Suppose that you have a reference to a newly created object of a class that properly implements the stringList interface, including the extra credit requirements. Further suppose that reference is stored in a variable called myList and the following valid code snippet is executed within a method: myList.add (0, "a"); myList.add (1, "b"); myList.add (2, "c"); Which of the following code snippets will produce the output below if executed within the method directly following the snippet above? $a b c! String out - ylist. akeString("S", _", "!"). Systen at. printin(out): U Systen Jul. Br intln("s__e "). UStrine aut = yList. nakeStrine"_") Systen Jut. pr intin("" - vut - "!")
Question 3
Which of the following code snippets will successfully output the third string in a list
of nodes? Assume that the reference to the first node (containing the first string) in
the list is named head.
]int counter
= 0;
while (counter < 2) (
head = head.getNext ();
counter+t;
} // while
System.out.println (head.getItem ());
Ohead = head.getNext (). getNext ();
System.out.println (head.getItem () );
Ohead = head.getNext ();
head = head.getNext ();
head = head.getNext ();
System.out.println (head.getItem());
;
O head - head.getNext () ;
Node n = head.getNext ();
System.out.println (n.getItem ());
In the following questions consider the terminal output below:
$ git statun
* On branch ster
" Changes to be comitted:
* (use "git reset RAD <lle)..." to unstage)
new fils: nd
NOTES.
* Changed but not updated:
* (use "git add tile)..." to update what wil1 be compit ted)
(use "git chackout -- <fiie)..." to diacard changes in scrking directory)
odified:
READNE, nd
* Untracked files:
!
(use "git add rile)..." to includa in vhat vi11 be comit ted)
CONTRIB. d
Question 4
Which of the following statements are true? Assume each statement is independent.
Select all that apply.
Os git commit -m "added contribution list"
will commit the changes made to CONTRIB. md, README.md, and NOTES.md to
the local repository.
O$ git add NOTES.md
will add NOTES.md to the stage and commit its changes to the repository.
O$ git log --pretty format: "&h - San, tar : s"
will print the log, formatted to contain the abbreviated commit hash, author
name, relative author date, and commit subject.
O$ git reset HEAD NOTES.md
will make Git not include the changes made to NOTES.md in the next commit.
fcc756f (naster) resolved nerge conflict
+ d8 d3c34 (gui) improved rendering for css
| * 02f143b fi xed rendering
+| 510eOd2 Merge branch ' cli'
* | 48bb 80d (HEAD, cl1) added X11 timecut handling
|+| rorébbd added usage statement
|+| 109b c5f added conmand 1ine argument parsing
* | 3a 4c50c added readne file
* 5dc2d70 combined with web engine
* 3c14adl added stage and web view
* 2787 158 boilerplate for graphical user interface
* 750a 58f initial scaffolding for GitDawg web browser
for
Question 5
Match each description below with its corresponding commit. Note: any commits
made before a branch was created are still considered part of that branch's history.
For example, all branches have the first overall commit as part of their history - even
though that commit was technically not made on that branch.
1.
tcc756f
2.
d8a3c34
newest commit in gui
branch's entire history
3.
02ff43
4.
5tDedd2
newest commit overall
5.
48bb80d
oldest commit overall
6.
10f 6bbd
newest commit on current
7.
109bc5f
branch
8.
3a4c50c
oldest commit in cli
branch's entire history
newest commit on current
7.
109c5f
branch
8.
3a4c50c
oldest commit in cli
branch's entire history
9.
5dc2d70
oldest commit in master
10. 3:14adl
branch's entire history
11. 2787 158
12. 750a581
Transcribed Image Text:Question 3 Which of the following code snippets will successfully output the third string in a list of nodes? Assume that the reference to the first node (containing the first string) in the list is named head. ]int counter = 0; while (counter < 2) ( head = head.getNext (); counter+t; } // while System.out.println (head.getItem ()); Ohead = head.getNext (). getNext (); System.out.println (head.getItem () ); Ohead = head.getNext (); head = head.getNext (); head = head.getNext (); System.out.println (head.getItem()); ; O head - head.getNext () ; Node n = head.getNext (); System.out.println (n.getItem ()); In the following questions consider the terminal output below: $ git statun * On branch ster " Changes to be comitted: * (use "git reset RAD <lle)..." to unstage) new fils: nd NOTES. * Changed but not updated: * (use "git add tile)..." to update what wil1 be compit ted) (use "git chackout -- <fiie)..." to diacard changes in scrking directory) odified: READNE, nd * Untracked files: ! (use "git add rile)..." to includa in vhat vi11 be comit ted) CONTRIB. d Question 4 Which of the following statements are true? Assume each statement is independent. Select all that apply. Os git commit -m "added contribution list" will commit the changes made to CONTRIB. md, README.md, and NOTES.md to the local repository. O$ git add NOTES.md will add NOTES.md to the stage and commit its changes to the repository. O$ git log --pretty format: "&h - San, tar : s" will print the log, formatted to contain the abbreviated commit hash, author name, relative author date, and commit subject. O$ git reset HEAD NOTES.md will make Git not include the changes made to NOTES.md in the next commit. fcc756f (naster) resolved nerge conflict + d8 d3c34 (gui) improved rendering for css | * 02f143b fi xed rendering +| 510eOd2 Merge branch ' cli' * | 48bb 80d (HEAD, cl1) added X11 timecut handling |+| rorébbd added usage statement |+| 109b c5f added conmand 1ine argument parsing * | 3a 4c50c added readne file * 5dc2d70 combined with web engine * 3c14adl added stage and web view * 2787 158 boilerplate for graphical user interface * 750a 58f initial scaffolding for GitDawg web browser for Question 5 Match each description below with its corresponding commit. Note: any commits made before a branch was created are still considered part of that branch's history. For example, all branches have the first overall commit as part of their history - even though that commit was technically not made on that branch. 1. tcc756f 2. d8a3c34 newest commit in gui branch's entire history 3. 02ff43 4. 5tDedd2 newest commit overall 5. 48bb80d oldest commit overall 6. 10f 6bbd newest commit on current 7. 109bc5f branch 8. 3a4c50c oldest commit in cli branch's entire history newest commit on current 7. 109c5f branch 8. 3a4c50c oldest commit in cli branch's entire history 9. 5dc2d70 oldest commit in master 10. 3:14adl branch's entire history 11. 2787 158 12. 750a581
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education