Font size
WorksheetsTheory of Computation 2 (inc. BNF)
Total questions: 24
Worksheet time: 12mins
In computational thinking, representational abstraction is the process of
removing unnecessary detail
providing additional information
enhancing and amending detail
embellish the current detail
Data abstraction is similar in concept to functional abstraction, where ...
the details of how the data is represented in the computer are hidden
each piece of data is broken down into its binary equivalent
all the bytes of data are placed in an abstract tree structure for easy retrieval
the concept of how data is contained is philosophically approached
Composition is the opposite of decomposition, where decomposition is
the breaking down a problem into smaller parts (sub-problems), each of which perform a specific task
the construction of an overall blueprint of the program, including methods and functions
the creation of the layout of pseudocode that can be converted to a composition diagram
the adjustment of the code to enable parallel processing of what might be sequential programming statements
Problem abstraction involves removing details to represent the problem in a way it can be solved, by
reducing down to problems that have been solved
removing the more challenging aspects of the problem
recalculating the more challenging algorithms until the problem does not exist
re-calibrating the key criteria of the issue until the symptomatic criteria have been neutralised
finite state machines are useful for
modelling and design of computer programs as well as digital hardware systems
showing notation for context-free grammars, describing the syntax of languages
providing tools to facilitate communication, measurement, commerce and manufacturing
knowing the framework around technology integration
There are various symbols used in representing a Finite State Machine. They are named ...
State, Start state, Accept state and transition
State, Slow state, Fast state and Progression
Start, Go state, Stop state and Halt
Begin state, Engage state, Process and Halt
A FSM (Finite State Machine) with outputs is called a
Mealy Machine
Finite State Machine with Output
Mechanical Machine
Making Machine
Which of the following is an example of a BNF production rule?
<digit> ::= 0|1|2|3|4|5|6|7|8|9
R → (B → 5)
x + y2 → 17
x2 + 3y
What type of object is enclosed in angle brackets in Backus-Naur form?
Definitive
Terminal
Non-terminal
Special
What name is given to an object in Backus-Naur form that cannot be broken down further?
Definitive
Terminal
Non-terminal
Special
Which of the following examples is in valid Backus-Naur form for storing a multi- part name?
< Name> ::= < Name >
<Name> =:: <Forename> | <Surname>
<Name> ::= <Forename> <Surname>
<Name> ::= <Forename Surname>
Why is it that Backus-Naur form is capable of representing some languages that cannot be represented by regular expressions?
Backus-Naur form supports definitions
Backus-Naur form supports Recursion
Backus-Naur form supports Selection
Backus-Naur form supports Loops
Which of the following examples uses valid recursion?
<Number> ::= <Digit> | <Digit><Number>
<Name> ::= <Forename><Surname>
<Age> ::= <Digit>|<Digit><Digit>
<Name> ::= <Name>
What is the purpose of using Backus-Naur Form (BNF) in language syntax?
To create complex mathematical equations
To check language syntax and formulate simple production rules
To design user interfaces
To compile programming languages
What is Backus-Naur form used for?
Notating context-free languages.
Notating context-sensitive languages.
Notating regular languages.
Notating linear languages.
What does the pipe symbol (|) represent in Backus-Naur form?
The OR operator.
The AND operator.
The NOT operator.
The XOR operator.
What is recursion in Backus-Naur form used for?
To simplify expressions
To form more complex definitions
To eliminate non-terminals
To avoid using regular expressions
In Backus-Naur form, how is an integer defined?
As a digit or a digit followed by a letter
As a digit or a digit followed by an integer
As a letter or a letter followed by a digit
As a letter or a letter followed by an integer
What is a syntax diagram?
A visual representation of a regular language
A textual representation of a regular language
A visual representation of a programming language
A textual representation of a programming language
Which of the following can be used to simulate any turing machine?
Finite State Automaton
Counter machines
Universal Turing Machine
All of the above
Which of these explain the importance of Turing machines ?
Demonstrate the ability of humans to build computers
Provide a definition of what is computable
Used to prove that there are problems which cannot be solved by computers
Allow for the completion of complex mathematical calculations
Transition Function definition would be in the form of
δ(current state, write) = (new state, read, move)
δ(current state, read) = (new state, write, move)
δ(new state, read) = (current state, write, move)
δ(current state, read, new state,) = ( write, move)
A "Tractable" problem is on which ...
have a polynomial (or less) time solution
have no polynomial (or less) time solution
The Current State is S1 and Input is 1
What is the OUTPUT and Direction
1, L
1, R
0, L
0, R
