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:DATATYPE in a programming language describes that what type of data a variable can hold . When we declare a variable, we have to tell the compiler about what type of the data the variable can hold or which data type the variable belongs to.Data types refer to an 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 conditions is fulfilled. This is generally called looping. Looping is 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.
Answer:Constructors are special class functions which performs initialization of every object. The Compiler calls the Constructor whenever an object is created. Constructorsiitialize values to object members after storage is allocated to the object.Destructor is a special class function which destroys the object as soon as the scope of object ends. The destructor is called automatically by the compiler when the object goes out of scope. The syntax for
Question. 4.What is attribute? Explain its properties. Discuss the targets ofattributes.
Answer:In general, an attribute 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 Hypertext Markup Language (HTML), an attribute is a characteristic of a page element, such as a font. An HTML user can set font attributes, such as size and color, to different values. In some programming languages, such as PowerBuilder PowerScript, an attribute is a property of an object or may be considered a container for the property
Question. 5. Briefly explain the following terms:
- a) Exception
Answer:An exception is an event, which occurs during the 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 coding errors during program execution. A try block is the block of code in which exceptions occur. A catch block catches and handles try block exceptions.
The try/catch statement is used in many
- d) Throw
Answer:All methods use the throw statement to throw 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 finally block always executes when the try block exits. This ensures that the finally block is executed even if an unexpected exception occurs. But finally is useful for more than just exception 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 block of 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:App components 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 points for the user and some depend on each other, but each one exists as its own entity and 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