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

Section 1

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.

๐Ÿ‡ฎ๐Ÿ‡ณ Razorpay๐Ÿ‡ฎ๐Ÿ‡ณ TCS๐Ÿ‡ฎ๐Ÿ‡ณ FlipkartGoogle๐Ÿ‡ฎ๐Ÿ‡ณ CRED๐Ÿ‡ฎ๐Ÿ‡ณ Zerodha

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
Linus Torvalds (creator of Linux) also created Git in 2005 โ€” in just 10 days. He built it because the existing version control tool (BitKeeper) revoked Linux's free license. Today, 100 million+ developers use Git worldwide. The tool born from frustration became the backbone of all modern software development.
Section 2

Learning Outcomes โ€” Bloom's Taxonomy

Bloom's LevelLearning Outcome
L1 โ€” RememberList the core Git commands (init, add, commit, push, pull, branch, merge) and name 5 types of generative AI tools
L2 โ€” UnderstandExplain the Git workflow (working directory โ†’ staging โ†’ commit โ†’ remote) and describe how LLMs generate text using token prediction
L3 โ€” ApplyCreate a GitHub repository, push code with proper commit messages, and write effective AI prompts using few-shot and chain-of-thought techniques
L4 โ€” AnalyzeCompare ChatGPT vs Claude vs Gemini for specific tasks and differentiate between good and poor prompts with reasoning
L5 โ€” EvaluateJustify the ethical use of AI in academic work and evaluate when AI-generated code is assistance vs plagiarism
L6 โ€” CreateDesign a complete developer profile strategy (GitHub README, HackerRank certifications, LeetCode plan) and build a portfolio on GitHub Pages
Section 3

Concept Explanations

Part A โ€” Version Control with Git & GitHub

3.1 What Is Version Control?

๐Ÿ“Œ Version Control โ€” Your Code's Time Machine

๐Ÿ“Œ WHAT IT IS

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 ANALOGY

Think 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 USE

Every 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

Repository (Repo) โ€” A folder tracked by Git. Contains your project files plus a hidden .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

๐Ÿ“Œ WHAT IT IS

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 WORKFLOW
PR 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.

