Post-UTME Past Questions - Original materials are available here - Download PDF for your school of choice + 1 year SMS alerts
Post UTME Past Questions Agent

2018 WAEC Computer Studies Theory (a) What is: (i) an array; (ii) a syntax error? (b) Write QBASIC program that...

Computer Studies
WAEC 2018

(a) What is: (i) an array; (ii) a syntax error?

(b) Write QBASIC program that will input multiples of Three between 1 and 20 into a one-dimensional array and display the output on the screen.

(c) Convert D5FA,, to binary.

Your School's Whatsapp Group - Join Us now
WAEC and NECO CBT Software for Computers and Laptops - Candidates, Schools, Centres, Resellers - 100% Offline -Download Now
Post-UTME Past Questions - Original materials are available here - Download PDF for your school of choice + 1 year SMS alerts
Explanation

(a)(i) An array is a collection of elements of the same type stored in a single variable.

OR

An array is a data structure with homogeneous element.

OR An array is a row of values, a column of values or a combination of rows and columns of values.

OR

An array is a data structure consisting of a collection of elements (values or variables) each identified by at least an array index or key.

(i) A syntax error is an error resulting from violation of grammatical rules of a language.

OR

A syntax error is an error from non compliance with the grammar of a language

(b) 10 DIM M (7)

20 PRINT "MULTIPLE OF 3"

30 FOR I = 1 TO 6

40 M() = 3 *I

50 PRINT M(I)

60 NEXT I

70 END

OR

10 FOR I = 1 TO 6

20 M(I) =3 *I

30 PRINT M(I)

40 NEXT I

(c) Converting D5 FA\(_{16}\) to binary

D = 1101

5 = 0101

F = 1111

A = 1010

D5FA\(_{16}\) = 1101010111111010\(_{2}\)


Report an Error Ask A Question Download App
Post-UTME Past Questions - Original materials are available here - Download PDF for your school of choice + 1 year SMS alerts
Post UTME Past Questions Agent
WAEC and NECO CBT App for Mobile Devices - Candidates, Schools, Centres, Resellers - 100% Offline -Download Now

Contributions ({{ comment_count }})

Please wait...

{{ settings.no_comment_msg ? settings.no_comment_msg : 'There are no comments' }}

Quick Questions

Post your Contribution

Please don't post or ask to join a "Group" or "Whatsapp Group" as a comment. It will be deleted. To join or start a group, please click here

{{ quote.posted_by.display_name }}
{{ settings.form_textarea_description }}
 
WAEC and NECO CBT App for Mobile Devices - Candidates, Schools, Centres, Resellers - 100% Offline -Download Now
Post UTME Past Questions Agent
Your School's Whatsapp Group - Join Us now
WAEC and NECO CBT Software for Computers and Laptops - Candidates, Schools, Centres, Resellers - 100% Offline -Download Now
Post-UTME Past Questions - Original materials are available here - Download PDF for your school of choice + 1 year SMS alerts
Post-UTME Past Questions - Original materials are available here - Download PDF for your school of choice + 1 year SMS alerts
Your School's Whatsapp Group - Join Us now
Post UTME Past Questions Agent
WAEC and NECO CBT Software for Computers and Laptops - Candidates, Schools, Centres, Resellers - 100% Offline -Download Now