0% found this document useful (0 votes)
3 views2 pages

Java Basics and Programming Tasks Guide

The document outlines a test for a Web Development course focused on Java, scheduled for December 8, 2025. It consists of four tasks covering Java basics, comments and variables, data types, and mixed concepts, each requiring explanations, code writing, and practical applications. The test aims to assess students' understanding of Java programming fundamentals and their ability to implement concepts in code.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views2 pages

Java Basics and Programming Tasks Guide

The document outlines a test for a Web Development course focused on Java, scheduled for December 8, 2025. It consists of four tasks covering Java basics, comments and variables, data types, and mixed concepts, each requiring explanations, code writing, and practical applications. The test aims to assess students' understanding of Java programming fundamentals and their ability to implement concepts in code.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Ansari Computer Academy

Course Title: Web Development Test: Java Web


Language
Date: 8-December,2025 Time: 40 mints Total Marks: 32

Task 1 — Java Basics


1. Explain what Java is and write three major features of Java.
2. Write the basic structure of a Java program (class + main method).
3. Explain the difference between print and println.
4. Write a Java program that prints the following three lines:
Welcome to Java!
Java is powerful
Learning Java step by step

Task 2 — Comments + Variables Practice


(Topics Covered: Java Comments, Variables, Output)
1. Write the two types of Java comments with examples (single-line, multi-
line).
2. Create five different variables using these data types:
String, int, double, char, Boolean
3. Write the purpose of each variable type in simple words.
4. Write a Java program that:
Includes comments
Defines these variables
Prints their values

Task 3 — Data Types + Variables Practical Task


(Topics Covered: Data Types, Variables, Syntax)
1. Write the list of primitive and non-primitive data types in Java.
2. Give one example each for:
Int, float, double, boo lean, char.
3. Write a Java program that stores this data:
Student Name (String), Age (int), GPA (double), Grade (char), Is Passed
(Boolean).
4. Print all the information in output.

Task 4 — Mixed Concepts (Full Revision Task)


1. Write five advantages of Java.
2. Explain why class and main method are important in Java.
3. Write a Java program that:
Uses at least six variables
Has a comment above every line explaining what that line does
Prints all values in a neat formatted output
4. Write a short paragraph explaining what you learned from this task.

You might also like