Search Header Logo

Quiz #4 WebDev Lec

Authored by Christine Makilang

Other

University

Used 1+ times

Quiz #4 WebDev Lec
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What command initializes a new Git repository?

git start

git new

git init

git create

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What command adds changes in index.blade.php to the staging area?

git commit index.blade.php

git add index.blade.php

git push index.blade.php

git update index.blade.php

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command commits staged changes with a message?

git push -m "message"

git save -m "message"

git commit -m "message"

git update -m "message"

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you check which files are modified or staged?

git check

git list

git status

git diff

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which Git command shows differences between working directory and staging area?

git diff

git show

git log

git pull

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What command removes a file from the staging area but keeps changes in the working directory?

git remove [file]

git reset [file]

git unstage [file]

git delete [file]

7.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which command shows the difference between staged changes and the last commit?

git diff --cached

git diff --staged

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?