Download presentation
Presentation is loading. Please wait.
Published bySandra Rogers Modified over 9 years ago
1
Mark Dixon 1 Soft051 Examination Sample Questions
2
Mark Dixon 2 Exam Format Date:Wed 30 Apr 2014 Start Time:13:30 - 15:30 Location:Pavilions Area 2 Check for changes Duration:2 hours Questions:3 Marks per question:10 Attempt:All
3
Mark Dixon 3 Sample Question Write code to declare a function that converts pounds to Canadian dollars (multiply by 2.2):
4
Mark Dixon 4 Sample Question From the following code, name an example of: a) a function [1 mark] b) a method [1 mark] c) a property [1 mark] d) a procedure [1 mark] e) a class [1 mark] f) a data type [1 mark] Public Class Counter Private mCount As Long Public Function GetCount() As Long GetCount = mCount End Function Public Sub Reset() mCount = 0 End Sub Public Sub Up() mCount = mCount + 1 End Sub Public Sub Down() mCount = mCount - 1 End Sub End Class
5
Mark Dixon 5 Sample Question Write a function definition that takes two numbers and returns the result of multiplying them together.
6
Mark Dixon 6 Sample Question What SQL command is used to add a new record to a database table. What SQL command is used to remove a record from a database table. Write an SQL command to put "Hello" into the Description field of all records in the Message table.
7
Mark Dixon 7 Sample Question How many primary keys? How many foreign keys?
8
Mark Dixon 8 Sample Question What is P after the following code has executed? Dim Y As Integer Dim P As Integer Y = 6 Y = 2 P = Y + 3
9
Mark Dixon 9 Sample Question Draw an (SSADM) entity relationship diagram for the following:
10
Mark Dixon 10 Sample Question What is P after the following code has executed? Dim Y As Integer Dim P As Integer Y = 6 P = Y + 5 Y = 2
11
Mark Dixon 11 Sample Question Write a function that takes 3 parameters (height, width, depth) and returns the volume (by multiplying the 3 parameters)
12
Mark Dixon 12 Sample Question Given the following code: Write a procedure that calculates the total length (by adding up the elements of the array) and puts the result into total. Dim length(2) Dim total Sub window_onLoad() length(0) = 1.2 length(1) = 2.7 length(2) = 1.3 End Sub
13
Mark Dixon 13 Sample Question Write an SQL statement to extract the name and population of all countries in Africa.
14
Mark Dixon 14 Sample Question Provide server-side VB.Net code to implement the following class diagram: Module Code: String Title: String GetTitle(): string SetTitle(t: string) Count(): integer
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.