Hardware Reference
In-Depth Information
press two buttons simultaneously; one goes down irst followed by the other and so there is a
message for each. his is something to consider when using the joysticks in your own game.
The Software
After you have all the hardware prepared you are ready to put together the software support
for this project. his consists of two iles, a question bank and a screen background logo. You
need at least one ile containing the questions and answers; later on you might extend this to
more question banks, but for a start let's look at just one ile. You need a simple text ile, just
like those you can create with Leafpad. Place one question per line, with the question irst,
followed by the correct answer, and followed by three incorrect answers. Separate all the sec-
tions with commas including the last answer. You will see that there is a space between the
end of the last word and the comma, which allows the spacing in the box to look right. Listing
14-3 is a sample of the ile format with just a few questions on the subject of IT. You should
save it under the name questions.txt.
Listing 14-3 Sample Questions
How many bits in a byte? , 8 , 10 , 4 , 16 ,
Which company did Bill Gates start? , Microsoft , Apple , Google ,
Facebook ,
What is the largest? , Terabyte , Gigabyte , Megabyte , Kilobyte ,
Which country owns the WWW suffix .de? , Germany , France , Denmark
, Dominica ,
What is the command to list files in Windows? , dir , ls , cat ,
files ,
What does UNIX stand for? , Nothing , UNIt eXchange , The creators
name , UNidentified Integrated eXchange ,
Which of the following is an operating system? , Linux , Bantex ,
Hopex , Bandx ,
What computer language uses the tags <body> and <meta/>? , HTML ,
Java , Python , Scratch ,
What does DBMS stand for? , Database management system , Database
migration statistics , Database management statistics , Database
migration statistics ,
Who invented the web? , Tim Berners-Lee , Alan Turing , Clive
Sinclair , Stephen Hawking ,
What was the forerunner to the Internet called? , ARPANET , SKYNET
, OUTERNET , FASTNET ,
What does LAN stand for? , Local Area Network , Legitimate Access
Network , Local Access Network , Legitimate Area Network ,
What was the first stored-program computer called? , The Baby , The
Infant , The Newborn , The Tiny ,
Search WWH ::




Custom Search