SA2 REVIEWER - CS0053

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/47

encourage image

There's no tags or description

Looks like no tags are added yet.

48 Terms

1
New cards

In Git, what does the command git status do?

Group of answer choices

Displays the current state of the working directory and staging area

Pushes changes to the remote repository

Shows the list of all commits in history

Deletes the repository

Displays the current state of the working directory and staging area*

2
New cards

What does git log display?

Group of answer choices

The list of files currently tracked

The current status of branches

The history of commits in the repository

The changes staged for the next commit

The history of commits in the repository*

3
New cards

The command git push origin main does what?

Group of answer choices

Deletes the remote branch

Creates a new branch called origin

Pushes local changes to the remote repository’s main branch

Saves changes locally without uploading them

Pushes local changes to the remote repository’s main branch*

4
New cards

Which of the following best describes version control?

Group of answer choices

A system for tracking changes to files and coordinating work among developers

A debugging tool for detecting errors in code

A system for automatically compiling code

A programming language feature for managing memory

A system for tracking changes to files and coordinating work among developers*

5
New cards

What is the purpose of a pull request in GitHub?

Group of answer choices

To delete changes from the repository

To suggest changes that can be reviewed and merged into a branch

To initialize a new Git project

To request permission to clone a repository

To suggest changes that can be reviewed and merged into a branch*

6
New cards

Which type of testing focuses on the interaction between multiple modules or components?

Group of answer choices

Integration testing

Unit testing

Performance testing

Regression testing

Integration testing*

7
New cards

Which type of testing focuses on testing individual components or functions of a program?

Group of answer choices

System Testing

Integration Testing

Unit Testing

Acceptance Testing

Unit Testing*

8
New cards

What does an HTTP response code 200 OK mean?

Group of answer choices

Resource not found

Request failed due to server error

Unauthorized access

Request was successful

Request was successful*

9
New cards

What does the 500 status code mean?

Group of answer choices

Timeout

Not Found

Server Error

Bad Request

Server Error*

10
New cards

What happens if you send invalid JSON in a POST request body?

Group of answer choices

The response will still be successful

The request is ignored

The request will usually fail or return a 400 Bad Request

The server automatically fixes it

The request will usually fail or return a 400 Bad Request*

11
New cards

Which of the following is TRUE about a Git branch?

Group of answer choices

It is used only for documentation purposes

It represents an independent line of development

It is the staging area before commits are finalized

It is a copy of a repository stored in another folder 

It represents an independent line of development

12
New cards

Once a commit is pushed to GitHub, it can never be modified or reverted.

Group of answer choices

True

False

False

13
New cards

The command git init is used to:

Group of answer choices

Merge two branches

Undo the last commit

Download a project from GitHub

Start tracking changes in a new local repository

Start tracking changes in a new local repository

14
New cards

The staging area in Git is where files are prepared before being committed.

Group of answer choices

True

False

True

15
New cards

A Git repository can only exist online; it cannot be created locally.

Group of answer choices

True

False

False

16
New cards

What is the purpose of a pull request in GitHub?

Group of answer choices

To initialize a new Git project

To delete changes from the repository

To suggest changes that can be reviewed and merged into a branch

To request permission to clone a repository

To suggest changes that can be reviewed and merged into a branch

17
New cards

Collaboration through GitHub is possible because:

Group of answer choices

All developers work only on the same local machine

GitHub removes the need for commits

Changes can be pushed to a shared remote repository and merged

Git automatically prevents all conflicts

Changes can be pushed to a shared remote repository and merged

18
New cards

In Git, what does the command git status do?

Group of answer choices

Pushes changes to the remote repository

Deletes the repository

Displays the current state of the working directory and staging area

Shows the list of all commits in history

Displays the current state of the working directory and staging area

19
New cards

A remote repository is a version of the project hosted on a server, usually used for collaboration.

Group of answer choices

True

False

True

20
New cards

Which Git command creates a copy of a remote repository on your computer?

Group of answer choices

git clone

git commit

git pull

git init

git clone

21
New cards

What does git log display?

Group of answer choices

The changes staged for the next commit

The current status of branches

The list of files currently tracked

The history of commits in the repository

The history of commits in the repository

22
New cards

Every commit in Git is identified by a unique hash.

Group of answer choices

True

False

True

23
New cards

The command git push origin main does what?

Group of answer choices

Creates a new branch called origin

