1
Practical List
for
Class XI CS
(2012
-
2013)
Flow
of
control
(If
Else
):
1.
To
find
the greater number between given two numbers.
2.
Find the greatest number between give three numbers.
3.
To check if the given number is even or odd.
4.
To find the grade of a
student from his/her marks using if statements.
5.
Temperature converter.
6.
To check if the given input is a
number, character
or a special character.
Flow
of
Control
(Switch
Case
):
1.
Arithmetic Calculator.
2.
Day Of the week.
3.
School Admission
Scenario:
To calculat
e the admission
feasibility and fees
based on
criteria like age, gender and single girl child.
Flow
of
Control
(While
Loop
):
Write a menu based
C
++ program to do the following:
1.
To print ‘n’ natural numbers.
2.
To print ‘n’ Even numbers.
3.
To print ‘n’ odd
numbers.
Write a menu based
C
++ program to do the following:
1.
To find the sum of ‘n’ natural numbers.
2.
To find the sum of ‘n’ even numbers.
3.
To find the sum of ‘n’ odd numbers.
4.
To find
the factorial
of a number.
2
Practical List
for
Class
XII CS
(2012
-
2013)
Review
of
class
XI
1.
Write
a
menu
based
C++
program
to
do
the
following
(Use
user
defined
functions
in
each
case):
Check for Prime number
Reverse of a number
Sum of individual digits of a number
2.
Write
a
menu
based
C++
program
to
do
the
following
(Use
user
de
fined
functions
in
each
case):
Minimum and Maximum of an 1 D integer array
Reversing the 1 D integer Array
Swapping the first half with the second half in an 1D integer array
3.
Write
a
menu
based
C++
program
to
do
the
following
(Use
user
defined
functions
in
each
case):
Swapping the top half rows with the bottom half rows in a 2D integer array
Swapping the left half columns with the right half columns in a 2D integer array.
Transpose of a 2D integer array
4.
Write
a
menu
based
C++
program
to
do
the
following
(Us
e
user
defined
functions
in
each
case):
Reverse of a String
Word count
Vowel count
5.
Write
a
C++
function
to
return
the
largest
string
from
an
array
of
strings
and
implement
in
a
program.
6.
Write
a
c++
program
to
implement
an
array
of
structures
for
Student
(
rollno,
name,
marks).
The
program
should
contain
functions
to
add
a
student,
display
the
student
list
and
display
the
student
details
having
highest
marks.
Object
Oriented
Programming:
7.
Write
a
class
Hotel
in
c++
with
following
description:
Private
members
:
Rno
// Data member to store Room No
Name
// Data member to store customer name
Tarrif
// Data member to store per day charges
Days
//Number of days of stay
Calculate()
// A function to calculate and return the amount
days*tarrif. If the product is greater
than
5000
then return 1.05*days*tarrif
Public
members
:
Checkin()
// A function to enter Rno, Name, Tarrif and days
Display
()
// A function to display Rno, Name, Tarrif, days and
total amount as per the called Calculate() function
Instantiate the class and write the main function as needed.
8.
Write
a
class
Student
with
the
following
description:
Private
membe
rs:
Rollno
Integer
name
String
marks
Integer
getgrade() should return the grade as ‘A’ if marks is greater than 90 or else return ‘B’
Public
members:
Setdata() to insert the values to the private members.
3
Display() to display the details along with
grade.
Write the main() function and invoke the object.
9.
Write
a
menu
driven
program
to
do
the
following
in
text
file
handling.
Write a C++ function to count the number of occurrence of character passed as the
parameter of the function.
Write a C++ Functi
on that counts the number of articles(“A”,”An”and”The”) in a given text
files.
Write a C++ function that transfers all the vowels from “source.txt” to “target.txt”.
Write a C++ function to count the number of lines starting with a alphabet passed as
parame
ters.
Write a C++ function that counts the number of lines starting with the word “the”.
10.
Write
a
menu
Based
application
to
do
the
following
on
Binary
file
:
-
Insert object of student class into “student.dat” file.
Display objects from student.dat file.
Search a particular student from the binary file.
Modify the marks of particular student.
11.
Write
a
program
to
perform
the
following
in
1
-
D
array.
Bubble sort.
Selection sort.
Insertion sort.
12.
Following
Search
on
1
-
D
array
:
-
Linear search.
Binary search.
13.
Array
implementation
of
Stack.
14.
Array
implementation
of
Queue.
15.
Array
implementation
of
Circular
Queue.
16.
Link
implementation
of
Stack.
17.
Link
implementation
of
Queue.
18.
Questions
on
My
SQL.
My SQL queries based on student table.(10 Queries)
My SQL queries based
on staff table.(10 Queries)
My SQL queries based on Employment(EMP) and Department(DEP) table.(10 Queries)
My SQL queries based on Music store and album table.(10 Queries)
4
Practical List for
Class XII
–
IP
(2012
-
13)
1.
Design
a
login
form
that
obtains
user
id
and
password
from
the
user.
If
correct
password
is
entered,
it
display
a
dialog
saying
“<
user
–
id
>,
you
have
logged
in
successfully.”
If,
however,
password
is
incorrect,
it
displays
a
dialog
saying,
“<
user
–
id
>,
you
entered
an
invalid
password.
Ei
ther
try
again
or
leave.”
2.
Design
an
application
that
displays
a
stopwatch.
3.
Create
a
Java
desktop
application
to
find
the
largest
number
among
the
three
floating
point
numbers.
4.
Create
a
Java
desktop
application
to
enter
your
friends
rollno,
name,
address
,
section
and
grade.
Using
a
JButton’s
click
event
handler,
display
the
details
of
inputs
into
a
JTextArea
control.
Note
that
the
JTextArea
background
would
be
in
yellow
color.
5.
Create
a
java
desktop
application
to
do
mathematical
operations
like
addition,
subtraction,
multiplication,
division
and
modules
of
two
numbers
and
display
the
result
with
appropriate
text
box
after
clicking
a
JButton
control.
6.
Write
a
program
to
input
any
number
and
print
them
in
reverse
order
using
while
statement.
Whereas
the
inp
ut
number
must
be
positive.
The
following
is
the
screen
used
to
print
the
reverse
of
a
number.
7.
Define
a
class
Report
with
the
following
specification
:
Data
members:
adno
Integer
name
String
marks
5
floating
point
values
average
average
marks
obtained
getvg
(
)
to
compute
the
average
obtained
in
five
subjects
Members
Methods
read_info
(
)
Function
to
accept
values
for
adno,
name,
marks
and
invoke
the
function
getvg
(
)
displayinfo(
)
Function
to
display
all
data
members
on
the
screen
you
should
give
function
definitions.
Calculate
the
average
marks
and
print
a
message
“
You
are
passed
“
if
percentage
is
greater
than
40
,
otherwise
print
“
You
are
Failed
“
.
Also,
at
runtime,
the
color
of
“You
are
Passed
“must
be
Blue
and
“
You
are
Failed
“
must
be
red
with
font
size
10.
8.
Design
an
application
for
a
football
match’s
Scoreboard.
Each
team’s
score
should
be
maintained.
Whenever
a
team
scores
a
goal,
it
should
be
reflected
on
the
Scoreboard.
When
the
result
is
declared,
depending
upon
the
scoreboard,
the
winning
team
should
be
declared.
9.
Department
of
Human
Resources
along
with
Department
of
Higher
Education
wants
to
conduct
an
online
survey
of
school
student’s
time
spending
habits
and
their
subject
choices.
It
will
help
them
design
a
bette
r
education
policy
and
create
better
placement
opportunities.
10.
Design
an
application
that
obtains
names
and
marks
of
students
via
input
dialogs
and
displays
the
obtained
details
in
a
text
area.
After
obtaining
one
student’s
details,
the
details
should
be
a
ppend
to
text
area
and
then
the
application
should
confirm
whether
to
continue
the
process
through
a
confirm
dialog.
This
process
should
repeat
as
long
as
the
user
presses
YES
button
from
5
the
three
choices:
YES
,
NO,
CANCLE
of
the
confirm
dialog.
If
user
p
resses
NO,
then
the
details
of
highest
scorer
should
be
displayed
through
a
message
dialog
and
if
user
presses
CANCLE,
then
nothing
should
be
displayed.
The
application
should
close
after
NO
or
CANCEL
button
are
pressed.
11.
Create
a
GUI
application
that
obta
ined
details
(
rollno,
name,
class
and
marks
)
of
a
student
through
text
fields
and
adds
them
in
a
table
as
a
row.
The
application
should
also
offer
options
to
display
total
count
of
records
in
the
table:
count
of
records
class
–
wise
and
to
exit
from
the
application.
12.
Create
a
Java
GUI
application
that
lets
you
create
an
address
book.
The
details
to
be
added
in
address
book
are
:
Name,
Email_Id,
Phone.
13.
Create
a
Java
GUI
application
to
find
salary
of
the
employee
on
the
basis
of
“
Designation
“
selected
us
ing
JComboBox.
The
JComboBox
contains
the
following
designations
with
respective
salaries:
14.
Create
an
application
to
design
a
form
containing
ListBox
and
ComboBox.
Add
major
cities
to
both
ListBox
and
ComboBox
through
TextBox.
Also
provide
three
command
b
uttons
for
clearing
the
TextBox,
ListBox,
and
ComboBox.
When
you
click
on
a
button
(JButton),
the
action
will
affect
to
respective
controls.
Also,
use
command
buttons
for
clearing
the
TextBox,
ListBox
and
ComboBox.
15.
CREATE
A
Java
GUI
application
that
obtains
the
search
criteria
from
the
user
and
retrieve
data
f
rom
the
database
based
on
that.
6
16.
Given
th
e
following
Table
:
-
Write
SQL
commands
on
the
basis
of
table
MOV:
(a)
Find
the
total
value
of
the
movie
cassettes
available
in
the
library.
(b)
Display
a
list
of
all
movies
with
Price
over
20
and
sorted
by
price.
(c)
Display
all
the
movies
sorted
by
QTY
in
decreasing
order.
(d)
Display
a
report
listing
a
movie
number,
current
value
and
replacement
value
for
each
movie
in
the
above
table.
Calculate
the
replacement
value
for
all
movies
as
QTY
*
Price
*
1.15.
Give
the
output
of
the
following
SQL
commands
on
the
basis
of
table
MOV.
(a)
SELECT
AVG(Price)
from
MOV
where
Price
<
30;
(b)
SELECT
MAX(Price)
FROM
MOV
W
HERE
Price
>
30;
(c)
SELECT
SUM(Price
*
Qty)
FROM
MOV
WHERE
QTY
<
4;
(d)
SELECT
COUNT(DISTINCT
Type)
FROM
MOV
17.
Write
the
SQL
commands
to
create
the
table
HOSPITAL
with
following
specification:
-
7
(a)
Insert
the
following
data
into
the
above
table.
(b)
Write
a
command
to
describe
the
structure
of
the
above
table.
(c)
Add
one
more
column
in
the
above
table
as
Address
of
type
char
(20)
(d)
Modify
the
column
Address
as
char
(25)
(e)
Drop
the
column
Address.
(f)
Change
the
name
of
the
column
Address
to
H
ome
_
address.
(g)
Delete
all
the
rows
of
the
table
Hospital.
(h)
Delete
the
table.
18.
Write
the
output
of
the
following:
-
(a)
SELECT
ROUND
(1023.432,
1)
;
(b)
SELECT
LENGTHER
(‘RAMESH
SHARMA’)
;
(c)
SELECT
UPPER
(
‘master‘
)
;
(d)
SELECT
MOD
(ROUND
(120.60
,
1),
5)
;
(e)
SELELCT
POWER
(5,
5);
(f)
SELECT
FLOOR
(65467.8890);
(g)
SELECT
MOD
(36,
3)
;
(h)
SELECT
(14*9,
90
/
9)
;
(i)
SELECT
ROUND
(3244.1962,
1);
(j)
SELECT
SQRT
(144);
(k)
SELECT
SQRT
(15.6
*
24.3
);
(l)
SELECT
1000
+
SQRT
(100)
;
(m)
SELECT
TRIM
(‘
ABS
PUBLIC
SCHOOL
‘);
(n)
SELECT
LOWER
(
‘
ARMY
School
’
)
;
(o)SELECT
FLOOR
(
100.34
)
+
ABS
(
200.43
)
;
Enter the password to open this PDF file:
File name:
-
File size:
-
Title:
-
Author:
-
Subject:
-
Keywords:
-
Creation Date:
-
Modification Date:
-
Creator:
-
PDF Producer:
-
PDF Version:
-
Page Count:
-
Preparing document for printing…
0%
Σχόλια 0
Συνδεθείτε για να κοινοποιήσετε σχόλιο