🧠 Day 3 Java Quiz
Day 3 of #30DaysOfJava
How a Java Program Actually Executes (Step by Step)
Many beginners write their first Java program, see the output, and move on.
But in interviews, one question comes up agai...
🧠 Day 3 Java Quiz
Day 3 of #30DaysOfJava
How a Java Program Actually Executes (Step by Step)
Many beginners write their first Java program, see the output, and move on.
But in interviews, one question comes up agai...
Top Performers
No scores yet
Be the first to complete this quiz!
Before You Start
Here's the quick read on timing, scoring, and what the attempt will feel like once you begin.
6 minutes
6 total
60% required
No negative marking
Move between questions with the grid
What to expect
- You have 6 minutes to complete this quiz.
- The quiz contains 6 questions.
- You need 60% or higher to pass.
- You can navigate between questions using the question grid.
- The timer cannot be paused once the quiz starts.
More mock tests by @swati_goyal_911
If you want another run from this creator, these are the next public mock tests worth opening.
🧠 Day 1 Java Quiz: Test Your Basics
Day 1 of #30DaysOfJava What is Java and Why It’s Still Relevant in 2026? If you’re starting your Java journey, the first question is obvious: Why Java, even in 2026? With so many new languages and frameworks coming up every year, Java still continues to be one of the most widely used and trusted programming languages in the world. Let’s break it down. 🌟 What is Java? Java is a high-level, object-oriented, platform-independent programming language developed by Sun Microsystems (now owned by Oracle). The biggest strength of Java is its “Write Once, Run Anywhere” principle. This means: Java code is compiled into bytecode Bytecode runs on the JVM (Java Virtual Machine) The same program works on Windows, macOS, Linux, or servers without changes 🧠 Why Java Is Still Relevant in 2026 Despite being over two decades old, Java is still everywhere: 1️⃣ Enterprise & Backend Development Most large-scale applications in: Banking FinTech E-commerce Insurance are still powered by Java (Spring Boot, Microservices). 2️⃣ Strong Job Market Java consistently appears in top-paying tech skills lists due to: Huge existing codebases Continuous demand for maintenance + new features 3️⃣ Android & Beyond While Kotlin is popular, Java is still deeply embedded in Android ecosystems and legacy apps. 4️⃣ Massive Ecosystem Java has: Powerful frameworks (Spring, Hibernate) Excellent tooling Strong community support 🚀 Who Should Learn Java? Java is a great choice if you are: Preparing for tech interviews Targeting backend roles Learning DSA Looking for a stable long-term skill 💡 Final Thought Java may not always be trendy, but it is reliable, scalable, and battle-tested. That’s why companies trust it — and why developers still learn it.
🧠 Day 6 Java Quiz: Conditional Statements in Java ☕
☕ Java Day 6 – Control Flow in Java ---------------------------------- Topic: Conditional Statements (if, else, switch) 🧠 Programs become powerful when they can make decisions. In Java, this is done using conditional statements. Let’s understand how Java decides “what to execute and when” 👇 ---------------------------------- 🔹 What Are Conditional Statements? Conditional statements allow a program to execute different blocks of code based on conditions (true or false). They help Java programs: - Make decisions - Handle multiple scenarios - Control execution flow ---------------------------------- 🔹 if Statement Used when you want to execute code only if a condition is true. Example: if (age >= 18) { System.out.println("Eligible to vote"); } If the condition is false, the block is skipped. ---------------------------------- 🔹 if-else Statement Used when you want an alternative execution path. Example: if (marks >= 40) { System.out.println("Pass"); } else { System.out.println("Fail"); } Only ONE block executes. ---------------------------------- 🔹 if-else-if Ladder Used when multiple conditions need to be checked. Example: if (score >= 90) { System.out.println("Grade A"); } else if (score >= 75) { System.out.println("Grade B"); } else { System.out.println("Grade C"); } Java checks conditions from top to bottom. ---------------------------------- 🔹 switch Statement Used when multiple fixed values are compared with one variable. Example: switch(day) { case 1: System.out.println("Monday"); break; case 2: System.out.println("Tuesday"); break; default: System.out.println("Invalid Day"); } Best for menu-driven programs and readable logic. ---------------------------------- ⚠️ Important Notes: - Conditions must return boolean values - switch works well with int, char, String, enum - break prevents fall-through in switch ---------------------------------- 💡 Real-World Example: - Login validation - Grade calculation - Menu selection - Feature toggles ---------------------------------- 🎯 Key Takeaway: Control statements allow Java programs to THINK and DECIDE.
🧠 Day 6 Agentic AI Quiz: Tools and Tool-Calling in Agentic AI 🔧
🤖 Day 6 of Agentic AI Series ---------------------------- Tools and Tool-Calling in Agentic AI 🔧 An AI agent becomes truly powerful when it can DO things, not just talk. This is where tools and tool-calling come into play. Let’s understand how tools work in Agentic AI 👇 🧠 What Are Tools in Agentic AI? Tools are external functions or systems that an AI agent can use to perform actions beyond text generation. Examples of tools: - APIs - Databases - Search engines - Code execution - File systems Tools allow agents to interact with the real world. 🔗 What Is Tool-Calling? Tool-calling is the process where an AI agent: - Understands the task - Chooses the right tool - Sends correct inputs to the tool - Receives the output - Uses the result to decide the next step This happens automatically inside the agent loop. 🔄 Agent Loop with Tools Goal → Plan → Choose Tool → Execute Tool → Observe Result → Update Plan This loop makes the agent action-oriented. 📌 Example: Customer Support Agent Goal: Resolve a refund request Steps: 1. Read user query 2. Fetch order details using API 3. Check refund eligibility 4. Initiate refund via payment service 5. Confirm with the user Without tools, this agent could only reply — not resolve. ⚠️ Challenges with Tool-Calling - Incorrect tool selection - Invalid inputs - API failures - Security and permission issues Modern systems use validation, retries, guardrails, and human approval. 💡 Why Tools Matter Tool-enabled agents can: - Automate workflows - Perform real business actions - Reduce manual effort - Scale intelligent operations
🧠 Day 5 Agentic AI Quiz: Memory Types in Agentic AI 🧠
🤖 Day 5 of Agentic AI Series ---------------------------- Memory Types in Agentic AI 🧠 An AI agent is only as good as what it remembers. Memory is what allows agents to learn, adapt, and improve over time. Let’s understand the different types of memory in Agentic AI 👇 🧠 What Is Memory in Agentic AI? Memory enables an AI agent to: - Remember past interactions - Retain important context - Avoid repeating mistakes - Personalize future actions Without memory, agents behave like stateless chatbots. 🔹 Types of Memory in Agentic AI 1️⃣ Short-Term Memory - Stores recent conversations or actions - Exists only during the current session - Limited in size Example: Remembering the user’s last question or task in progress. 2️⃣ Long-Term Memory - Stores information across sessions - Helps the agent learn over time - Used for personalization and history Example: User preferences, previous project details, or recurring tasks. 3️⃣ Episodic Memory - Stores past experiences as events - Helps agents recall what happened and when - Useful for reasoning and learning Example: “Last time the API failed at step 3, retry with a different approach.” 4️⃣ Semantic Memory - Stores facts, rules, and knowledge - Independent of specific experiences - Used for decision-making Example: Knowing that an API requires authentication. 🔄 How Memory Works with Planning Memory feeds into planning by: - Providing context - Informing decisions - Improving action selection Better memory = smarter plans. ⚠️ Challenges with Memory - Storing irrelevant data - Forgetting important context - Memory size and cost - Data privacy concerns Modern agents use filtering, summarization, and vector databases to manage memory efficiently. 💡 Real-World Use Cases - Personal AI assistants - Customer support bots - Autonomous workflow agents - Recommendation systems