Deletes the remote branch

Saves changes locally without uploading them

Pushes local changes to the remote repository’s main branch

Pushes local changes to the remote repository’s main branch

24
New cards

git pull downloads and merges changes from a remote repository into the local branch.

Group of answer choices

True

False

True

25
New cards

What is the local history of changes in Git called?

Group of answer choices

Clone

Commit

Repository

Branch

Commit

26
New cards

Git can only be used for programming projects; it cannot track changes in other file types.

Group of answer choices

True

False

False

27
New cards

A merge conflict happens when:

Group of answer choices

Two users make changes to the same line of a file in different branches

GitHub is offline

The internet connection is lost during push

Two users delete the same file

Two users make changes to the same line of a file in different branches

28
New cards

Which of the following best describes version control?

Group of answer choices

A programming language feature for managing memory

A system for automatically compiling code

A system for tracking changes to files and coordinating work among developers

A debugging tool for detecting errors in code

A system for tracking changes to files and coordinating work among developers

29
New cards

Which of these is NOT a common Git hosting service?

Group of answer choices

Stack Overflow

GitLab

Bitbucket

GitHub

Stack Overflow

30
New cards

Merge conflicts must always be resolved manually by the developer.

Group of answer choices

True

False

True

31
New cards

When testing a REST API, which HTTP method is used to create new data?

Group of answer choices

POST

PUT

GET

DELETE

POST

32
New cards

Which HTTP method is commonly used to retrieve data from an API?

Group of answer choices

GET

PUT

POST

DELETE

GET

33
New cards

It is the process of making a request from an API.

Group of answer choices

API Key

Endpoint

API Call

Status Code

API Call

34
New cards

What happens if you send invalid JSON in a POST request body?

Group of answer choices

The server automatically fixes it

The response will still be successful

The request will usually fail or return a 400 Bad Request

The request is ignored

The request will usually fail or return a 400 Bad Request

35
New cards

The GET method is used to retrieve specific data from the API.

Group of answer choices

True

False

False

36
New cards

Integration testing is done to verify the system as a whole meets the requirements?

Group of answer choices

True

False

False

37
New cards

Which type of testing focuses on the interaction between multiple modules or components?

Group of answer choices

Integration testing

Regression testing

Unit testing

Performance testing

Integration testing

38
New cards

Which of the following is a benefit of automated testing?

Group of answer choices

Faster and repeatable test execution

Reduces the need for developers

Guarantees no bugs exist

Removes the need for documentation

Faster and repeatable test execution

39
New cards

What is the main purpose of software testing?

Group of answer choices

To reduce the size of the code

To prove that the software works perfectly

To replace the need for code reviews

To identify bugs and ensure software meets requirements

To identify bugs and ensure software meets requirements

40
New cards

Which type of testing focuses on testing individual components or functions of a program?

Group of answer choices

Acceptance Testing

Unit Testing

Integration Testing

System Testing

Unit Testing

41
New cards

Which of the following is NOT an HTTP method?

Group of answer choices

SEND

GET

DELETE

POST

SEND

42
New cards

What does the 500 status code mean?

Group of answer choices

Timeout

Bad Request

Server Error

Not Found

Server Error

43
New cards

What does an HTTP response code 200 OK mean?

Group of answer choices

Resource not found

Request failed due to server error

Unauthorized access

Request was successful

Request was successful

44
New cards

Which of the following is NOT a functional test?

Group of answer choices

Testing a login API endpoint returns the correct response

Validating that a file upload works as expected

Checking if a shopping cart correctly updates its total

Measuring how fast the system responds under heavy load

Measuring how fast the system responds under heavy load

45
New cards

Which type of testing validates the entire system end-to-end against requirements?

Group of answer choices

Functional testing

Debugging

Unit testing

System testing

System testing

46
New cards

What is the main purpose of Postman?

Group of answer choices

Designing user interfaces

Writing and compiling Java code

Debugging JavaScript errors

Running and testing API requests

Running and testing API requests

47
New cards

The digital location where an API receives requests about its resources is called endpoints.

Group of answer choices

True

False

True

48
New cards

What is the difference between PUT and PATCH requests?

Group of answer choices

PATCH deletes the resource

PUT replaces the entire resource, PATCH updates only part of it

PUT updates part of a resource, PATCH replaces all of it

PUT and PATCH are identical

PUT replaces the entire resource, PATCH updates only part of it