SlideShare a Scribd company logo
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.
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
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

More Related Content

DOCX
Mca2030 object oriented programming – c++
DOCX
Mca2030 object oriented programming – c++
DOCX
Mca2030 object oriented programming – c++
PPTX
OOP - Polymorphism
PDF
C Sharp: Basic to Intermediate Part 01
DOCX
Bt8903, c# programming
PPTX
OOP in C#
PDF
Object-Oriented Polymorphism Unleashed
Mca2030 object oriented programming – c++
Mca2030 object oriented programming – c++
Mca2030 object oriented programming – c++
OOP - Polymorphism
C Sharp: Basic to Intermediate Part 01
Bt8903, c# programming
OOP in C#
Object-Oriented Polymorphism Unleashed

What's hot (20)

PPTX
Unusual C# - OOP
PDF
C++ Object oriented concepts & programming
PDF
Object Oriented Principles
PDF
Polymorphism
PPTX
Encapsulation C++
PDF
PPT
Advanced OOP - Laws, Principles, Idioms
PPT
JAVA Polymorphism
PDF
Polymorphism in oop
DOCX
Bt0074 oop with java
PPT
Static and Dynamic polymorphism in C++
PPSX
Concept of Object Oriented Programming
PPTX
OOP interview questions & answers.
PPTX
Vb ch 3-object-oriented_fundamentals_in_vb.net
PPTX
Polymorphism
PDF
Total oop in c# dot net
PPTX
Object oriented programming
PDF
Javapolymorphism
DOCX
Bt0074, oops with java
DOCX
Mi0041 java and web design
Unusual C# - OOP
C++ Object oriented concepts & programming
Object Oriented Principles
Polymorphism
Encapsulation C++
Advanced OOP - Laws, Principles, Idioms
JAVA Polymorphism
Polymorphism in oop
Bt0074 oop with java
Static and Dynamic polymorphism in C++
Concept of Object Oriented Programming
OOP interview questions & answers.
Vb ch 3-object-oriented_fundamentals_in_vb.net
Polymorphism
Total oop in c# dot net
Object oriented programming
Javapolymorphism
Bt0074, oops with java
Mi0041 java and web design
Ad

Similar to Bca5020 visual programming (20)

PPTX
General Programming Concept
PPTX
ProgrammingPrimerAndOOPS
PDF
java-2marks-qzcvhsvnmdjdvjndcsdcuestions-with-answer.pdf
PPTX
a brief explanation on the topic of Imperative Programming Paradigm.pptx
PPTX
Programming paradigms Techniques_part2.pptx
PPTX
Android webinar class_java_review
DOCX
Mca2030 object oriented programming – c++
DOCX
Mcs 024 assignment solution (2020-21)
DOCX
Bt0082 visual basic
PPTX
Software fundamentals
PPTX
Java presentation
PPTX
Basics of Programming.pptx
PPTX
Different paradigms for problem solving.pptx
DOCX
Mca winter 2013 2nd sem
PDF
CSC111-Chap_02.pdf
PPTX
Let's start with Java- Basic Concepts
PPTX
2R-3KS03-OOP_UNIT-I (Part-A)_2023-24.pptx
PDF
(eTextbook PDF) for Starting out with Visual C# 5th Edition
DOCX
Mca1020 programming in c
General Programming Concept
ProgrammingPrimerAndOOPS
java-2marks-qzcvhsvnmdjdvjndcsdcuestions-with-answer.pdf
a brief explanation on the topic of Imperative Programming Paradigm.pptx
Programming paradigms Techniques_part2.pptx
Android webinar class_java_review
Mca2030 object oriented programming – c++
Mcs 024 assignment solution (2020-21)
Bt0082 visual basic
Software fundamentals
Java presentation
Basics of Programming.pptx
Different paradigms for problem solving.pptx
Mca winter 2013 2nd sem
CSC111-Chap_02.pdf
Let's start with Java- Basic Concepts
2R-3KS03-OOP_UNIT-I (Part-A)_2023-24.pptx
(eTextbook PDF) for Starting out with Visual C# 5th Edition
Mca1020 programming in c
Ad

Recently uploaded (20)

PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
VCE English Exam - Section C Student Revision Booklet
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PDF
Complications of Minimal Access Surgery at WLH
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Classroom Observation Tools for Teachers
PDF
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
Presentation on HIE in infants and its manifestations
PPTX
Institutional Correction lecture only . . .
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
master seminar digital applications in india
PPTX
Pharma ospi slides which help in ospi learning
PDF
Microbial disease of the cardiovascular and lymphatic systems
FourierSeries-QuestionsWithAnswers(Part-A).pdf
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
VCE English Exam - Section C Student Revision Booklet
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
202450812 BayCHI UCSC-SV 20250812 v17.pptx
Complications of Minimal Access Surgery at WLH
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Anesthesia in Laparoscopic Surgery in India
Final Presentation General Medicine 03-08-2024.pptx
Classroom Observation Tools for Teachers
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
STATICS OF THE RIGID BODIES Hibbelers.pdf
Presentation on HIE in infants and its manifestations
Institutional Correction lecture only . . .
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
master seminar digital applications in india
Pharma ospi slides which help in ospi learning
Microbial disease of the cardiovascular and lymphatic systems

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