Dear students get fully solved assignments
Send your semester & Specialization name to our mail id :
“ help.mbaassignments@gmail.com ”
or
Call us at : 08263069601
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Bca5020 visual programming
1. Dear students get fully solved assignments
Send your semester & Specialization name to our mail id :
“ help.mbaassignments@gmail.com ”
or
Call us at : 08263069601
[FALL, 2015] ASSIGNMENT
PROGRAM BCA (REVISED FALL 2012)
SEMESTER 5
SUBJECT CODE & NAME BCA5020- VISUAL PROGRAMMING
CREDITS 4
BK ID B1872
MARKS 60
Note: Answer all questions. Kindly note that answers for 10 marks questions should be
approximately of 400 words. Each question is followed by evaluation scheme.
Question. 1. List and explain the list of data types supported by VB .NET.
Answer:DATATYPEina programminglanguage describesthatwhattype of data a variable can hold .
Whenwe declare a variable, we have to tell the compiler about what type of the data the variable
can holdor whichdata type the variable belongsto.Datatypesrefertoan extensive system used for
declaring variables or functions of different types. The type of a variable determines how much
space it occupies in storage and how the bit pattern stored is interpreted.
Syntax : Dim VariableName as DataType
Question. 2. Explain the For and While loop statements of VB.NET
Answer:Visual Basic allows a procedure to be repeated many times until a condition or a set of
conditionsisfulfilled.Thisisgenerally calledlooping.Loopingis a very useful feature of Visual Basic
because it makes repetitive works easier.
Do Loop
The Do Loop statements have three different forms, as shown below:
a) Do While condition
Question. 3. Discuss the concept of constructor and destructor withappropriate example.
2. Answer:Constructors are special class functions which performs initialization of every object. The
Compilercallsthe Constructorwhenever an object is created. Constructorsiitialize values to object
membersafterstorage isallocatedtothe object.Destructorisaspecial classfunctionwhichdestroys
the objectas soonas the scope of objectends.The destructoriscalledautomaticallybythe compiler
when the object goes out of scope. The syntax for
Question. 4.What is attribute? Explain its properties. Discuss the targets ofattributes.
Answer:Ingeneral,anattribute is a property or characteristic. Color, for example, is an attribute of
your hair. In using or programming computers, an attribute is a changeable property or
characteristic of some component of a program that can be set to different values.
In the HypertextMarkupLanguage (HTML), an attribute isa characteristicof a page element,suchas
a font. An HTML user can set font attributes, such as size and color, to different values. In some
programminglanguages,suchasPowerBuilderPowerScript,anattribute isapropertyof an object or
may be considered a container for the property
Question. 5. Briefly explain the following terms:
a) Exception
Answer:Anexceptionisanevent,whichoccursduringthe execution of a program, that disrupts the
normal flow of the program's instructions. When an error occurs within a method, the method
creates an object and hands it off to the runtime system. The object, called an exception object,
contains
b) Try
Answer:Try defines a block of statements that may throw an exception. When a specific type of
exception occurs, a catch block catches the exception. If an exception is not handled by try/catch
blocks, the exception escalates through the call stack until the exception is caught or an error
message is printed by the compiler.
c) Catch
Answer:"Try" and "catch" are keywords that represent the handling of exceptions due to data or
codingerrorsduringprogram execution.A tryblockis the blockof code inwhichexceptionsoccur. A
catch block catches and handles try block exceptions.
The try/catch statement is used in many
3. d) Throw
Answer:All methodsuse the throwstatementtothrow an exception.The throw statement requires
a single argument: a throwable object. Throwable objects are instances of any subclass of the
Throwable class. Here's an example of a throw statement.
throwsomeThrowableObject;
Let's look at the throw statement in context. The following pop method is taken from a class that
implements a common stack object. The
e) Finally
Answer:The finallyblockalwaysexecuteswhenthe tryblockexits.Thisensuresthatthe finallyblock
isexecutedevenif anunexpectedexceptionoccurs.Butfinallyisusefulformore thanjustexception
handling — it allows the programmer to avoid having cleanup code accidentally bypassed by a
return, continue, or break. Putting cleanup code in a finally block is always a good practice, even
when no exceptions are anticipated.
The try blockof the writeList method that you've been working with here opens a PrintWriter. The
program
Question. 6. Describe the various components that enable the Androidfunction in brief.
Answer:Appcomponents are the essential building blocks of an Android app. Each component is a
different point through which the system can enter your app. Not all components are actual entry
pointsforthe user andsome dependoneachother,but eachone existsasitsown entityand plays a
specific role—each one is a unique building block that helps define your app's overall behavior.
Dear students get fully solved assignments
Send your semester & Specialization name to our mail id :
“ help.mbaassignments@gmail.com ”
or
Call us at : 08263069601