Geral
Gerência e Qualidade de Software
Semana 1
0

Questão

Durante o desenvolvimento de um projeto colaborativo em equipe, Mariana foi encarregada de iniciar o controle de versão utilizando o Git. No terminal, ela criou o repositório com o comando [Preencher 1], adicionou os arquivos necessários com o comando [Preencher 2] e, por fim, registrou as mudanças com o comando [Preencher 3]. Ao concluir, comunicou a equipe que o projeto já estava versionado e pronto para receber contribuições por meio de push e pull. Neste contexto, identifique os termos de [preencher 1], [preencher 2] e [preencher 3] que são substituídos por:
A) 1-git status, 2-git init, 3 - git pull
B) 1-git init; 2-git add; 3- git commit
C) 1-git commit, 2-git status; 3- git add
D) 1-git push; 2- git pull; 3- git status
E) 1-git add, 2-git commit, 3 - git push
function vote(questaoId, value) { window.location.href = "/accounts/login/?next=/questao/26/"; return; fetch(`/vote/questao/${questaoId}/`, { method: 'POST', headers: { 'Content-Type': 'application/json', 'X-CSRFToken': 'jM0wwWGRuycm2pVHgjMV5aeNjltksJ2sAGc7jkX02OYhC1dwr4YIlCELARhWkOcQ' }, body: JSON.stringify({ value: value }) }) .then(response => response.json()) .then(data => { if (data.success) { document.getElementById(`score-${questaoId}`).textContent = data.score; const upBtn = document.querySelector(`button[onclick="vote(${questaoId}, 1)"]`); const downBtn = document.querySelector(`button[onclick="vote(${questaoId}, -1)"]`); upBtn.classList.remove('active-up'); downBtn.classList.remove('active-down'); if (data.user_vote === 1) upBtn.classList.add('active-up'); if (data.user_vote === -1) downBtn.classList.add('active-down'); } }); }