Orientation to Computing โ I
Unit 5: Version Control, Modern AI Trends & Profile Creation
From your first git push to crafting AI prompts to building a recruiter-ready developer identity โ the skills that get you hired.
๐ข Industry-Aligned | ๐ 15 MCQs (Bloom's Taxonomy) | ๐ฌ 5 Lab Exercises | ๐ผ Interview & Career Prep
Why This Chapter Changes How You Think About Computing
This is the chapter that directly determines whether you get hired. Not theory exams. Not CGPA alone. Your GitHub profile, your ability to use AI tools intelligently, and your presence on coding platforms โ these are what recruiters look at in 2025. At TCS, Infosys, and every startup, the first interview question is increasingly: "Show me your GitHub."
๐ข Industry Snapshot โ Who Uses This Knowledge Daily?
Razorpay โ Every developer pushes code via Git multiple times daily. Pull requests, code reviews, branch protection, CI/CD pipelines โ their entire engineering culture is built on Git. A developer who can't use Git is like a driver who can't steer.
Google / DeepMind โ Built Gemini, one of the most powerful AI models. Every Google product โ Search, Maps, YouTube, Gmail โ uses AI. Understanding prompt engineering and AI capabilities isn't optional for any tech career in 2025.
TCS / Infosys / Wipro โ Campus placement processes now include HackerRank tests, GitHub profile reviews, and AI tool awareness questions. 83% of Indian IT companies check candidates' online coding profiles before shortlisting.
Prerequisite Checklist โ
- โ Basic computer usage (you've saved files, used a browser)
- โ Awareness of what programming is (from Unit 2)
- โ Access to a computer with internet connection
- โ No prior Git, AI, or platform experience required
Learning Outcomes โ Bloom's Taxonomy
| Bloom's Level | Learning Outcome |
|---|---|
| L1 โ Remember | List the core Git commands (init, add, commit, push, pull, branch, merge) and name 5 types of generative AI tools |
| L2 โ Understand | Explain the Git workflow (working directory โ staging โ commit โ remote) and describe how LLMs generate text using token prediction |
| L3 โ Apply | Create a GitHub repository, push code with proper commit messages, and write effective AI prompts using few-shot and chain-of-thought techniques |
| L4 โ Analyze | Compare ChatGPT vs Claude vs Gemini for specific tasks and differentiate between good and poor prompts with reasoning |
| L5 โ Evaluate | Justify the ethical use of AI in academic work and evaluate when AI-generated code is assistance vs plagiarism |
| L6 โ Create | Design a complete developer profile strategy (GitHub README, HackerRank certifications, LeetCode plan) and build a portfolio on GitHub Pages |
Concept Explanations
Part A โ Version Control with Git & GitHub
3.1 What Is Version Control?
๐ Version Control โ Your Code's Time Machine
Version control is a system that records changes to files over time so you can recall specific versions later. Every modification is tracked โ who changed what, when, and why. It's not just for code โ designers use it for Figma files, writers for manuscripts, and data scientists for datasets.
๐ REAL-WORLD ANALOGYThink of Google Docs version history. You can see every edit, who made it, and restore any previous version. Git is the same concept, but infinitely more powerful โ designed for code, supporting branches (parallel versions), merges (combining work), and collaboration across teams of thousands.
๐ข INDUSTRY USEEvery software company on Earth uses Git. Flipkart's 2,000+ engineers push code to Git repositories daily. Razorpay's payment gateway codebase has 50,000+ commits. The Linux kernel itself has 1 million+ commits from 20,000+ contributors. Your first day at TCS/Infosys starts with Git training.
โ ๏ธ COMMON MISCONCEPTION"Git and GitHub are the same thing." No. Git is a local tool installed on your computer โ it tracks changes. GitHub is a cloud platform where you store and share Git repositories. You can use Git without GitHub (local only), but not GitHub without Git. Other platforms like GitLab and Bitbucket also host Git repositories.
3.2 Core Git Workflow
.git directory that stores the entire history. Every Git command operates within a repository.Git Workflow
โโโโโโโโโโโโโโโโโโโ git add โโโโโโโโโโโโโโโ git commit โโโโโโโโโโโโโโโโโโ
โ WORKING โโโโโโโโโโโโโโโโถโ STAGING โโโโโโโโโโโโโโโโถโ LOCAL REPO โ
โ DIRECTORY โ โ AREA โ โ (.git folder) โ
โ (your files) โโโโโโโโโโโโโโโโโ (index) โ โ (commit history)โ
โ โ git restore โ โ โ โ
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โโโโโโโโโโฌโโโโโโโโโ
โ git push
โผ
โโโโโโโโโโโโโโโโโโ
โ REMOTE REPO โ
โ (GitHub) โ
โ โ
โโโโโโโโโโโโโโโโโโ
Every Command You Need โ With Examples
Setting Up
Terminal
# Configure your identity (run once after installing Git)
$ git config --global user.name "Rahul Sharma"
$ git config --global user.email "rahul@example.com"
# Initialize a new repository
$ mkdir my-project && cd my-project
$ git init
Initialized empty Git repository in /home/rahul/my-project/.git/
The Daily Workflow: add โ commit โ push
Terminal
# Check what's changed
$ git status
On branch main
Untracked files:
index.html
style.css
# Stage ALL changes (or specific files)
$ git add . # Stage everything
$ git add index.html # Stage one file
# Commit with a descriptive message
$ git commit -m "Add landing page with responsive navbar"
[main a1b2c3d] Add landing page with responsive navbar
2 files changed, 145 insertions(+)
# View commit history
$ git log --oneline
a1b2c3d Add landing page with responsive navbar
f4e5d6c Initial commit
# See what exactly changed
$ git diff
# Push to GitHub
$ git push origin main
Branching & Merging โ Team Collaboration
Terminal
# Create and switch to a new branch
$ git checkout -b feature/payment-page
Switched to a new branch 'feature/payment-page'
# List all branches (* = current)
$ git branch
main
* feature/payment-page
# After making changes and committing, merge back
$ git checkout main
$ git merge feature/payment-page
Updating a1b2c3d..e7f8g9h
Fast-forward
payment.html | 89 +++++++++++++++++++++++++++
1 file changed, 89 insertions(+)
# Temporarily save work without committing
$ git stash
$ git stash pop # Restore stashed changes
# Clone an existing repository
$ git clone https://github.com/username/repo.git
.gitignore โ What to NEVER Commit
.gitignore
# Never commit these:
node_modules/ # Dependencies (npm install regenerates them)
.env # API keys, database passwords โ SECURITY RISK
__pycache__/ # Python compiled bytecode
*.pyc # Python cache files
.DS_Store # macOS system files
dist/ # Build output (can be regenerated)
*.log # Log files
"I committed my API keys to GitHub and now someone is using my AWS account." This happens weekly to beginners. NEVER commit .env files, API keys, passwords, or tokens. Use .gitignore to exclude them. If you accidentally commit a secret, rotate the key immediately โ Git history preserves every version, even deleted files.
3.3 GitHub โ Collaboration & Your Public Resume
Pull Requests โ The Industry Workflow
๐ Pull Requests (PRs) โ How Teams Ship Code
A Pull Request is a proposal to merge your branch's changes into the main branch. It includes a description, code diff, and space for team members to review, comment, and approve before merging. No code enters production without a PR at any serious company.
โ๏ธ PR WORKFLOWPR Workflow
1. Create branch: git checkout -b feature/upi-integration
2. Write code, commit: git commit -m "Add UPI payment flow"
3. Push branch: git push origin feature/upi-integration
4. Open PR on GitHub: Click "Compare & pull request"
5. Team reviews: Comments, suggestions, approve/request changes
6. CI tests run: Automated tests verify nothing breaks
7. Merge: Reviewer approves โ Merge into main
8. Deploy: CI/CD pipeline deploys to production
๐ข INDUSTRY USE
At Razorpay, every PR requires at least 2 approvals from senior engineers. At Flipkart, PRs trigger 500+ automated tests before merge is allowed. At Google, the average PR takes 4 hours from submission to merge. Learning PRs now means you're job-ready on day 1.
GitHub Pages โ Free Portfolio Hosting
GitHub Pages lets you deploy a static website for free directly from a repository. Your portfolio website at username.github.io โ zero hosting cost, professional URL, deployed with a single git push.
rahul-sharma/rahul-sharma) shows a README.md on your profile page. Add: your skills, current learning goals, pinned projects, contribution graph stats, and links to your LinkedIn/portfolio. "Green squares matter to recruiters."Part B โ Modern AI Trends & Tools
3.4 What Is Artificial Intelligence?
๐ AI โ Machines That Learn
Artificial Intelligence is the field of computer science focused on building systems that can perform tasks that normally require human intelligence: understanding language, recognizing images, making decisions, and generating content.
โ๏ธ THREE LEVELS OF AI| Type | What It Can Do | Status | Example |
|---|---|---|---|
| Narrow AI (ANI) | One specific task โ better than humans at it | โ Exists today | Google Maps routing, Swiggy delivery prediction, Aadhaar face matching |
| General AI (AGI) | Any intellectual task a human can do | โณ Doesn't exist yet | A system that can write code AND diagnose diseases AND compose music โ like a human |
| Super AI (ASI) | Surpasses all human intelligence combined | โ Hypothetical | Science fiction territory โ no clear path to building this |
| Application | Company | How AI Is Used |
|---|---|---|
| Face Recognition | UIDAI (Aadhaar) | Matches your face against database of 1.4 billion for KYC |
| Fraud Detection | Google Pay / PhonePe | Detects suspicious UPI transactions in real-time |
| Delivery Prediction | Swiggy / Zomato | Predicts delivery time based on restaurant prep, traffic, weather |
| Credit Scoring | CIBIL / Experian | ML models calculate credit score from transaction history |
| Diagnostic Assist | Practo / Qure.ai | AI reads chest X-rays to detect tuberculosis with 95%+ accuracy |
| Recommendation | YouTube / Spotify India | "Suggested for you" feeds powered by deep learning models |
3.5 Generative AI โ Creating, Not Just Analyzing
Text Generation โ LLMs
| Tool | Company | Strengths | Limitations | Free Tier | Best For |
|---|---|---|---|---|---|
| ChatGPT (GPT-4o) | OpenAI | Best all-rounder, largest user base, plugins | Can hallucinate, knowledge cutoff, expensive Pro | GPT-4o-mini free | General tasks, coding, writing |
| Claude | Anthropic | Longest context (200K tokens), safest, best for long docs | Smaller ecosystem, no image generation | Free tier available | Long documents, analysis, safety |
| Gemini | Multimodal (text+image+video), Google integration | Newer, smaller plugin ecosystem | Free with Google account | Research, multimodal tasks | |
| Llama 3 | Meta | Open-source, can run locally, privacy | Needs powerful hardware locally | Fully free (open source) | Privacy-sensitive, custom deployment |
| Mistral | Mistral AI | European, efficient, strong coding | Smaller training data than GPT-4 | Free API tier | Coding, European data compliance |
Image, Video & Research Tools
| Category | Tools | What They Do |
|---|---|---|
| Image Generation | DALL-E 3, Midjourney, Stable Diffusion, Adobe Firefly | Create images from text descriptions. DALL-E 3 integrates with ChatGPT. Midjourney excels at artistic quality. Stable Diffusion is open-source. Adobe Firefly is copyright-safe (trained on licensed images). |
| Video Generation | Sora (OpenAI), Runway ML, Pika Labs | Generate short videos from text prompts. Still early-stage (2025) โ 5-15 second clips with artifacts. Sora produces photorealistic results but isn't publicly available to all users yet. |
| Research Tools | Perplexity AI, NotebookLM (Google), JenniAI | Perplexity: AI search with citations. NotebookLM: upload your notes/PDFs, ask questions โ perfect for exam prep. JenniAI: academic writing assistant with citation generation. |
3.6 Prompt Engineering โ The New Programming
๐ Prompt Engineering โ Quality In = Quality Out
A prompt is the instruction you give to an AI model. Prompt engineering is the skill of crafting inputs that produce the best possible outputs. It's the difference between getting a useless response and getting a perfectly structured answer that saves you 3 hours of work.
๐ REAL-WORLD ANALOGYOrdering food: "Give me something to eat" (bad prompt) vs "I'd like a medium paneer butter masala, less spicy, with 2 garlic naan and a cold lassi" (good prompt). Specificity gets you what you actually want.
5 Side-by-Side Prompt Comparisons
Prompting Techniques
| Technique | What It Is | Example |
|---|---|---|
| Zero-Shot | Ask directly without examples | "Translate 'How are you?' to Hindi" |
| Few-Shot | Provide 2-3 examples before your actual question | "Convert: cat โ เคฌเคฟเคฒเฅเคฒเฅ, dog โ เคเฅเคคเฅเคคเคพ, bird โ ?" |
| Chain-of-Thought | Ask the AI to reason step-by-step | "Calculate RAID 5 usable space for 4 ร 2TB. Show each step of your reasoning." |
| Role Prompting | Assign a persona to the AI | "You are a GATE CS examiner. Create 3 questions on process scheduling." |
| System Prompt | Set rules for the entire conversation | "You are a friendly Python tutor. Explain concepts using Indian daily-life analogies. Never give answers directly โ ask guiding questions." |
3.7 Ethical Use of AI
| Concern | Issue | Indian Context |
|---|---|---|
| Bias | AI models trained on biased data produce biased outputs | An AI hiring tool at an Indian IT company may discriminate against candidates from certain colleges or regions if trained on biased historical hiring data |
| Deepfakes | AI-generated fake videos/audio of real people | Deepfake videos of Indian politicians have circulated on WhatsApp during elections. Detection tools are improving but lagging behind creation tools |
| Academic Integrity | When does AI help become cheating? | Using AI to understand a concept = โ learning. Submitting AI-generated code as your own assignment = โ plagiarism. The line: did you learn, or did you outsource thinking? |
| Copyright | Who owns AI-generated content? | India's copyright law currently doesn't recognize AI as an author. MEITY is drafting guidelines. For now: AI-generated content has uncertain legal status |
| Environment | Training large AI models consumes massive energy | Training GPT-4 consumed an estimated 50 GWh โ equivalent to 5,000 Indian households' annual electricity usage. Every AI query has a carbon footprint |
Part C โ Profile Creation (Developer Identity)
3.8 Why Your Online Profile IS Your Resume
In 2025, a PDF resume is the minimum. What recruiters actually check: your GitHub (can you actually code?), LinkedIn (professional network), HackerRank/LeetCode (problem-solving ability), and portfolio website (can you build and ship?). 83% of Indian IT recruiters check online profiles before shortlisting candidates.
3.9 Platform-by-Platform Guide
GitHub โ Your Code Portfolio
| What to Do | Why It Matters | How |
|---|---|---|
| Create profile README | First thing visitors see on your profile | Create repo named your-username, add README.md with skills, learning goals, stats |
| Pin 6 best repositories | Showcases your best work immediately | Profile โ Customize โ Pin repositories |
| Green contribution graph | "Green squares = active developer" signal to recruiters | Commit regularly โ even small changes count |
| Write good README.md files | Shows communication skills, not just coding | Include: project description, screenshots, tech stack, how to run, future plans |
HackerRank โ Certification & Hiring Tests
| Feature | Details | Career Impact |
|---|---|---|
| Skill Certifications | Free certificates: Python, SQL, Java, Problem Solving, REST API | Visible on profile, shareable on LinkedIn. Recruiters filter by certifications. |
| Company Tests | TCS NQT, Cognizant GenC, Capgemini, DXC โ all use HackerRank | Your campus placement test might literally be on HackerRank. Practice here = practice for the real test. |
| Badges | Gold/Silver/Bronze badges for each skill domain | Gold Python badge = you've solved 70+ Python challenges |
LeetCode โ The Gold Standard for Coding Interviews
| Feature | Details | Strategy |
|---|---|---|
| Problem Levels | Easy (acceptance ~60%), Medium (~40%), Hard (~25%) | Start with Easy, move to Medium by Sem 3. Hard for FAANG-level prep. |
| Company Tags | Problems tagged by company: Amazon, Flipkart, Walmart, Google | Before Flipkart interview, solve all "Flipkart" tagged problems |
| Curated Lists | "LeetCode 75" (beginner), "Blind 75" (interview essentials), "Neetcode 150" | Start with LeetCode 75 โ Blind 75 โ Company-specific |
| Contests | Weekly coding contests (Sunday) | Participate even if you solve 1/4 problems โ rating system motivates improvement |
Other Platforms
| Platform | Best For | Indian Context |
|---|---|---|
| GeeksforGeeks | Structured DSA learning, company-specific question banks | Most popular in India. Free content covers 90% of placement topics. GFG Practice = daily DSA habit. |
| HackerEarth | Competitive programming, hackathons, company challenges | Indian startups (Meesho, Swiggy, Razorpay) host hiring challenges on HackerEarth. |
| Stack Overflow | Q&A, learning from real-world problems | Reputation = credibility. Even lurking and learning from answers is a skill. Answer 10 good questions = shows expertise. |
| Figma | UI/UX design, wireframing, prototyping | Browser-based, free tier generous. Career path: UI/UX Designer avg โน6-12 LPA fresher. Design your portfolio wireframe before coding it. |
| Professional networking, job applications | 95% of Indian tech recruiters use LinkedIn. Post your projects, certifications, learning journey. Connect with alumni. |
Semester-by-Semester Profile Building Strategy
| Phase | Focus | Deliverables |
|---|---|---|
| Semester 1 | GitHub setup + HackerRank Python cert | GitHub profile README, 3 small repos (lab exercises), HackerRank Python Basic cert |
| Semester 2 | LeetCode Easy + GeeksforGeeks | 50 LeetCode Easy solved, GFG DSA self-paced practice, SQL HackerRank cert |
| Year 2 | LeetCode Medium + projects + open source | 100 LeetCode problems, 2 substantial GitHub projects (with README), first open-source contribution |
| Placement Year | LinkedIn + portfolio + company-specific prep | Portfolio website on GitHub Pages, LinkedIn optimized, Blind 75 complete, company-tagged problems |
Industry Problems
๐ข Industry Problem #1 โ Empty GitHub Profile, 2 Weeks Before Placements
Company Type: Engineering college (Tier-2 city, campus placements starting)
Scenario: Priya is a 3rd-year B.Tech CSE student. She's good at DSA (solved 200+ LeetCode) but her GitHub is completely empty. Campus placements start in 14 days. Recruiters from TCS, Infosys, and two startups will check GitHub profiles.
Your Task: Create a 14-day action plan to build a credible GitHub profile from scratch.
๐ก Solution: 14-Day GitHub Rescue Plan
| Day | Action | Deliverable |
|---|---|---|
| 1 | Setup: Create GitHub account, install Git, configure user | Profile photo, bio, profile README with skills |
| 2-3 | Push existing DSA solutions (organized by topic) | Repo: dsa-solutions with folder structure (arrays/, trees/, dp/) |
| 4-5 | Build a personal portfolio website (HTML/CSS/JS) | Repo: portfolio, deployed on GitHub Pages |
| 6-8 | Build a full-stack mini project (To-Do app / Weather dashboard) | Repo with README: screenshots, tech stack, how to run |
| 9-10 | Add a Python/Java project (e.g., file organizer, quiz app) | Repo with clean code, comments, README |
| 11-12 | Earn HackerRank certifications (Python Basic + SQL Basic) | Certificates linked on GitHub profile |
| 13 | Polish: Pin 6 repos, add contribution graph, write consistent commit messages | Polished profile page |
| 14 | LinkedIn post: "Here's what I built this month" โ share GitHub link | Public visibility, recruiter reach |
Industry Insight: Recruiters spend 30 seconds on a profile. They check: (1) Is the contribution graph green? (2) Are pinned repos real projects (not just forked repos)? (3) Do READMEs explain the project? A polished profile built in 14 days beats an empty profile with 4 years of enrollment.
๐ข Industry Problem #2 โ AI Tool Comparison for Academic Research
Company Type: University research lab (IIT Hyderabad, NLP group)
Scenario: A professor asks your group to evaluate AI tools for literature review in a research paper on "Machine Learning Applications in Indian Agriculture." You must compare 3 tools and recommend the best approach.
Your Task: Use Perplexity AI, ChatGPT, and NotebookLM for the same research question. Compare outputs.
๐ก Solution Walkthrough
| Criterion | Perplexity AI | ChatGPT (GPT-4o) | NotebookLM |
|---|---|---|---|
| Citation quality | ๐ข Cites real URLs, verifiable | ๐ด Often hallucinates citations | ๐ข Cites from YOUR uploaded papers |
| Recency | ๐ข Real-time web search | ๐ก Knowledge cutoff (training data) | ๐ก Limited to uploaded documents |
| Depth | ๐ก Broad overview | ๐ข Deep analysis with prompting | ๐ข Deep analysis of specific papers |
| Best for | Finding papers, initial literature survey | Synthesizing ideas, drafting sections | Deeply understanding specific papers |
Recommended workflow: Start with Perplexity (find relevant papers with real citations) โ Upload papers to NotebookLM (deep understanding + Q&A) โ Use ChatGPT (synthesize themes, draft initial sections โ then rewrite in your own words).
Ethics note: Always verify AI citations independently. Never submit AI-generated text as your own. Use AI as a research accelerator, not a ghostwriter.
๐ข Industry Problem #3 โ Setting Up Git Workflow for a Startup Team
Company Type: Early-stage edtech startup (5 developers, Bangalore)
Scenario: Your 5-person team has been pushing code directly to main branch. Last week, a junior developer accidentally broke the production website by pushing untested code. The CTO asks you to set up a proper Git workflow.
Your Task: Design a branching strategy and PR workflow for the team.
๐ก Solution: Git Flow for Small Teams
Branching Strategy
main โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ (production - always stable)
\ / \ /
develop โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ (integration branch)
\ / \ /
feature/ โโโโโ โโโโโ (individual feature branches)
Rules:
- Never push directly to
mainโ enable branch protection on GitHub - Create feature branches:
git checkout -b feature/user-dashboard - Open PR to merge into
developโ requires 1 code review approval - Weekly: merge
developโmainvia PR with full team review .gitignore: excludenode_modules/,.env, build artifacts- Commit message format:
"feat: add user login","fix: resolve payment timeout","docs: update README"
Lab Exercises
Exercise 1: Your First GitHub Repository
Objective: Create a GitHub account, initialize a repo, and push your first commit.
Task:
- Create a GitHub account at
github.com(use a professional username โ notcoolboy2005) - Install Git on your machine. Verify:
git --version - Configure:
git config --global user.name "Your Name"anduser.email - Create a folder
hello-world, rungit init - Create
README.mdwith your name and a one-line project description - Run:
git add .โgit commit -m "Initial commit: add README" - Create a repo on GitHub, link it:
git remote add origin <url> - Push:
git push -u origin main
Expected Output: A live GitHub repository at github.com/yourusername/hello-world
Extension: Add a .gitignore file and make a second commit: "feat: add .gitignore for Python projects"
Exercise 2: Create Your GitHub Profile README
Objective: Build a professional GitHub profile page using a special README repository.
Task:
- Create a new repo with the same name as your GitHub username
- Add a
README.mdwith: greeting banner, about you section, current learning (skills you're building), tech stack (icons/badges), GitHub stats widget, and links (LinkedIn, portfolio) - Use Markdown formatting: headers, bullet points, badges (shields.io), and embedded images
- Push and verify it appears on your profile page
Expected Output: A polished profile README visible at github.com/yourusername
Hints: Search "awesome GitHub profile README" for inspiration. Use github-readme-stats for auto-generated stats cards.
Exercise 3: Earn Your First HackerRank Certification
Objective: Complete the HackerRank Python (Basic) certification test.
Task:
- Create a HackerRank account at
hackerrank.com - Practice: Solve 10 Python challenges in the "Python" domain (start with Easy)
- Take the Python (Basic) certification test (free, 90 minutes, 2 questions)
- If you pass, download the certificate and add it to your LinkedIn
- Bonus: Also attempt the SQL (Basic) certification
Expected Output: HackerRank Python Basic certificate (shareable link)
Hints: The test covers: string manipulation, list comprehension, sets, tuples, and basic OOP. Practice these topics before attempting.
Exercise 4: AI Prompt Engineering Challenge
Objective: Write the same task as 5 different prompts and compare AI output quality.
Task:
- Choose a creative task: "Explain the concept of recursion to a first-year student"
- Write 5 prompts of increasing quality: (a) Basic one-liner, (b) With context about audience, (c) With an analogy request, (d) With role prompting, (e) With few-shot examples + constraints
- Submit each to the same AI tool (ChatGPT, Claude, or Gemini)
- Create a comparison table: Prompt text | Output quality (1-5) | Length | Accuracy | Usefulness
- Write a 200-word reflection on how prompt quality affects output quality
Expected Output: Comparison table with 5 prompts + outputs + quality ratings + reflection
Exercise 5: Deploy a Portfolio Website on GitHub Pages
Objective: Build and deploy a personal portfolio website accessible at yourusername.github.io
Task:
- Create a new repo named
yourusername.github.io - Build a portfolio with: About section, Skills, Projects (3+), Education, Contact
- Use HTML, CSS, and optional JavaScript. Make it responsive.
- Push to GitHub and enable GitHub Pages (Settings โ Pages โ Source: main branch)
- Verify your site is live at
https://yourusername.github.io
Expected Output: A live, professional portfolio website
Extension: Add Google Analytics to track visitors. Add a custom domain (โน500/year from GoDaddy/Namecheap).
MCQ Assessment Bank โ 15 Questions
Hover over any question to reveal the answer.
What does git add . do?
- Commits all changes
- Stages all modified and new files in the current directory for the next commit
- Pushes code to GitHub
- Creates a new branch
git add . moves all changes (new files, modified files) from the working directory to the staging area (index). It does NOT commit โ that requires git commit. The . means "current directory and everything inside it."๐ข Every developer runs this command 10+ times daily.
Which of the following is an example of Narrow AI (ANI)?
- A robot that can cook, drive, write poetry, and diagnose diseases
- Google Maps calculating the fastest route based on real-time traffic
- A computer that is smarter than all humans combined
- An AI that passed every university exam in every subject
๐ข All commercial AI in 2025 is narrow AI: Swiggy delivery, Google Pay fraud detection, YouTube recommendations.
What should NEVER be committed to a Git repository?
- README.md
- Source code files (.py, .js, .java)
- .env files containing API keys and database passwords
- Configuration files like package.json
.env files contain secrets (API keys, passwords, tokens). Committing them to a public (or even private) repository is a serious security risk. Use .gitignore to exclude them. If accidentally committed, rotate all keys immediately โ Git history preserves everything.๐ข AWS automatically scans GitHub for leaked AWS keys and disables compromised accounts. This happens thousands of times daily.
Why is the staging area (index) a useful concept in Git?
- It makes Git slower and more complex
- It allows you to selectively choose which changes to include in a commit, enabling clean, focused commit history
- It's required by GitHub but not by Git
- It automatically writes commit messages
git add login.py auth.py. This creates a clean, reviewable history where each commit represents one logical change.๐ข At Flipkart, messy commits are rejected in code review. Clean commit history is a professional expectation.
What makes Generative AI different from traditional AI?
- Generative AI is faster
- Generative AI creates NEW content (text, images, code) while traditional AI classifies, predicts, or analyzes existing data
- Traditional AI doesn't use neural networks
- Generative AI doesn't need training data
๐ข Companies like CRED and Swiggy use traditional AI for recommendations and generative AI for marketing copy and customer support chatbots.
Why does a "few-shot" prompt produce better results than a "zero-shot" prompt?
- Few-shot prompts use more computing power
- Providing examples helps the AI understand the exact format, style, and quality expected in the output
- Zero-shot prompts are always wrong
- Few-shot prompts bypass the AI's content filters
๐ข Prompt engineering is now a job title โ companies hire "AI prompt engineers" at โน15-30 LPA to optimize AI tool usage.
You've made changes to 3 files but want to commit only payment.py. Which sequence is correct?
git commit -m "fix payment"git add payment.pythengit commit -m "fix: resolve payment timeout bug"git push payment.pygit add .thengit commit -m "fix payment"
git add payment.py), then commit with a descriptive message. Option A skips staging (only works with -a flag for tracked files). Option C: push sends to remote, not related to selective staging. Option D stages ALL files including the 2 you don't want in this commit.๐ข Clean, atomic commits are a code review best practice at every company.
Which prompt technique is MOST effective for getting an AI to solve a complex math problem step-by-step?
- Zero-shot: "Solve this problem"
- Role prompting: "You are a math teacher"
- Chain-of-thought: "Solve this step by step, showing all intermediate calculations and reasoning"
- Few-shot: "Here's an example of a solved problem"
๐ข Chain-of-thought is the most impactful prompting technique for technical and analytical tasks.
A student wants to showcase their Python skills to recruiters. Which combination of actions is MOST effective?
- Only solve 500 LeetCode problems
- Only build a beautiful portfolio website
- Push 3 well-documented Python projects to GitHub + earn HackerRank Python certification + solve 50 LeetCode Easy problems
- Only create a LinkedIn profile
๐ข This is the exact profile-building strategy recommended by TCS iON and Infosys InfyTQ career guides.
Two AI tools are asked: "Write a research summary on quantum computing." Tool A gives a fluent summary but cites 3 papers that don't exist. Tool B gives a shorter summary but every citation is verifiable. Which tool is more reliable for academic work and why?
- Tool A โ longer output means better quality
- Tool B โ verifiable citations are essential for academic integrity; hallucinated citations undermine research credibility entirely
- Both are equally reliable
- Neither โ AI should never be used for research
๐ข IITs and NITs are updating academic integrity policies to address AI hallucination in student submissions.
A team uses Git but everyone pushes directly to main. Last week, a junior developer broke production. What Git workflow practice would have PREVENTED this?
- Using a bigger monitor
- Branch protection rules requiring PR reviews and CI tests before merging to main
- Deleting Git history weekly
- Giving only the team lead push access
main. They require: (1) code changes go through a Pull Request, (2) at least 1 reviewer approves, (3) CI tests pass. This means broken code is caught before it reaches production. Option D creates a bottleneck โ the team lead becomes a single point of failure.๐ข Every serious engineering team (Razorpay, Zerodha, Flipkart) uses branch protection. It's standard DevOps practice.
A student uses ChatGPT to generate their entire programming assignment and submits it as their own work. Is this ethical?
- Yes โ AI is just another tool like a calculator
- No โ submitting AI-generated work as your own is plagiarism; the purpose of assignments is to develop YOUR problem-solving skills, which is bypassed when AI does the thinking
- Yes โ if the professor didn't explicitly ban AI
- Depends on whether the code is correct
๐ข IITs, NITs, and UGC are implementing AI detection and updated academic integrity policies. Companies test your skills in live coding interviews โ AI-generated assignments won't help you there.
A company must choose between ChatGPT (paid) and Llama 3 (open-source, self-hosted) for an internal customer support chatbot handling sensitive financial data. Which is better and why?
- ChatGPT โ more powerful model
- Llama 3 self-hosted โ sensitive financial data should not be sent to external APIs; self-hosting gives complete control over data privacy, compliance (RBI guidelines), and customization
- Neither โ AI shouldn't handle financial data
- Both simultaneously for redundancy
๐ข Indian banks and NBFCs (Razorpay, PhonePe) increasingly self-host AI models due to RBI data localization requirements.
Design a 3-month GitHub contribution plan for a first-year B.Tech student with ZERO coding experience, targeting campus placements.
- Only fork popular repos to show activity
- Month 1: Learn Python basics + push daily practice exercises. Month 2: Build 2 mini-projects (calculator, quiz app) with READMEs. Month 3: Create portfolio website + earn HackerRank cert + write profile README
- Copy-paste code from tutorials without modification
- Wait until 3rd year to start
๐ข Recruiters check commit frequency and consistency. A 90-day streak of daily commits signals discipline and passion.
Design a prompt for an AI to generate a study plan for GATE CS preparation, covering all subjects with time allocation. Which prompt structure would produce the BEST output?
- "Help me with GATE"
- "You are a GATE CS topper and coaching mentor. Create a 6-month study plan for a working professional preparing for GATE 2026 CS. Include: subject-wise weekly schedule, recommended resources (free + paid), past year question practice strategy, and mock test timeline. Prioritize subjects by weightage. Format as a weekly table."
- "What topics come in GATE?"
- "Make a GATE plan for me"
๐ข This level of prompt crafting is what makes AI tools 10ร more useful โ and it's a skill employers increasingly value.
Chapter Summary
๐ฏ 3 Things Industry Expects You to Know
- Git workflow โ init, add, commit, push, branch, merge, PR. You WILL use this on day 1 at any tech job.
- AI literacy โ Know what generative AI can and can't do. Write effective prompts. Understand ethical boundaries.
- Online presence โ GitHub with real projects, HackerRank certifications, and a LeetCode profile demonstrate skills that a resume PDF cannot.
๐ Git Quick Reference
SETUP: git config --global user.name "Name"
INIT: git init
STATUS: git status
STAGE: git add . | git add file.py
COMMIT: git commit -m "descriptive message"
LOG: git log --oneline
DIFF: git diff
BRANCH: git branch | git checkout -b feature/x
MERGE: git checkout main && git merge feature/x
STASH: git stash | git stash pop
REMOTE: git remote add origin <url>
PUSH: git push origin main
PULL: git pull origin main
CLONE: git clone <url>
IGNORE: echo "node_modules/" >> .gitignore
COMMIT MESSAGE FORMAT:
feat: new feature fix: bug fix
docs: documentation style: formatting
refactor: code restructure test: tests
๐ Certification Roadmap
- GitHub Foundations Certification โ GitHub's official cert covering Git, repos, PRs, Actions. Validates your version control skills. ~$99 exam.
- HackerRank Certifications โ Free: Python (Basic/Intermediate), SQL (Basic/Intermediate/Advanced), Java, Problem Solving, REST API. Add to LinkedIn immediately.
- Google AI Essentials (Coursera) โ Free to audit. Covers responsible AI use and prompt engineering. Google-branded certificate.
Interview & Career Preparation
Q1: What is Git and why is it used?
Model Answer: Git is a distributed version control system that tracks changes to files over time. It lets developers: (1) maintain a complete history of all changes, (2) revert to any previous version, (3) work on parallel branches without conflicts, (4) collaborate with teams by merging changes. It's used because modern software development is collaborative โ multiple developers work on the same codebase simultaneously. Without Git, code management would be chaotic and error-prone.
Q2: What is the difference between git add and git commit?
Model Answer: git add moves changes from the working directory to the staging area (index) โ selecting which changes to include. git commit saves the staged changes as a permanent snapshot in the repository history with a descriptive message. Think of it as: add = putting items in a shopping cart, commit = checking out and paying. You can add selectively, then commit once with a clear description of what changed.
Q3: What is a Pull Request?
Model Answer: A Pull Request (PR) is a proposal to merge changes from one branch into another (typically feature branch โ main). It includes: the code diff, a description of changes, and a space for team review. Before merging, teammates review the code, suggest improvements, and verify it passes automated tests. PRs are the standard collaboration workflow in industry โ no code enters production without review.
Q4: What is .gitignore and why is it important?
Model Answer: .gitignore is a file that tells Git which files/directories to exclude from tracking. Important exclusions: .env (API keys, passwords โ security risk), node_modules/ (dependencies โ regenerated by npm install), __pycache__/ (Python cache), build outputs. Without .gitignore, sensitive credentials could be exposed publicly, and repositories would be bloated with unnecessary files.
Q5: What is Generative AI? Give examples.
Model Answer: Generative AI creates NEW content rather than just analyzing existing data. Text generation: ChatGPT, Claude, Gemini โ generate human-like text, code, essays. Image generation: DALL-E 3, Midjourney โ create images from text descriptions. Video: Sora by OpenAI. Code: GitHub Copilot. Key technology: Large Language Models (LLMs) for text, Diffusion Models for images. Important limitation: AI can "hallucinate" โ generating plausible-sounding but factually incorrect information.
Q6: What is prompt engineering?
Model Answer: Prompt engineering is the skill of crafting AI inputs to get optimal outputs. Key techniques: (1) Be specific โ include context, constraints, format. (2) Few-shot โ provide examples. (3) Chain-of-thought โ ask for step-by-step reasoning. (4) Role prompting โ assign a persona. The quality of AI output directly depends on input quality. It's increasingly considered a valuable professional skill โ some companies have dedicated prompt engineer roles.
Q7: How do you resolve a merge conflict in Git?
Model Answer: A merge conflict occurs when two branches modify the same lines of the same file. Git marks the conflict with <<<<<<<, =======, >>>>>>> markers. To resolve: (1) Open the conflicted file, (2) Identify both versions between the markers, (3) Manually choose the correct code (or combine both), (4) Remove the conflict markers, (5) git add the resolved file, (6) git commit. Communication with the other developer is key to choosing the right resolution.
Q8: What coding platforms do you use and what's your strategy?
Model Answer: I use a multi-platform approach: (1) GitHub โ for project portfolios and open-source contributions. (2) LeetCode โ for algorithmic problem-solving (currently working through LeetCode 75 list). (3) HackerRank โ earned Python Basic and SQL Basic certifications. (4) GeeksforGeeks โ for structured DSA learning. My strategy: daily LeetCode practice (1 problem/day), weekly project commits on GitHub, and monthly certification targets on HackerRank.
Q9: What are the ethical concerns with AI?
Model Answer: Key concerns: (1) Bias โ AI trained on biased data produces biased outputs (e.g., discriminatory hiring tools). (2) Hallucination โ AI generates false but plausible information (dangerous for medical, legal, academic use). (3) Deepfakes โ realistic fake videos/audio for misinformation. (4) Privacy โ AI systems process vast amounts of personal data. (5) Job displacement โ automation of routine cognitive tasks. (6) Environmental impact โ training large models consumes significant energy. India's MEITY guidelines require AI labeling and deepfake prevention.
Q10: What is GitHub Pages and how would you use it?
Model Answer: GitHub Pages is a free static website hosting service directly from a GitHub repository. Create a repo named username.github.io, push HTML/CSS/JS files, and your site is live at https://username.github.io. I use it to host my portfolio website โ showcasing projects, skills, and contact information. It's deployed via git push โ no separate hosting needed. Perfect for developer portfolios because recruiters see both your website AND the code behind it in the same repository.
๐ผ "Day 1 at a Tech Job" โ What You'll Use
Day 1 at TCS/Infosys/any startup: (1) You'll git clone the company's codebase. (2) You'll create a feature branch. (3) You'll make changes, commit, and open a Pull Request. (4) You'll use AI tools (Copilot, ChatGPT) to understand unfamiliar code. (5) Your manager will check your GitHub and say "Good, you've already used Git." This chapter IS your first week at work.
๐ GitHub Portfolio Tip
After this chapter, your GitHub should have: (1) A polished profile README. (2) A hello-world repo (Lab Exercise 1). (3) A portfolio website deployed on GitHub Pages (Lab Exercise 5). (4) HackerRank certifications linked. These 4 things alone put you ahead of 90% of first-year students.