(A) Riding (B) Surfing (C) Linking Texting
(A) Riding (B) Surfing (C) Linking Texting
cccooeviiiiiinnnn
Associate Degree in Arts / Science Part-l Annual Exam-2022 | Roj| No. in Words. .........
Subject: Computer Studies-| Paper Code: CMP-| N
Paper: A (Introduction to IT and Computer Programming) Time: 1 Hr. Marks: 30 N
Q.1. Encircle the right answer cutting and overwriting is not allowed. (15x1=15)
Page 1 of 2 P.T.O.
Q.2. Encircle the right answer cutting and overwriting is not allowed. (15x1=15)
1. What is the value of X after the following statements are executed?
Dim X, Y As Integer
X=1
For Y = 1 to 15 step 3
X=X+
next
A. 36 B.15 C.3 D.45
2. With X = True, Y = False and Z=True, which statement evaluates as False?
(A)XAND (YORZ) (C)XOR(YAND2Z)
(B)YAND (XORZ) (D)YOR(XANDZ)
3. Which are the standard prefixes for the text box and label controls respectively?
(A)tex and Ibl (B) txb and Ibl (C) txb and lab (D) txtand lab
4. The operator precedence from highest to lowest is:
(A)arithmetic, comparison, and logical (C) logical, comparison, and arithmetic
* (B) arithmetic, logical, and comparison (D) comparison, arithmetic, and logical
5. function is used to delete all the data items of a list.
(A)list) (B) listdel() (C) listclear(). (D) listremove()
6. An object is composed of:
(A)properties (B) methods (C) events (D) All of the given
7. Which function displays a pop-up window? )
(A)MsgBox (B) InputBox (C) TextBox (D)Both A & B
8.Which is not a type of error programmers look for?
(A)Logic (B) Runtime (C) Superficial (D) Syntax
9.How many RadioButtons in a Group Box can be selected at the same time?
(A)0 ®)1 ©2 D3
10. Which method will return the number of elements in an array?
(A)Dimension (B) Length (C) Number (D) Size
11. Which symbol creates an access key in the text of a menu item?
[N ®)# ©% D) &
12. A procedure has access to the original argument, when it is passed by
(A)value (B) address (C) reference (D) default
13. How many return statémems are allowed in a Function Procedure?
A1 B)2 ©3 (D) There is no limit
14, How many times is the test expression ofa Select Case evaluated?
(A)Once for each Case 1
(B) It depends on the value of the test expression (D)2
15. An Exception
is another
name for )
(A)comnpile error (B) logic error (C) muntime ermror (D) syntax error
Page 2 of 2
ey . UNIVERSITY
) OF
’ THE PUNJAB ¢ Roll No. :
Associate Degree in Arts / Science Part—| Annual Exam—2022 «...c000e -
Subject: Computer Studies-| Paper Code: CMP-|
Paper: A (Introduction to IT and Computer Programming) Time: 2 Hrs. Marks: 40
O#8:
a) What is a function and what are its advantage? (O]
b) Write a VB 6 program that asks a user to enter 5 numbers from and stores these numbers in an array.
Write a function isSorted that determines whether or not the input numbers have been entered in
ascending order. (6)