UI and Oops QP
UI and Oops QP
:
Amrita Vishwa Vidyapeetham
BCA Degrce Examination - May 2019
Computer Science and Applications
15CSA115: Object Oriented Programming using C++
Supplementary
Graph not required
Time:Ihrec
hoIs Maximum: 100 Marks
Part A (10 x 3 marks = 30 marks)
does the variable differ from constant? How do you create constants in C++ program?
1.How function2
friend
Whatis syntaxto createa class and object in Ct+ program. Show one example code snippet.
Writethe and its use
destructor function
Define
4 Write a ( C++
program to findthe sum of digits of a number.
Inline functions in a C++
S. the advantage of using program?
What is
6.
cascading?
WhatisIO member is differ from normal data member in memory usage" justify the
7. data
Static
statement.
theoutput
o Predict
using namespace s t :
a, int main ()
yl, z=l;
(int x=l, && ++z)
Cout<(++x | | ++y
<<Z;
Cout<<x<< "<<y<<
return 0; }
sample{al,b, c}:
b. enum
int main ()
X= C;
{ int
int &y=X;
int &Z= X;
y-b;
Cout<<Z--;
return 0;
inheritance.
10.Explain data abstraction and
Part B (7 x 10 marks -= 70marks)
I1.
snippet. 6 marks
a Differentiate callby value and call by reference with example code
4 marks
D. Write a Ct+ program to display elements of an array using pointers.
Page 1 of2
which represent astudent with properties name, course,
12.Create a clasS
SGPA of cnch semester.
Add proper constructor function
to the class,
the student details and SGPA in each semester. Test the class in main function, rol nunbwheri,ch CdiGspPlaAy,.
function
\0 marks
3 statement get executed?
What will happen when the following
class1 ob, ob2; Amartks
classl obl(ob) ;
ob2 = obl;
overload constructor? Explain with sample code.
b. Is it possible to 6marks
Public:
int data;
Number () {data= 0;}
HOD
uSmam char
password: ch
login)
Stofpromotion
hodF8. intoger
saFB:integar
passper: innegr
Add New Ssf
R&J: Itegar
Addo
Page
2of2
Roll No
AmritaVishwa Vidyapcetham
BCA Degrec Examinations-May 2019
First Semester
Computer Science and Applications
15CSA103 Fundanmentals of Web
Technology
Maximum Marks: 100
mHrs
perthe following.
HTMLas
sure youhave vOur document set as HTML and have a body of the page
Make
2 defined.
Background: Set a
background colour and backgroundimage
bold, italics and underlined as well as showing different types of
b.
Font =)Font in sizes.
c. different font colors and
and different headings of different
fonts
Your pageshould have at least two
Headings: should be alignedto the center of the page.
A The main heading
ypes.
need a minimum of 2images: align one left and one right.
Images: You tag to0 set up Some text to appear
exactly as it
e. Pre-format Text: Use the <Pre>
£ code.
doesinyour leasttwo links on your page.
Links: Have at
type of list on your page: Ordered and unordered.
. of each the
Lists: You need one
page (before the end body tag), add a line across
h. bottom of your web the copyright symbol, your name, and
i. Atthe
On the next line center
page and center it.
the date.
breaks <Br> when necessary.
i Use line
2Answerthefollowing.
with the following designs.
HTML table
a Create an
Time Table
Wed Thu Fri
Mon Tue
|Science|Maths ScienceMathsArts
HistoryEnglish Social Sports
|Social
Hours Lunch
ScienceMaths ScienceMaths
Project
Social HistoryEnglish Social
b. Design an HTML form as follows.
rForm Validation
Name:
Usermame:
Password
Re-type pasSword
Gender. O Male O Female O Other
Progranning skills: DJava Android ORuby D Net
Contact no:
Emal
Thisis a header.
This is a footer.
4. What are stylesheets? How do youadd style information toan HTML file? Write C3So
apply the following style information to HTML content.
a. Set the background colour for your page
b. Setthe colour ofAll paragaphs
C. Set a margin of 2 px for the paragraphs
d. Set the font size of paragraphs to 12 px
e. Set the text style as italic for h4 tag
Createa heading which is underlined.
f
Justifythe paragraph text on both sides.
Doublethe size Ofthe first letter of the first paragraph of your page.
h.
short nootes
on the following.
Write Web server
b.
a. Webclient
Webhosting
d.
C. ProXyserver
e. DNSserver
f Databaseserver
URL
h. DOM
i. IPAddresses
j HTTP
lable. . 2
Write page Write 4 sie. Create 3 .
c.
k a Ad
fol owirnugles:
another and PHP Valaidate a Set Setd. Set c an e. c. b. a. Crate cO(mpone
ol owingnts: Hours
display course Headi ngs: Text: viewing.
they
are
An Atitle Aframeset. A a A a
a any the space external table
PHP program the background
it preference
Form format ting table's that Your imagesomewherecopyright minimum course
in Answer
program ina isYou body style in the 12CSA236:
subsequent readtofields captionGeneva,should the of management
to page color info text sheet Lab Projects stpage.atement three all SupplementaryBachclorAmrita
on questions.
store all using to Vidyapectham
Vishwa
Amrita
the using for using tobold, alsshoul
display O d Assigments each your in pages Section Web School
the page. the web
JavaScript. al a 16 be page (iome,
course values lnclude
pt., Home site
HIMLparagraphs. CSS
with in course Each Technologies Computerof of
A:
uppercase. Verdana, page. proVIdng using
Examination,
Engineering,
preferences entered tornms class. a at page. Projects, question 50
bold, least management marks
HTML
by in the and Applications
the italic one 10 and carries y
the pt. user MaAmritapuri
entered above tont, section Lab frames. Applications Enrollment
Number
user web with 10 2019
by in course site The marks
the heading information Assignments)
the by site
user coursemanagement
in
adding
must Marks:
Max.100
in your on arranged
Page apreterence at what contain
1 MySQL content least
of web page using
2 the the
10. 9. 8. 7. 6.
Answer codeExplainthe Differentiate
following.
the Wri te a What
a. b. a. AddressesIP e. URL d. DNS C. XSL b. DTD a. client
b.
blocks,
validate What PHP. inWrite the Internet Web short side is
the
are following. explain
sample Document servers and
notes signilicance
HTML regular and Answer
onserver
PHP how web and the
form Object proxy al
expressions? code DOM following side ofquestions.
data state state
blocks servers Section
can Model
using management
management
be
to used(DOM) Each B:
PHP/JavaScript.Explain create
question 50
to marks
how an retrieve
JavaScript. of techniques
technique
indexed
regular carries
data
used in
array from Using a 10
expressions in web marks.
and an PHP.
sample application?
an HTML
associative
can JavaScript
form
be Eadbarae,
used aray
to