Mock Test
Medium

🧠 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...

5Questions6Minutes60%To Pass0Attempts

Share

Top Performers

ArkCoder

0m 54s

60%

curiousdevlabs

0m 25s

40%

Before You Start

Here's the quick read on timing, scoring, and what the attempt will feel like once you begin.

Duration

6 minutes

Questions

5 total

Pass score

60% required

Marking

No negative marking

During the test

Move between questions with the grid

What to expect

  • You have 6 minutes to complete this quiz.
  • The quiz contains 5 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 From This Creator

More mock tests by @swati_goyal_911

If you want another run from this creator, these are the next public mock tests worth opening.

Java
easy

🧠 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.

6 questions
Java
easy

🧠 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 again and again: πŸ‘‰ β€œWhat happens when you run a Java program?” Let’s break it down step by step, without jargon. 🧩 Step 1: Writing the Source Code You write code in a file with a .java extension. Example: public class Hello { public static void main(String[] args) { System.out.println("Hello Java"); } } This is human-readable source code. πŸ”¨ Step 2: Compilation (javac) The Java compiler (javac) converts: Hello.java β†’ Hello.class The .class file contains bytecode Bytecode is not machine-specific ⚠️ If there’s a syntax error, compilation fails here. βš™οΈ Step 3: Class Loading When you run the program: java Hello The Class Loader: Loads required .class files Loads standard Java libraries 🧠 Step 4: Bytecode Verification Before execution, JVM verifies bytecode to ensure: No illegal memory access No security violations Code follows Java rules This makes Java secure by design. πŸ”„ Step 5: Execution JVM executes bytecode using: Interpreter (executes line by line) JIT Compiler (optimizes frequently used code) πŸ‘‰ This is why Java becomes faster over time. πŸ—‘οΈ Step 6: Garbage Collection JVM automatically: Allocates memory Removes unused objects Frees memory without manual intervention πŸ“Œ One-Line Flow Summary .java β†’ javac β†’ .class β†’ Class Loader β†’ Bytecode Verifier β†’ JVM β†’ Output πŸ’‘ Interview Tip If asked: β€œIs Java compiled or interpreted?” Best answer: πŸ‘‰ Java is both compiled and interpreted.

6 questions
Agentic AI
easy

🧠 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

5 questions
Agentic AI
easy

🧠 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

5 questions