Search Header Logo

Mastering Fundamentals

Authored by Sindhu Manivannan

Computers

Professional Development

Used 1+ times

Mastering Fundamentals
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Shree is learning JavaScript and wants to know the correct way to declare a variable in her code.

let variableName; or const variableName; or var variableName;

declare variableName as variable;

variableName = new Variable();

int variableName;

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Aarush wants to check if his score in the exam is equal to the passing score. How does he use an if statement to check this?

if (score = passingScore) { // code }

if (passingScore == score) { // code }

if (score != passingScore) { // code }

Use 'if (score == passingScore) { // code }' to check equality.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Sanya is starting a new project and wants to keep track of her code changes. What is the purpose of the 'git init' command?

To initialize a new Git repository.

To delete an existing Git repository.

To stage changes for commit.

To clone a remote Git repository.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Sanya is working on a project and has made several changes to her files. How does she stage these changes in Git before committing?

Run 'git push' to stage changes.

Execute 'git merge ' to stage changes.

Use 'git add ' or 'git add .' to stage changes.

Use 'git commit ' to stage changes.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Sanya is working on a project using Git and wants to check the current status of her repository. What command should she use?

git view

git info

git status

git check

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

During a group project, Kabir made several changes to the codebase. What is the function of 'git commit' in this context?

To save changes to the local repository with a message.

To create a new branch in the repository.

To delete files from the local repository.

To merge changes from a remote repository.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Tara is learning Git for her software development class. She wants to see the history of all the commits she has made in her project. How can she view the commit history in Git?

Run 'git show' to display commit details.

Execute 'git status' to check commit changes.

Use 'git log' to view the commit history in Git.

Use 'git history' to see past commits.

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?