logo

Crowdly

Софтверско инженерство-2024/2025/L

Looking for Софтверско инженерство-2024/2025/L test answers and solutions? Browse our comprehensive collection of verified answers for Софтверско инженерство-2024/2025/L at courses.finki.ukim.mk.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

Напишете го вашето github корисничко име. Не копирајте линкови и сл., само корисничкото име!

Корисничкото име може да го најдете во десниот ќош (откако ќе се најавите).

Напишете го името точно бидејќи во спротивно нема да сме во можност автоматски да ги повлечеме вашите лабораториски вежби. 

View this question

Претпоставете дека, во рамки на некој git репозиториум, изгледот на stashing stack е како што е прикажано подолу.

//

Assume that in a git repository the stashing stack looks as follows.

stash@{1}: WIP on master: 5678efg Extract embeddings

stash@{2}: WIP on master: 4567def Read word pairs

stash@{3}: WIP on master: 3456cde Create vocabulary

stash@{4}: WIP on master: 2345bcd Add ReadMe

stash@{5}: WIP on master: 1234abc Initial commit

Што ќе се случи доколку се изврши следната команда:

//

What will be the result of the following command:

git stash drop stash@{3}
0%
0%
0%
0%
0%
0%
View this question

Претпоставете дека, во рамки на некој git репозиториум, изгледот на stashing stack е како што е прикажано подолу.

//

Assume that in a git repository the stashing stack looks as follows.

stash@{0}: WIP on master: 5678efg Extract embeddings

stash@{1}: WIP on master: 4567def Read word pairs

stash@{2}: WIP on master: 3456cde Create vocabulary

stash@{3}: WIP on master: 2345bcd Add ReadMe

stash@{4}: WIP on master: 1234abc Initial commit

Што ќе се случи доколку се изврши следната команда:

//

What will be the result of the following command:

git stash apply stash@{2}
0%
0%
0%
0%
0%
0%
View this question

Нека е дадена датотеката numbers.txt  со иницијална содржина 1,2,3,4,5. Се прави commit, па се префрлува на нова гранка branch1. Таму се прави промена на содржината на датотеката така што наместо бројот 4 се става 6, а после бројот 5 се допишуваат ,6,7,8. // Let numbers.txt be a file with initial content 1,2,3,4,5. After writing the initial content a commit is made and then a transfer to a new branch named branch1. Over there the file is changed in such a way that the number 4 is replaces with 6, and at the end of the line it's written ,6,7,8. 

Содржината на датотеката кога сме на гранката master e: // The content of the file when we are on the master branch is:

Содржината на датотеката кога сме на граната branch1 e: // The content of the file when we are on the branch1 branch is:

Спојувањето на гранката branch1 кон гранката master: // The merging of the branch1 towards the master branch: 

Спојувањето на гранката branch1 кон гранката master ќе се изврши по стратегија: // The merging of the branch branch1 towards the branch master will be done with the strategy: 

View this question

Даден е графот на commit-и на вашиот локален репозиториум. // The commits graph of you local repository is shown on the figure.

Извршени се наредбите: // The following commands are run

git checkout branch1

git rebase master

Напишете го редоследот на commit-и на гранката branch1 по извршување на двете наредби (споени броеви во формат 123456789). // Write the order of the commits on the branch branch1 after the commands are run (in a format 123456789).

View this question

Нека е дадена датотеката numbers.txt  со иницијална содржина 1,2,3,4,5. Се прави commit, па се префрлува на нова гранка branch1. Таму се прави промена дополнување на содржината на датотеката, односно се допишува ,6,7,8, па се прави commit. Се враќаме повторно на гранката master и таму додаваме нова датотека text.txt, па правиме commit. // Let numbers.txt be a file with the initial content 1,2,3,4,5. After inserting the initial content a commit is done. Then a checkout to the new branch branch1. Over there at the end of the line of the file ,6,7,8 is written and this change is commited to the new branch. A checkout to the master branch is done where a new file text.txt is created and then a commit is done. 

Содржината на датотеката кога сме на гранката master e: // The content of the file when we are on the master branch is:

Содржината на датотеката кога сме на граната branch1 e: // The content of the file when we are on the branch1 branch is:

Спојувањето на гранката branch1 кон гранката master: // The merging of the branch1 towards the master branch: 

Спојувањето на гранката branch1 кон гранката master ќе се изврши по стратегија:  // The merging of the branch branch1 towards the branch master will be done with the strategy:

View this question

Нека е дадена датотеката numbers.txt  со иницијална содржина 1,2,3,4,5. Се прави commit, па се префрлува на нова гранка branch1. Таму се прави промена дополнување на содржината на датотеката, односно се допишува ,6,7,8, па се прави commit. Се враќаме повторно на гранката master и се прави замена на бројот 4 со бројот 6, па се прави commit. // Let numbers.txt be a file with initial content 1,2,3,4,5. After writing the initial content, a commit is done and then a transfer to the branch branch1 is done. Over there the file is changed in such a way that at the end of the line ,6,7,8 is written. Then a checkout to the master branch is done, where the number 4 is replaced with the number 6, and a commit is done afterwards. 

Содржината на датотеката кога сме на гранката master e: // The content of the file when we are on the master branch is:

Содржината на датотеката кога сме на граната branch1 e: // The content of the file when we are on the branch1 branch is: 

Спојувањето на гранката branch1 кон гранката master: // The merging of the branch1 towards the master branch: 

Спојувањето на гранката branch1 кон гранката master ќе се изврши по стратегија: // The merging of the branch branch1 towards the branch master will be done with the strategy:

View this question

Во директориумот (воедно и локален git репозиториум) SI_K1 се наоѓа програмата Variables.java со следната содржина:

public class Variables {

int a = 10;

int b = 7;

int c = 8;

}
Оваа верзија од датотеката е зачувана со првиот commit. 

Во локалниот репозиториум има 2 гранки (master и feature). На сликите подолу се прикажани логовите од двете гранки по извршување на некои промени кои се објаснати во соодветните commit пораки. Пораките коишто се форматот "Change variable X to Y", означуваат дека вредноста на променливата X била променета во Y. 

Слика 1: Логови од гранката master

Слика 2: Логови од гранката feature

Одговорете ги следните прашања поврзани со сценариото:

  1. Дали командите git checkout master и git merge feature ќе се извршат успешно?
  2. По која стратегија би се извршило спојувањето на гранките (по евентуално решавање на конфликт)?
  3. Напишете ги вредностите на променливите a,b и c по спојувањето (доколку кај променливата се јавила конфликт ставете /). а = , b=, c=.
  4. По спојувањето (со евентуално решавање на конфликт), на двете гранки ќе има вкупно
    commit-и.

View this question

Работите во софтверска компанија која што го употребува Gitflow workflow моделот за колаборација на проект. Во даден момент од клиентот што е корисник на верзијата 2.1 на вашиот софтвер добивате известување дека некој од интерфејсите дава грешка 404 при клик на дадено копче. Подредете ги git командите така што би се справиле успешно со решавање на овој bug. Се претпоставува дека решението на вашиот bug ќе биде брзо и едноставно во само еден commit. Моментално се наоѓање на гранката master.

//

You work for a software company that uses the Gitflow workflow. In a given moment you are receiving an notification for a client of yours that uses the version 2.1 of your software that some of the user interfaces shows a 404 error when a button is pressed. Sort the git command that you'll use to fix the bug. Assume that the solution will be fast and simple i.e you'll need only one commit for it. At the moment you are on the master branch.

View this question

Кои од следните тврдења се точни за SVN? 

View this question

Want instant access to all verified answers on courses.finki.ukim.mk?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!