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

Mastering Fundamentals

Quiz
•
Computers
•
Professional Development
•
Medium
Sindhu Manivannan
Used 1+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
Use 'git add
Use 'git commit
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.
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
DevOps Interview Questions

Quiz
•
Professional Development
10 questions
git basics

Quiz
•
Professional Development
10 questions
edX Vanderbilt - Day 1 Review

Quiz
•
Professional Development
10 questions
git and github

Quiz
•
University - Professi...
15 questions
GİTHUB, İŞ AKIŞ YÖNETİMİ

Quiz
•
Professional Development
15 questions
Git & GitHub Quiz

Quiz
•
Professional Development
20 questions
Git Introduction

Quiz
•
University - Professi...
18 questions
Git-it?

Quiz
•
Professional Development
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade