1 By Dr. HANY ELSALAMONY. 1. What are differences between interpreted and compiled languages? 2. What are the programming steps to creating the Visual.

Slides:



Advertisements
Similar presentations
Fundamentals of Programming in Visual Basic
Advertisements

.NET Framework.NET Framework class libraries: A large set of classes that forms the basis for objects that can be used programmatically. –Programming in.
CVEV 118/698 Visual Basic Lecture 1 Prof. Mounir Mabsout Expert 1: Elsa Sulukdjian Expert 2: Walid El Asmar.
Introduction To Visual Basic 6. Announcements  Thursday, Oct 9th, 7:30PM, C106 Lloyd Douglas (NSF) Diversity in Science-Who needs it? 5 extra credits.
VBA & Excel Barry L. Nelson IEMS 465 Fall Quarter 2003.
Visual Programming w/ Visual Basic How to prepare your mind to face the endless nightmare By Williem.
3/9/2004 PPCC - Introduction to VB6 Copyright ©2004, Tore Bostrup 1 Introduction to VB6 Week 2.
Visual Basic Fundamental Concepts. Integrated Development Enviroment Generates startup form for new project on which to place controls. Features toolbox.
Chapter 3 Introducing Visual Basic.NET. 3.1 Visual Basic.NET Windows Programming -Used to create Windows, Web, and Console applications -Uses predefined.
Microsoft Access Using Visual Basic Routines. Visual Basic Datatypes Boolean Byte Currency Date Double Integer Long Object Single String Variant Hyperlink.
Programming Examples to Accompany Structure Topic Please use speaker notes for additional information!
Copyright © 2001 by Wiley. All rights reserved. Chapter 2: Using Visual Basic to Create a First Project Getting Started with VB Development Environment.
 Application – another name for a program.  Interface – is what appears on the screen when the application is running.  Program Code – is instructions.
Outline Software and Programming Program Structure Tools for Designing Software Programming Languages Introduction to Visual Basic (VBA)
Chapter Six: Working With Arrays in Visual Basic.
Chapter Two Creating a First Project in Visual Basic.
CS285 Visual Basic 2 Department of Computing UniS 1 Statements in Visual Basic A statement is the fundamental syntactical element of a program smallest.
Arrays1 From time to time an object (a variable, a picture, a label or a command) does not serve as well as a set of objects of a similar kind addressed.
Applications Development
Data Types and Variables. Data Type! Computers are all about Data! Data can be in the form of Text Dates Sounds Pictures.
MS Visual Basic 6 Walter Milner. VB 6 0 Introduction –background to VB, A hello World program 1 Core language 1 –Projects, data types, variables, forms,
Practical Programming COMP153-08S Week 5 Lecture 1: Screen Design Subroutines and Functions.
Visual Basic Programming Introduction VB is one of the High level language VB has evolved from the BASIC language. BASIC stands for Beginners All-purpose.
CS 101 Test 2 Study Guide Acronyms RAD - Rapid Application Development IDE - Integrated Development Environment GUI - Graphical User Interface VB - Visual.
Variables & Function Calls. Overview u Variables  Programmer Defined & Intrinsic  Data Types  Calculation issues u Using Functions  The val() function.
Copyright © 2001 by Wiley. All rights reserved. Chapter 6: Using Arrays Control Arrays List Arrays Finding Items in Arrays Multiple Forms 2-Dimensional.
VB Objects & Events (Exercises) School of Business Eastern Illinois University © Abdou Illia, Spring 2003 (Week 3, Friday 1/31/2003)
110 E-1 Variables, Constants and Calculations(2) Chapter 3: Operations on variables, scope of a variable, formatting data Doing Arithmetic.
Slide 1 Controls v Control naming convention –Label: lblName –Command Button: cmdName –Text Box: txtName.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
Visual Basic Review LBS 126. VB programming Project Form 1Form 2Form 3 Text boxButton Picture box Objects Text box Button Objects.
Microsoft Visual Basic 2012 CHAPTER FIVE Decision Structures.
Loop and repetition. Today Passing values to and back from Sub procedures Option Buttons Do While Loops For Loops Population Growth.
Data and variables in Visual Basic. Annoucement Lecture on Thursday 7:30PM C106 Visual Basic download: 
Knowledge Base. Defining a Variable Dim statement Dim intXX As Integer Public in a Module Public dblNN As Double.
Creation of Variables with Numeric, alphanumeric, date, picture, memo data types Constant - A quantity that does not change during the execution of a program.
Loop Blocks Chapter 6 Part A. Program Blocks 1.Actions- commands, messages, methods 2.Branches- decisions to be made 3.Loops- actions to be repeated.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
By Dr. HANY ELSALAMONY 1by Dr. HANY ELSALAMONY. Microsoft released Visual Basic in It was the first visual development tool from Microsoft, and.
Chapter 4.  Variables – named memory location that stores a value.  Variables allows the use of meaningful names which makes the code easier to read.
Introduction To Visual Basic 6
Visual Basic Fundamental Concepts
VISUAL BASIC 6.0 Designed by Mrinal Kanti Nath.
IE 8580 Module 4: DIY Monte Carlo Simulation
A variable is a name for a value stored in memory.
Visual Basic 6 (VB6) Data Types, And Operators
3.01 Apply Controls Associated With Visual Studio Form
CHAPTER FIVE Decision Structures.
3.01 Apply Controls Associated With Visual Studio Form
CSI 101 Elements of Computing – Spring 2009
Standard Controls.
VISUAL BASIC FINAL EXAM REVIEW SHEET
Please use speaker notes for additional information!
الاسباب الأضرار وسائل الحمايه
CHAPTER FIVE Decision Structures.
VISUAL BASIC.
Visual Basic..
Visual Basic.
Department Array in Visual Basic
Chapter 6 - Visual Basic Schneider
CS285 Introduction - Visual Basic
Visual Basic: Week 5 Review User defined functions
Language Constructs Construct means to build or put together. Language constructs refers to those parts which make up a high level programming language.
Intro to Programming Concepts
Introduction to Programming
Introduction to Computer Programming IT-104
Tutorial 11 Using and Writing Visual Basic for Applications Code
Presentation transcript:

1 By Dr. HANY ELSALAMONY

1. What are differences between interpreted and compiled languages? 2. What are the programming steps to creating the Visual Basic projects? 3. Compare between:  Class Library Template  Console Application Template  WPF Application 2 By Dr. HANY ELSALAMONY

4. What are the differences between: Alignment, BackColor, ForeColor, Caption, and Font. 5. Show the differences between: Modules, procedures, syntax 6. Correct the wrong statement in the following code: 3 Private Command1_Click() MsBox "Hello, World! Sub Private Command1_Click() MsBox "Hello, World! Sub By Dr. HANY ELSALAMONY

7. Correct the wrong statement in the following code: 4 Private Form_Load() Dm a Integer Dm b As Integer Dm c As Integer a = 3 b = 5 c = a * b MsgBx b End Sub Private Form_Load() Dm a Integer Dm b As Integer Dm c As Integer a = 3 b = 5 c = a * b MsgBx b End Sub By Dr. HANY ELSALAMONY

8. There are three steps to using a variable: a)…………….. b)………………. c)…………….. 9. What are the conditions to naming variables? Give examples. 10. What are the differences with examples between the variables: Integer, Double, String, Boolean, array. 5 By Dr. HANY ELSALAMONY

11. What is the string? And what is meaning of concatenation? Give examples. 12. In the declaration of an array (Dim Department(6) As String), the index goes from: [0:6, 1:6, 0:5] 13. In visual basic there exist a date/time functions such that: [TimeSerial, CStr, FormatPercent]. 14. In visual basic there exist a math functions such that: [CStr, Hex FormatPercent]. 6 By Dr. HANY ELSALAMONY