Create your profile README. A special repository named exactly your GitHub username (e.g., 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

๐Ÿ“Œ WHAT IT IS

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
TypeWhat It Can DoStatusExample
Narrow AI (ANI)One specific task โ€” better than humans at itโœ… Exists todayGoogle Maps routing, Swiggy delivery prediction, Aadhaar face matching
General AI (AGI)Any intellectual task a human can doโณ Doesn't exist yetA system that can write code AND diagnose diseases AND compose music โ€” like a human
Super AI (ASI)Surpasses all human intelligence combinedโŒ HypotheticalScience fiction territory โ€” no clear path to building this
๐Ÿข REAL-LIFE AI IN INDIA
ApplicationCompanyHow AI Is Used
Face RecognitionUIDAI (Aadhaar)Matches your face against database of 1.4 billion for KYC
Fraud DetectionGoogle Pay / PhonePeDetects suspicious UPI transactions in real-time
Delivery PredictionSwiggy / ZomatoPredicts delivery time based on restaurant prep, traffic, weather
Credit ScoringCIBIL / ExperianML models calculate credit score from transaction history
Diagnostic AssistPracto / Qure.aiAI reads chest X-rays to detect tuberculosis with 95%+ accuracy
RecommendationYouTube / Spotify India"Suggested for you" feeds powered by deep learning models

3.5 Generative AI โ€” Creating, Not Just Analyzing

Generative AI โ€” AI systems that create new content (text, images, code, video, music) rather than just classifying or analyzing existing data. Powered by Large Language Models (LLMs) for text and Diffusion Models for images. The "AI revolution" of 2023-25 is primarily about generative AI.
Text Generation โ€” LLMs
ToolCompanyStrengthsLimitationsFree TierBest For
ChatGPT (GPT-4o)OpenAIBest all-rounder, largest user base, pluginsCan hallucinate, knowledge cutoff, expensive ProGPT-4o-mini freeGeneral tasks, coding, writing
ClaudeAnthropicLongest context (200K tokens), safest, best for long docsSmaller ecosystem, no image generationFree tier availableLong documents, analysis, safety
GeminiGoogleMultimodal (text+image+video), Google integrationNewer, smaller plugin ecosystemFree with Google accountResearch, multimodal tasks
Llama 3MetaOpen-source, can run locally, privacyNeeds powerful hardware locallyFully free (open source)Privacy-sensitive, custom deployment
MistralMistral AIEuropean, efficient, strong codingSmaller training data than GPT-4Free API tierCoding, European data compliance
Image, Video & Research Tools
CategoryToolsWhat They Do
Image GenerationDALL-E 3, Midjourney, Stable Diffusion, Adobe FireflyCreate 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 GenerationSora (OpenAI), Runway ML, Pika LabsGenerate 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 ToolsPerplexity AI, NotebookLM (Google), JenniAIPerplexity: 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

๐Ÿ“Œ WHAT IT IS

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 ANALOGY

Ordering 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

Explain Python
Explain Python's key advantages for a first-year B.Tech student with zero coding experience. Include 3 real-world examples from Indian companies and compare briefly with C.
Write code for sorting
Write a Python function that sorts a list of student dictionaries by marks in descending order using a lambda function. Include input/output examples and time complexity.
Help me with my resume
I'm a 2nd year B.Tech CSE student applying for summer internships at Indian startups. Review this resume bullet point and make it more impactful using the XYZ formula: "Worked on a Python project for data analysis."
What is RAID?
Act as a senior systems administrator at TCS. Explain RAID 5 vs RAID 6 to a junior engineer, using a hospital patient records scenario. Include a usable space calculation for 6 ร— 4 TB drives.
Debug my code
This Python code throws "IndexError: list index out of range" on line 15. The function is supposed to find the second largest element. Here's the full code: [paste code]. Explain WHY the error occurs and fix it.

Prompting Techniques

TechniqueWhat It IsExample
Zero-ShotAsk directly without examples"Translate 'How are you?' to Hindi"
Few-ShotProvide 2-3 examples before your actual question"Convert: cat โ†’ เคฌเคฟเคฒเฅเคฒเฅ€, dog โ†’ เค•เฅเคคเฅเคคเคพ, bird โ†’ ?"
Chain-of-ThoughtAsk the AI to reason step-by-step"Calculate RAID 5 usable space for 4 ร— 2TB. Show each step of your reasoning."
Role PromptingAssign a persona to the AI"You are a GATE CS examiner. Create 3 questions on process scheduling."
System PromptSet 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

ConcernIssueIndian Context
BiasAI models trained on biased data produce biased outputsAn AI hiring tool at an Indian IT company may discriminate against candidates from certain colleges or regions if trained on biased historical hiring data
DeepfakesAI-generated fake videos/audio of real peopleDeepfake videos of Indian politicians have circulated on WhatsApp during elections. Detection tools are improving but lagging behind creation tools
Academic IntegrityWhen 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?
CopyrightWho 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
EnvironmentTraining large AI models consumes massive energyTraining GPT-4 consumed an estimated 50 GWh โ€” equivalent to 5,000 Indian households' annual electricity usage. Every AI query has a carbon footprint
India's AI regulation landscape (2025): MEITY (Ministry of Electronics and IT) released advisory guidelines requiring AI platforms to label AI-generated content, prevent deepfakes, and ensure outputs don't violate Indian law. India is taking a "pro-innovation, guardrails-based" approach โ€” no blanket AI ban like some countries.

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 DoWhy It MattersHow
Create profile READMEFirst thing visitors see on your profileCreate repo named your-username, add README.md with skills, learning goals, stats
Pin 6 best repositoriesShowcases your best work immediatelyProfile โ†’ Customize โ†’ Pin repositories
Green contribution graph"Green squares = active developer" signal to recruitersCommit regularly โ€” even small changes count
Write good README.md filesShows communication skills, not just codingInclude: project description, screenshots, tech stack, how to run, future plans
HackerRank โ€” Certification & Hiring Tests
FeatureDetailsCareer Impact
Skill CertificationsFree certificates: Python, SQL, Java, Problem Solving, REST APIVisible on profile, shareable on LinkedIn. Recruiters filter by certifications.
Company TestsTCS NQT, Cognizant GenC, Capgemini, DXC โ€” all use HackerRankYour campus placement test might literally be on HackerRank. Practice here = practice for the real test.
BadgesGold/Silver/Bronze badges for each skill domainGold Python badge = you've solved 70+ Python challenges
LeetCode โ€” The Gold Standard for Coding Interviews
FeatureDetailsStrategy
Problem LevelsEasy (acceptance ~60%), Medium (~40%), Hard (~25%)Start with Easy, move to Medium by Sem 3. Hard for FAANG-level prep.
Company TagsProblems tagged by company: Amazon, Flipkart, Walmart, GoogleBefore 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
ContestsWeekly coding contests (Sunday)Participate even if you solve 1/4 problems โ€” rating system motivates improvement
Other Platforms
PlatformBest ForIndian Context
GeeksforGeeksStructured DSA learning, company-specific question banksMost popular in India. Free content covers 90% of placement topics. GFG Practice = daily DSA habit.
HackerEarthCompetitive programming, hackathons, company challengesIndian startups (Meesho, Swiggy, Razorpay) host hiring challenges on HackerEarth.
Stack OverflowQ&A, learning from real-world problemsReputation = credibility. Even lurking and learning from answers is a skill. Answer 10 good questions = shows expertise.
FigmaUI/UX design, wireframing, prototypingBrowser-based, free tier generous. Career path: UI/UX Designer avg โ‚น6-12 LPA fresher. Design your portfolio wireframe before coding it.
LinkedInProfessional networking, job applications95% of Indian tech recruiters use LinkedIn. Post your projects, certifications, learning journey. Connect with alumni.

Semester-by-Semester Profile Building Strategy

PhaseFocusDeliverables
Semester 1GitHub setup + HackerRank Python certGitHub profile README, 3 small repos (lab exercises), HackerRank Python Basic cert
Semester 2LeetCode Easy + GeeksforGeeks50 LeetCode Easy solved, GFG DSA self-paced practice, SQL HackerRank cert
Year 2LeetCode Medium + projects + open source100 LeetCode problems, 2 substantial GitHub projects (with README), first open-source contribution
Placement YearLinkedIn + portfolio + company-specific prepPortfolio website on GitHub Pages, LinkedIn optimized, Blind 75 complete, company-tagged problems
AI Coding Assistants โ€” GitHub Copilot, Cursor, Codeium, and Amazon CodeWhisperer can auto-complete code as you type. Ethical use in assignments: use them to LEARN (understand the suggestions), not to CHEAT (blindly submit). Companies increasingly expect you to know how to use AI assistants productively โ€” it's a skill, not a shortcut.
Section 4

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
DayActionDeliverable
1Setup: Create GitHub account, install Git, configure userProfile photo, bio, profile README with skills
2-3Push existing DSA solutions (organized by topic)Repo: dsa-solutions with folder structure (arrays/, trees/, dp/)
4-5Build a personal portfolio website (HTML/CSS/JS)Repo: portfolio, deployed on GitHub Pages
6-8Build a full-stack mini project (To-Do app / Weather dashboard)Repo with README: screenshots, tech stack, how to run
9-10Add a Python/Java project (e.g., file organizer, quiz app)Repo with clean code, comments, README
11-12Earn HackerRank certifications (Python Basic + SQL Basic)Certificates linked on GitHub profile
13Polish: Pin 6 repos, add contribution graph, write consistent commit messagesPolished profile page
14LinkedIn post: "Here's what I built this month" โ€” share GitHub linkPublic 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
CriterionPerplexity AIChatGPT (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 forFinding papers, initial literature surveySynthesizing ideas, drafting sectionsDeeply 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:

  1. Never push directly to main โ€” enable branch protection on GitHub
  2. Create feature branches: git checkout -b feature/user-dashboard
  3. Open PR to merge into develop โ€” requires 1 code review approval
  4. Weekly: merge develop โ†’ main via PR with full team review
  5. .gitignore: exclude node_modules/, .env, build artifacts
  6. Commit message format: "feat: add user login", "fix: resolve payment timeout", "docs: update README"
Section 5

Lab Exercises

Exercise 1: Your First GitHub Repository

โฑ 40 minutes๐ŸŸข Beginner

Objective: Create a GitHub account, initialize a repo, and push your first commit.

Task:

  1. Create a GitHub account at github.com (use a professional username โ€” not coolboy2005)
  2. Install Git on your machine. Verify: git --version
  3. Configure: git config --global user.name "Your Name" and user.email
  4. Create a folder hello-world, run git init
  5. Create README.md with your name and a one-line project description
  6. Run: git add . โ†’ git commit -m "Initial commit: add README"
  7. Create a repo on GitHub, link it: git remote add origin <url>
  8. 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

โฑ 35 minutes๐ŸŸก Intermediate

Objective: Build a professional GitHub profile page using a special README repository.

Task:

  1. Create a new repo with the same name as your GitHub username
  2. Add a README.md with: greeting banner, about you section, current learning (skills you're building), tech stack (icons/badges), GitHub stats widget, and links (LinkedIn, portfolio)
  3. Use Markdown formatting: headers, bullet points, badges (shields.io), and embedded images
  4. 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

โฑ 60 minutes๐ŸŸก Intermediate

Objective: Complete the HackerRank Python (Basic) certification test.

Task:

  1. Create a HackerRank account at hackerrank.com
  2. Practice: Solve 10 Python challenges in the "Python" domain (start with Easy)
  3. Take the Python (Basic) certification test (free, 90 minutes, 2 questions)
  4. If you pass, download the certificate and add it to your LinkedIn
  5. 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

โฑ 45 minutes๐ŸŸข Beginner

Objective: Write the same task as 5 different prompts and compare AI output quality.

Task:

  1. Choose a creative task: "Explain the concept of recursion to a first-year student"
  2. 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
  3. Submit each to the same AI tool (ChatGPT, Claude, or Gemini)
  4. Create a comparison table: Prompt text | Output quality (1-5) | Length | Accuracy | Usefulness
  5. 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

โฑ 90 minutes๐Ÿ”ด Advanced

Objective: Build and deploy a personal portfolio website accessible at yourusername.github.io

Task:

  1. Create a new repo named yourusername.github.io
  2. Build a portfolio with: About section, Skills, Projects (3+), Education, Contact
  3. Use HTML, CSS, and optional JavaScript. Make it responsive.
  4. Push to GitHub and enable GitHub Pages (Settings โ†’ Pages โ†’ Source: main branch)
  5. 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).

Section 6

MCQ Assessment Bank โ€” 15 Questions

Hover over any question to reveal the answer.

Q1

What does git add . do?

  1. Commits all changes
  2. Stages all modified and new files in the current directory for the next commit
  3. Pushes code to GitHub
  4. Creates a new branch
โœ… B. 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.
L1 โ€” RememberGit
Q2

Which of the following is an example of Narrow AI (ANI)?

  1. A robot that can cook, drive, write poetry, and diagnose diseases
  2. Google Maps calculating the fastest route based on real-time traffic
  3. A computer that is smarter than all humans combined
  4. An AI that passed every university exam in every subject
โœ… B. Narrow AI excels at ONE specific task. Google Maps uses ML to predict traffic and optimize routes โ€” but it can't write an essay or diagnose a disease. AGI (option A, D) and ASI (option C) don't exist yet.
๐Ÿข All commercial AI in 2025 is narrow AI: Swiggy delivery, Google Pay fraud detection, YouTube recommendations.
L1 โ€” RememberAI
Q3

What should NEVER be committed to a Git repository?

  1. README.md
  2. Source code files (.py, .js, .java)
  3. .env files containing API keys and database passwords
  4. Configuration files like package.json
โœ… C. .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.
L1 โ€” RememberSecurity
Q4

Why is the staging area (index) a useful concept in Git?

  1. It makes Git slower and more complex
  2. It allows you to selectively choose which changes to include in a commit, enabling clean, focused commit history
  3. It's required by GitHub but not by Git
  4. It automatically writes commit messages
โœ… B. The staging area lets you craft precise commits. If you changed 5 files but only 2 are related to "fix login bug", you stage only those 2: 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.
L2 โ€” UnderstandGit
Q5

What makes Generative AI different from traditional AI?

  1. Generative AI is faster
  2. Generative AI creates NEW content (text, images, code) while traditional AI classifies, predicts, or analyzes existing data
  3. Traditional AI doesn't use neural networks
  4. Generative AI doesn't need training data
โœ… B. Traditional AI: spam filter (classifies email), recommendation engine (predicts preference). Generative AI: ChatGPT (creates new text), DALL-E (creates new images), Copilot (creates new code). The key word is creates vs classifies.
๐Ÿข Companies like CRED and Swiggy use traditional AI for recommendations and generative AI for marketing copy and customer support chatbots.
L2 โ€” UnderstandAI
Q6

Why does a "few-shot" prompt produce better results than a "zero-shot" prompt?

  1. Few-shot prompts use more computing power
  2. Providing examples helps the AI understand the exact format, style, and quality expected in the output
  3. Zero-shot prompts are always wrong
  4. Few-shot prompts bypass the AI's content filters
โœ… B. Examples demonstrate the pattern you want. "Translate: cat โ†’ เคฌเคฟเคฒเฅเคฒเฅ€, dog โ†’ เค•เฅเคคเฅเคคเคพ, bird โ†’ ?" gives the AI a clear format to follow. Without examples (zero-shot), the AI must guess your intent, format, and level of detail โ€” leading to inconsistent results.
๐Ÿข Prompt engineering is now a job title โ€” companies hire "AI prompt engineers" at โ‚น15-30 LPA to optimize AI tool usage.
L2 โ€” UnderstandPrompts
Q7

You've made changes to 3 files but want to commit only payment.py. Which sequence is correct?

  1. git commit -m "fix payment"
  2. git add payment.py then git commit -m "fix: resolve payment timeout bug"
  3. git push payment.py
  4. git add . then git commit -m "fix payment"
โœ… B. Stage only the specific file (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.
L3 โ€” ApplyGit
Q8

Which prompt technique is MOST effective for getting an AI to solve a complex math problem step-by-step?

  1. Zero-shot: "Solve this problem"
  2. Role prompting: "You are a math teacher"
  3. Chain-of-thought: "Solve this step by step, showing all intermediate calculations and reasoning"
  4. Few-shot: "Here's an example of a solved problem"
โœ… C. Chain-of-thought โ€” Asking the AI to "think step by step" forces it to show intermediate reasoning, significantly improving accuracy on math, logic, and multi-step problems. Research shows CoT prompting improves GPT-4's math accuracy from 57% to 87% on complex problems.
๐Ÿข Chain-of-thought is the most impactful prompting technique for technical and analytical tasks.
L3 โ€” ApplyPrompts
Q9

A student wants to showcase their Python skills to recruiters. Which combination of actions is MOST effective?

  1. Only solve 500 LeetCode problems
  2. Only build a beautiful portfolio website
  3. Push 3 well-documented Python projects to GitHub + earn HackerRank Python certification + solve 50 LeetCode Easy problems
  4. Only create a LinkedIn profile
โœ… C. A balanced approach: GitHub projects prove you can BUILD, HackerRank certification proves you can SOLVE, LeetCode proves you can THINK algorithmically. No single platform is enough. Recruiters check GitHub (can they code?), HackerRank (do they have certifications?), and LeetCode (can they handle technical interviews?).
๐Ÿข This is the exact profile-building strategy recommended by TCS iON and Infosys InfyTQ career guides.
L3 โ€” ApplyProfiles
Q10

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?

  1. Tool A โ€” longer output means better quality
  2. Tool B โ€” verifiable citations are essential for academic integrity; hallucinated citations undermine research credibility entirely
  3. Both are equally reliable
  4. Neither โ€” AI should never be used for research
โœ… B. AI "hallucination" (generating plausible-sounding but false information) is a critical problem. In academic work, a single fake citation can invalidate your entire paper. Tool B (like Perplexity AI) with verifiable sources is far more reliable. Always verify AI citations independently. This is why NotebookLM (grounded in YOUR uploaded documents) is preferred for research.
๐Ÿข IITs and NITs are updating academic integrity policies to address AI hallucination in student submissions.
L4 โ€” AnalyzeAI Ethics
Q11

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?

  1. Using a bigger monitor
  2. Branch protection rules requiring PR reviews and CI tests before merging to main
  3. Deleting Git history weekly
  4. Giving only the team lead push access
โœ… B. Branch protection rules on GitHub prevent direct pushes to 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.
L4 โ€” AnalyzeGit Workflow
Q12

A student uses ChatGPT to generate their entire programming assignment and submits it as their own work. Is this ethical?

  1. Yes โ€” AI is just another tool like a calculator
  2. 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
  3. Yes โ€” if the professor didn't explicitly ban AI
  4. Depends on whether the code is correct
โœ… B. The purpose of assignments is learning through practice. Using AI to generate complete solutions bypasses the learning process โ€” you haven't developed the skill. Ethical AI use: understand concepts WITH AI help, then write code yourself. Unethical: copy-paste AI output. Analogy: using a calculator to check your mental math = fine. Using it instead of learning multiplication = defeats the purpose.
๐Ÿข 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.
L5 โ€” EvaluateAI Ethics
Q13

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?

  1. ChatGPT โ€” more powerful model
  2. 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
  3. Neither โ€” AI shouldn't handle financial data
  4. Both simultaneously for redundancy
โœ… B. For financial data: (1) Sending customer data to OpenAI's API may violate RBI data localization guidelines. (2) Self-hosting Llama 3 keeps data within the company's infrastructure. (3) Open-source allows fine-tuning on domain-specific data. (4) No per-query API costs at scale. ChatGPT is more powerful out-of-the-box, but data sovereignty and compliance take priority for financial services.
๐Ÿข Indian banks and NBFCs (Razorpay, PhonePe) increasingly self-host AI models due to RBI data localization requirements.
L5 โ€” EvaluateAI Deployment
Q14

Design a 3-month GitHub contribution plan for a first-year B.Tech student with ZERO coding experience, targeting campus placements.

  1. Only fork popular repos to show activity
  2. 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
  3. Copy-paste code from tutorials without modification
  4. Wait until 3rd year to start
โœ… B. A progressive plan: foundational skills (Month 1) โ†’ applied projects (Month 2) โ†’ public identity (Month 3). Forking repos without contribution (A) shows no real skill. Copy-pasting (C) doesn't demonstrate understanding. Waiting (D) wastes 2 years of potential profile building. Consistency matters more than volume โ€” 1 commit per day beats 50 commits in one day.
๐Ÿข Recruiters check commit frequency and consistency. A 90-day streak of daily commits signals discipline and passion.
L6 โ€” CreateStrategy
Q15

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?

  1. "Help me with GATE"
  2. "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."
  3. "What topics come in GATE?"
  4. "Make a GATE plan for me"
โœ… B. This prompt uses multiple techniques: (1) Role prompting ("You are a GATE topper"), (2) Specific constraints (6-month, working professional, 2026), (3) Detailed output requirements (weekly schedule, resources, mock tests), (4) Format specification (weekly table), (5) Prioritization instruction (by weightage). Options A, C, D are vague and will produce generic, unhelpful responses.
๐Ÿข This level of prompt crafting is what makes AI tools 10ร— more useful โ€” and it's a skill employers increasingly value.
L6 โ€” CreatePrompts
Section 7

Chapter Summary

VERSION CONTROL, AI & PROFILES โ”‚ โ”œโ”€โ”€ PART A: GIT & GITHUB โ”‚ โ”œโ”€โ”€ Version Control โ€” tracking changes over time โ”‚ โ”œโ”€โ”€ Git vs GitHub โ€” local tool vs cloud platform โ”‚ โ”œโ”€โ”€ Core Workflow โ”‚ โ”‚ โ”œโ”€โ”€ git init โ†’ git add โ†’ git commit โ†’ git push โ”‚ โ”‚ โ”œโ”€โ”€ git branch โ†’ git checkout โ†’ git merge โ”‚ โ”‚ โ”œโ”€โ”€ git clone โ†’ git pull โ†’ git stash โ”‚ โ”‚ โ””โ”€โ”€ .gitignore โ€” exclude secrets & build files โ”‚ โ”œโ”€โ”€ GitHub Features โ”‚ โ”‚ โ”œโ”€โ”€ Pull Requests โ€” team code review workflow โ”‚ โ”‚ โ”œโ”€โ”€ Branch Protection โ€” prevent direct pushes to main โ”‚ โ”‚ โ”œโ”€โ”€ GitHub Pages โ€” free static site hosting โ”‚ โ”‚ โ””โ”€โ”€ Profile README โ€” your public developer identity โ”‚ โ””โ”€โ”€ Industry Standard โ€” 100M+ devs, required at every company โ”‚ โ”œโ”€โ”€ PART B: AI TRENDS โ”‚ โ”œโ”€โ”€ AI Types: Narrow (exists) โ†’ General โ†’ Super (hypothetical) โ”‚ โ”œโ”€โ”€ Indian AI: Aadhaar, Google Pay fraud, Swiggy, CIBIL โ”‚ โ”œโ”€โ”€ Generative AI โ”‚ โ”‚ โ”œโ”€โ”€ Text: ChatGPT, Claude, Gemini, Llama, Mistral โ”‚ โ”‚ โ”œโ”€โ”€ Image: DALL-E 3, Midjourney, Stable Diffusion โ”‚ โ”‚ โ”œโ”€โ”€ Video: Sora, Runway ML, Pika Labs โ”‚ โ”‚ โ””โ”€โ”€ Research: Perplexity, NotebookLM, JenniAI โ”‚ โ”œโ”€โ”€ Prompt Engineering โ”‚ โ”‚ โ”œโ”€โ”€ Zero-shot โ†’ Few-shot โ†’ Chain-of-thought โ”‚ โ”‚ โ”œโ”€โ”€ Role prompting โ†’ System prompts โ”‚ โ”‚ โ””โ”€โ”€ Quality of input = quality of output โ”‚ โ””โ”€โ”€ Ethics: Bias, deepfakes, academic integrity, copyright โ”‚ โ””โ”€โ”€ PART C: DEVELOPER PROFILES โ”œโ”€โ”€ GitHub โ€” code portfolio, green squares, README โ”œโ”€โ”€ HackerRank โ€” certifications (Python, SQL, Java) โ”œโ”€โ”€ LeetCode โ€” interview prep (LeetCode 75, Blind 75) โ”œโ”€โ”€ GeeksforGeeks โ€” DSA learning path โ”œโ”€โ”€ HackerEarth โ€” hackathons, company challenges โ”œโ”€โ”€ Stack Overflow โ€” reputation, Q&A credibility โ”œโ”€โ”€ Figma โ€” UI/UX design skills โ”œโ”€โ”€ LinkedIn โ€” professional networking ๐Ÿ†• โ””โ”€โ”€ Strategy: Sem1 (GitHub) โ†’ Sem2 (LeetCode) โ†’ Year2 (projects) โ†’ Placement (polish)

๐ŸŽฏ 3 Things Industry Expects You to Know

  1. Git workflow โ€” init, add, commit, push, branch, merge, PR. You WILL use this on day 1 at any tech job.
  2. AI literacy โ€” Know what generative AI can and can't do. Write effective prompts. Understand ethical boundaries.
  3. 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.
Section 8

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.