Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Unit 1: Database Concepts
Library tables used in the questions
Primary keys: MEMBER.Member_ID, BOOK.Book_ID, ISSUE.Issue_ID. Foreign keys: ISSUE.Book_ID → BOOK.Book_ID, ISSUE.Member_ID → MEMBER.Member_ID. Every output shown in the answers was produced by running the query on these rows.
MEMBER
| Member_ID | Name | Class | City |
|---|---|---|---|
| M01 | Aarav Mehta | 12 | Pune |
| M02 | Diya Shah | 11 | Akola |
| M03 | Kabir Singh | 12 | Nagpur |
| M04 | Meera Iyer | 12 | Pune |
| M05 | Rohan Das | 10 | Akola |
| M06 | Sana Khan | 11 | NULL |
BOOK
| Book_ID | Title | Author | Category | Price | Copies |
|---|---|---|---|---|---|
| 101 | Wings of Fire | A P J Abdul Kalam | Biography | 350.00 | 4 |
| 102 | The Discovery of India | Jawaharlal Nehru | History | 499.00 | 2 |
| 103 | Let Us C | Yashavant Kanetkar | Computer | 420.00 | 5 |
| 104 | Head First Java | Kathy Sierra | Computer | 650.00 | 3 |
| 105 | Malgudi Days | R K Narayan | Fiction | 250.00 | 6 |
| 106 | Train to Pakistan | Khushwant Singh | Fiction | 299.00 | 2 |
| 107 | India After Gandhi | Ramachandra Guha | History | 899.00 | 1 |
| 108 | Database Systems | Ramez Elmasri | Computer | 780.00 | NULL |
ISSUE
| Issue_ID | Book_ID | Member_ID | Issue_Date | Return_Date |
|---|---|---|---|---|
| 1 | 103 | M01 | 2026-07-01 | 2026-07-10 |
| 2 | 105 | M02 | 2026-07-03 | 2026-07-12 |
| 3 | 104 | M01 | 2026-07-15 | NULL |
| 4 | 101 | M03 | 2026-07-18 | 2026-07-25 |
| 5 | 103 | M04 | 2026-07-20 | NULL |
| 6 | 107 | M03 | 2026-08-02 | NULL |
| 7 | 105 | M05 | 2026-08-05 | 2026-08-09 |
| 8 | 103 | M02 | 2026-08-10 | NULL |
Short answer questions (2 marks)
Answer in 30–50 words or two points. Write your answer first, then open the model answer.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Long answer questions (4 marks)
Answer in 80–120 words, four points, or a full query/program as asked. Write your answer first, then open the model answer.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Unit 2: Operating Web
Short answer questions (2 marks)
Answer in 30–50 words or two points. Write your answer first, then open the model answer.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Long answer questions (4 marks)
Answer in 80–120 words, four points, or a full query/program as asked. Write your answer first, then open the model answer.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Unit 3: Fundamentals of Java Programming
Short answer questions (2 marks)
Answer in 30–50 words or two points. Write your answer first, then open the model answer.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
System.out.print("Hello");
System.out.println("World");
System.out.println("Java");Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
String first = "Mayank";
char mid = 'M';
String last = "Saxena";
System.out.println(first + " " + mid + " " + last);Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
int x = 5;
int y = x++;
int z = ++x;
System.out.println(x + " " + y + " " + z);Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
double percentage = 38.5;
if (percentage >= 40)
System.out.println("PASSED");
else
System.out.println("FAILED");Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
for (int count = 1; count <= 20; count = count + 5)
System.out.print(count + " ");Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
int number = 1;
while (number <= 5) {
System.out.println(number * number);
}Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
int x = 1;
while (x <= 5);
x = x + 1;Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
double[] marks = new double[5];
for (int i = 0; i <= 5; i++)
System.out.print(marks[i] + " ");Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
int[] a = {10, 20, 30, 40};
a[2] = a[0] + a[3];
System.out.println(a[2] + " " + a.length);Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
String s = "Hello World";
System.out.println(s.replace('l', '*'));
System.out.println(s.equalsIgnoreCase("hello world"));Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
System.out.println(10.0 / 0);
System.out.println(10 / 0);Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Long answer questions (4 marks)
Answer in 80–120 words, four points, or a full query/program as asked. Write your answer first, then open the model answer.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
public class Demo {
public static void Main(String[] args) {
system.out.println("Hi")
}
}Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
int n = 17;
System.out.println(n / 5);
System.out.println(n % 5);
System.out.println(n / 5.0);
System.out.println("Sum" + 2 + 3);
System.out.println(2 + 3 + "Sum");Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
if (percentage >= 40) {
System.out.println("PASSED");
if (percentage >= 75) {
System.out.println("With Distinction!");
}
} else {
System.out.println("FAILED");
}Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
int choice = 2;
switch (choice) {
case 1: System.out.println("Tea");
case 2: System.out.println("Coffee");
case 3: System.out.println("Juice");
default: System.out.println("Water");
}Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
if (grade == 'A') System.out.println("Excellent");
else if (grade == 'B') System.out.println("Good");
else if (grade == 'C') System.out.println("Average");
else System.out.println("Invalid");Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
int number = 6;
while (number <= 5) {
System.out.println("Square of " + number + " = " + number * number);
++number;
}
int n = 6;
do {
System.out.println("Square of " + n + " = " + n * n);
++n;
} while (n <= 5);Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
for (int c = 5; c <= 1; c++)
System.out.println("A");
for (int c = 1; c <= 3; c++);
{
System.out.println("B");
}
for (int x = 0, y = 10; x < 3; x++, y--)
System.out.println(x + " " + y);Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
for (int count = 1; count < 5; count++) {
System.out.println(count);
}
System.out.println("Printed " + count);Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
int[] a = {3, 6, 9, 12, 15};
int s = 0;
for (int i = a.length - 1; i >= 0; i--) {
if (a[i] % 2 == 0) s += a[i];
else System.out.print(a[i] + " ");
}
System.out.println();
System.out.println("s = " + s);Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
public class Calls {
static void print_message(String message) {
System.out.println("The message is: " + message);
}
static int square(int x) {
x = x * x;
return x;
}
public static void main(String[] args) {
int n = 4;
print_message("Hi");
int s = square(n);
System.out.println(n + " " + s);
}
}Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
class Student {
private String name;
private int marks;
void Student(String n, int m) {
name = n; marks = m;
}
}
// in main:
Student s = new Student("Asha", 88);
System.out.println(s.marks);Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
String s = "Information Technology";
System.out.println(s.toUpperCase());
System.out.println(s.indexOf("Tech"));
System.out.println(s.contains("form"));
System.out.println(s.concat(" 802"));
System.out.println(s.replace("Information", "Info"));Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
int[] a = {5, 10, 15};
try {
System.out.println("Start");
System.out.println(a[3]);
System.out.println("End");
} catch (ArrayIndexOutOfBoundsException e) {
System.out.println("Index problem");
} catch (Exception e) {
System.out.println("Other problem");
} finally {
System.out.println("Done");
}Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
int age = 15;
try {
assert age >= 18 : "Age not Valid";
System.out.println("Eligible");
} catch (AssertionError e) {
System.out.println("Caught: " + e.getMessage());
}Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Unit 4: Work Integrated Learning IT–DMA
XYZ Shopping Website case study: tables
Questions tagged [XYZ Shopping case study] refer to these tables from section 4.3. Primary keys are underlined; → marks a foreign key. ORDER is a reserved word in SQL, so model answers name that table ORDERS.
| CATEGORY | Category_id, Name, Description |
|---|---|
| PRODUCT | Product_id, Name, Category_id → CATEGORY, Price, Quantity, Discount, Brand, Color, Size, Seller_id → SELLER, Description |
| CUSTOMER | Customer_id, Password, First_name, Last_name, Address, Email_id, Contact_num |
| SELLER | Seller_id, Rating |
| WISH_LIST | Customer_id → CUSTOMER, Product_id → PRODUCT (composite key) |
| ORDER | Order_id, Customer_id → CUSTOMER, Product_id → PRODUCT, Shipment_id → SHIPMENT, Order_date, Current_status |
| SHIPMENT | Shipment_id, Details, Shipment_date |
| PAYMENT | Payment_id, Order_id → ORDER, Payment_amount, Payment_date, Mode |
Short answer questions (2 marks)
Answer in 30–50 words or two points. Write your answer first, then open the model answer.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Long answer questions (4 marks)
Answer in 80–120 words, four points, or a full query/program as asked. Write your answer first, then open the model answer.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
Sign in to see the model answer. Model answers and marking schemes are free for signed-in students.
No questions match this filter. Choose another topic or type.