IT SQP For TERM1 CLASS 12 2024
IT SQP For TERM1 CLASS 12 2024
IT SQP For TERM1 CLASS 12 2024
Q. 8 Access Modifiers : Data members of a class can be accessed from outside the class 2
by default.
Four types : Private ,Protected,Public,Friendly
(int i = 0; i < 5; )
{
(”Yes”);
}
for i++
System.out.println
Q.16 a. Rina wants to display the details of employee whose name starts from s. 1+2
Find errors in given MySQL command and write the correct statement.
select* from employee where name like *s;
b. Classify them into DDL or DML
commands Update, delete, create , alter
a. select* from employee where name like ‘s%’;
b. Update- DML Delete- DML Create-DDL Alter-
DDL
Q.18 What is an array? Write java statements to store marks of 5 subjects and print it. 1+3
Arrays are used to store a set of values of the same type under a single
variable name