15. In visual basic there exist a array functions such that: [TimeSerial, CStr, Split]. 16. In visual basic there exist a string functions such that: [TimeSerial, UCase, FormatPercent]. 17. What are the following functions doing in VB? a) InStr b) Atn c) CStr d) CDbl 7 By Dr. HANY ELSALAMONY

18. Convert the following formulas to visual basic equivalents: i) ii) iii) iv) 19. What is the difference between a conditional operator and a logical operator? 8 By Dr. HANY ELSALAMONY

20. What is the work of (If…Else) statement? and what about using of (nested If)? Give examples. 21. what is the main deference in using (If) and (Select case) statements? Give examples. 22. Give examples for using (Select case), (Case Else), and (Case to). 23. What is a loop? 9 By Dr. HANY ELSALAMONY

24. True/False. Both blocks of an If...Else might execute. 25. True/False. A (For) loop counts up if the (Step) value is positive. 26. True/False. A (For) loop counts down if the (Step) value is negative. 27. True/False. In (For) loop, If you use a negative (Step) value, the (intStart) value must be more than the (intEnd) value. 10 By Dr. HANY ELSALAMONY

28. What is the main difference between (Do) and (For) loops? 29. What is work of (For) loop? 30. What is meaning of (intCounter), and (intEnd)? 31. Match the following: 11 By Dr. HANY ELSALAMONY

1-vbLPCustomSmall system icon as defined by your video resolution. 2-vbLPLargeLarge system icon as defined by your video resolution. 3-vbLPLargeShellDetermined by the Control Panel’s Display Settings page. Click the Appearance tab to see the caption button size to locate the size of images you change with this varSize value. 4-vbLPSmallShellDetermined by the Control Panel’s Display Settings page. Click the Appearance tab to see the icon size to locate the size of images you change with this varSize value. 5-vbLPSmallThe varX and varY arguments determine the size. 12 By Dr. HANY ELSALAMONY

32. Match the following: 1- vbLPVGAColorBest match 2- vbLPColor2 colors 3- vbLPDefault16 colors 4- vbLPMonochrome256 colors 13 By Dr. HANY ELSALAMONY

33. What are the differences between: a) BorderColor b) BorderStyle c) BorderWidth 34. What is the meaning of: a) PSet b) sngAspect c) sngRadius 35. The toolbox includes these two drawing tools: a)………………. b)…………………….. 14 By Dr. HANY ELSALAMONY

36. Correct the wrong statement in the following code: By Dr. HANY ELSALAMONY 15 Command3_Click( Division Duble Division = Val(Text1.Text) / Val(Text2 Text) 'To display the answer on label 3 Label Caption = Division End Sub Command3_Click( Division Duble Division = Val(Text1.Text) / Val(Text2 Text) 'To display the answer on label 3 Label Caption = Division End Sub

37. Correct the wrong statement in the following code: By Dr. HANY ELSALAMONY 16 Privat Sub Comand1_Click( Di var1 Integr var1 = 5 If var1 = 10 MgBox "The variable is ten Els MsgBox "The variable is not ten" End Sub Privat Sub Comand1_Click( Di var1 Integr var1 = 5 If var1 = 10 MgBox "The variable is ten Els MsgBox "The variable is not ten" End Sub

38. What is the main difference between picture box and image controls? 39. Correct the wrong statement in the following code: By Dr. HANY ELSALAMONY 17 For intCtr = 1 as 20 frmBoxes.Lin (intStartX, intStartY)-(intLastX, intLastY B intStartX = intStartX intStartY = intStartY intLastX = intLastX intLastY = intLastY Next For intCtr = 1 as 20 frmBoxes.Lin (intStartX, intStartY)-(intLastX, intLastY B intStartX = intStartX intStartY = intStartY intLastX = intLastX intLastY = intLastY Next

40. Correct the wrong statement in the following code: By Dr. HANY ELSALAMONY 18 Private Sub Frm_Load( mmcVideo Command = “Open mmcVideo hWndDisplay = picVido. Wnd End Sub Private Sub Frm_Load( mmcVideo Command = “Open mmcVideo hWndDisplay = picVido. Wnd End Sub