ICT2611
EXAM PACK
Solutions, Explanations, workings, and references
+27 81 278 3372
,UNIVERSITY EXAMINATIONS
October/November 2022
ICT2611
Graphic User Interface Design
70 Marks
Duration 2 Hours
EXAMINERS:
FIRST: Ms M Buthelezi
SECOND: Mr M Molebatsi
This paper consists of 08 pages.
Instructions:
1. Answer all questions.
2. The marks for each question are given in brackets next to the question.
3. Please answer the questions in the order in which they have been set.
4. You signed an Honesty Declaration. This means you will complete this paper on
your own and without help.
5. You may use your prescribed textbook.
6. This final pdf document should not be password protected.
7. Convert all the pages into a single PDF file.
8. Poorly scanned and hard to read answer files will result in a zero mark.
9. Once your document meets all the criteria, then you can upload the file to myAdmin.
GOOD LUCK.
, 2
ICT2611
October/November 2022
QUESTION 1 Multiple Choice Questions [10 marks]
This section presents multiple choice questions. Please answer by writing down the question
number and the letter of the correct answer.
1. Asc("A") is 65. What is Asc("C")? (1)
a) 66
b) 67
c) 68
d) 69
2. Given the data assigned to the string variable str2 shown below, which of the following
statements will assign the value ALL to the string variable str1? str2 = "WHEN ALL ELSE
FAILS, READ THE DIRECTIONS" (1)
a) str1 = str2.Substring(4,2)
b) str1 = str2.Substring(6,3)
c) str1 = str2.Substring(4,3)
d) str1 = str2.Substring(5,3)
3. If TAX_RATE is a named constant of type Decimal, which of the following statements is
valid? (1)
a) dblVar = TAX_RATE + 1
b) TAX_RATE += 1
c) TAX_RATE = 2 * TAX_RATE
d) dblVar = TAX_RATE + 2
4. In the string literal "Life, the universe and everything.", the substring "verse" begins at index
_____ and ends at index _____. (1)
a) 12, 17
b) 13, 17
c) 12, 18
d) 13,18
5. Suppose you are 20 years old. num is an Integer variable, and
the statement num = 1 + CInt(InputBox("How old are you?")) is executed
and responded to. What will be the output of txtBox.Text = num & " years old"
(1)
a) 21 years old
b) 22 years old
c) 1 + "How old are you?"
d) Syntax error
, 3
ICT2611
October/November 2022
6. The following statement contains what type of error?
txtAverage.Txt = CStr(CDbl(txtNum1.Text) + CDbl(txtNum2.Text) / 2)
(1)
a) both a syntax error and a logic error
b) a syntax error only
c) a logic error only
d) no errors
7. The three main logical operators are _____. (1)
a) False, And, True
b) And, Or, Not
c) And, Or, Not
d) And, Not, If
8. What is the correct syntax for displaying the value of the String variable myString in a
text box? (1)
a) txtBox.Text = Str(myString)
b) btxtBox.Text = myString
c) txtBox.Text = "myString"
d) txtBox.Text.myString
9. What is the proper syntax when using a message dialog box? (1)
a) MessageBox.Show "Hi There", "Hi"
b) MessageBox.Show Hi There, Hi
c) MessageBox.Show(Hi there, Hi)
d) MessageBox.Show("Hi there", "Hi")
10. What is the value of Int(8.9)? (1)
a) 8.9
b) 9.0
c) 9
d) 8