Practice Tracking Changes - 5.6 | Chapter 5: Git and GitHub Basics – Tracking and Sharing Your Code | Full Stack Web Development Basics
K12 Students

Academics

AI-Powered learning for Grades 8–12, aligned with major Indian and international curricula.

Academics
Professionals

Professional Courses

Industry-relevant training in Business, Technology, and Design to help professionals and graduates upskill for real-world careers.

Professional Courses
Games

Interactive Games

Fun, engaging games to boost memory, math fluency, typing speed, and English skills—perfect for learners of all ages.

games

Practice Questions

Test your understanding with targeted questions related to the topic.

Question 1

Easy

What command would you use to create a new file named 'index.html'?

💡 Hint: Think about how to write output to a new file.

Question 2

Easy

How can you check if your file is being tracked by Git?

💡 Hint: Imagine you're checking the current status of the project in Git.

Practice 4 more questions and get performance evaluation

Interactive Quizzes

Engage in quick quizzes to reinforce what you've learned and check your comprehension.

Question 1

What command is used to create a new file called 'index.html'?

  • echo "Hello World" > index.html
  • git init index.html
  • create index.html

💡 Hint: Think about the command that outputs text to create a file.

Question 2

True or False: You must always stage a file before you can commit it.

  • True
  • False

💡 Hint: Consider the steps required to save changes to your project.

Solve 2 more questions and get performance evaluation

Challenge Problems

Push your limits with challenges.

Question 1

You have created a file named 'script.js' and run git status, it shows 'untracked'. You then run git add script.js. What will the status show after the next git status?

💡 Hint: Reflect on what adding a file means in Git's context.

Question 2

Explain what could happen if you committed changes without a clear commit message.

💡 Hint: Consider how important communication and documentation are in teamwork.

Challenge and get performance evaluation