Sumanthamcmahon.files.wordpress.com



5. Data types and structures1. Go through the chapter and write your definition of each key term.2. Re-read the chapter and make 1-2 A4 revision notes.3. Answer the revision questions without using your notes. Use your notes/the book to mark/work out the answers so that you can mark them.TIME YOURSELF! Questions - 1 minute per markLook up the Computer Science Tutor on YouTube for more lessons.You may find that some of the questions refer to other chapters - it is good revision!!Chapter 5 Data types and structuresYour definitionData TypeIntegerRealCharBooleanFloating PointStringData structuresArraysLinked ListsSingly linked listsDoubly linked listsScopeProcedure ScopeModule ScopeProject ScopeGlobal ScopeOne-dimensional arraysTwo-dimensional arraysBinary Search Trees (BST)IndexB-TreeChapter 5 Data types and structures NotesRevision QuestionsWhat is the difference between an integer data type and real data type? (2 marks)____________________________________________________________________________________________________________________________________________________Complete these tables that represent AND, OR, NOT and XOR? (14 marks)OR InputInputOutput11100100ANDInputInputOutput11100100XORInputInputOutput11100100NOTInputOutput10Create a set of statements for the following paragraph and put them in a logical processing sequence: (4 marks)I get up early and open all my presents on Christmas Day. My dad creeps into my room hoping not to wake me up late at night, but I often just pretend to be asleep. It’s my mum and dad’s fault really as they insist that I go to bed early on Christmas Eve.________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________Describe the difference between a one-dimensional array and two-dimensional array. (4 marks)_______________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________Draw a binary tree to show the possible outcomes of tossing a coin eight separate times in terms of heads and tails. (4 marks) Describe two kinds of scope used in programming (5 marks)__________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________Describe what the following piece of code does. (4 marks)function roll() { return mt_rand (1,6);}echo roll(); ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download