Name the following:
Ans:
1. =,<,>,<=,>=
2. AND , OR
3.for..next, while...wend, do while...loop
4. select case.....end select
***********************************************************
2. AND , OR
3.for..next, while...wend, do while...loop
4. select case.....end select
Exam question1
Exam question2
Exam question3
Ex.2
Ex.2
Ex:3
Ex:4
Ex:6
Ex:7
***********************************************************
What is the Output of the following code:
Ans:
output: Goodnight Everybody
***********************************************************
What is the Output of the following code:
Ans:
output : x = 5
"x = " tells Mr.Print, to print the things inside the double quote,AS IT IS.
semicolon tells the Mr.Print that DON'T JUMP TO THE NEXT LINE.YOU HAVE GOT SOME MORE WORK IN THE SAME LINE .
x tells Mr.Print that go to the variable x and what ever value it is having, just print it.
***********************************************************
"x = " tells Mr.Print, to print the things inside the double quote,AS IT IS.
semicolon tells the Mr.Print that DON'T JUMP TO THE NEXT LINE.YOU HAVE GOT SOME MORE WORK IN THE SAME LINE .
x tells Mr.Print that go to the variable x and what ever value it is having, just print it.
Do it :
Ans:
Once upon a time there was a doll. Its name was Linda. it is 120 feet tall. If anybody touched her toe, she will scream.
Here,
doll is an object.
The Name(property) of this object is Linda
The size(property) of this object is 120 feet.
Touching and screaming are actions
But touching action is done by the user of the doll. Action of users (such as clikcing,dragging) are called as events.
Screaming action is done by the object. Actions done by the object is called as methods.(example, close(),start(). If a command button is clicked, it is called as Click Event. TRUE
If the mouse button is pressed inside a program, it is called as MouseDown Event TRUE
Visual basic is an Event driven program
***********************************************************
The Name(property) of this object is Linda
The size(property) of this object is 120 feet.
Touching and screaming are actions
But touching action is done by the user of the doll. Action of users (such as clikcing,dragging) are called as events.
Screaming action is done by the object. Actions done by the object is called as methods.(example, close(),start(). If a command button is clicked, it is called as Click Event. TRUE
If the mouse button is pressed inside a program, it is called as MouseDown Event TRUE
Visual basic is an Event driven program
Do it :
Ans:
Once upon a time there was a doll. Its name was Linda. it is 120 feet tall. If anybody touched her toe, she will scream.
Here,
doll is an object.
The Name(property) of this object is Linda
The size(property) of this object is 120 feet.
Touching and screaming are actions
But touching action is done by the user of the doll. Action of users (such as clikcing,dragging) are called as events.
Screaming action is done by the object. Actions done by the object is called as methods.(example, close(),start(). If a command button is clicked, it is called as Click Event. TRUE
If the mouse button is pressed inside a program, it is called as MouseDown Event TRUE
Visual basic is an Event driven program
***********************************************************
The Name(property) of this object is Linda
The size(property) of this object is 120 feet.
Touching and screaming are actions
But touching action is done by the user of the doll. Action of users (such as clikcing,dragging) are called as events.
Screaming action is done by the object. Actions done by the object is called as methods.(example, close(),start(). If a command button is clicked, it is called as Click Event. TRUE
If the mouse button is pressed inside a program, it is called as MouseDown Event TRUE
Visual basic is an Event driven program
Do it :
Ans:
Dim x as Integer
=================================================================
for i=2 to 10 if i mod 2=0 then print i end if next
Do it :
Ans:
dim x as integer x=val(text1.text) 'or you can write the line to get a number x=inputbox("Enter a number") if x=0 then print "The given number is zero" elseif x > 0 then print "The given number is positive" elseif x < 0 then print "The given number is negative" end if
Do it :
Ans:
dim s as integer s=0 for i=256 to 264 if i mod 2=0 then s = s + i end if next
Differentiate:
Ans: