cs200 Flashcards
What is a key feature of mobile computing that enables devices to continue their operation even when disconnected from a network?
a) Communication
b) Mobility
c) Scalability
d) Security
Mobility
Which component allows mobile devices to communicate wirelessly with other devices or networks?
a) Processor
b) Memory
c) Mobile Communication
d) Operating System
Mobile Communication
In mobile computing, which term refers to the interaction of mobile devices with cloud services for data storage and processing?
a) Mobile Hardware
b) Mobile Cloud Computing
c) Mobile Software
d) Mobile Platform
Mobile Cloud Computing
Which computer component is responsible for executing instructions?
a) RAM
b) Hard Drive
c) CPU
d) GPU
CPU
What does the acronym ALU stand for?
a) Assembly Logic Unit
b) Arithmetic Logic Unit
c) Array Linear Unit
d) Automatic Logical Understanding
Arithmetic Logic Unit
What is the main function of a computer’s RAM?
a) Temporary data storage for active processes
b) Long-term data storage
c) Processing power
d) Input and output management
Temporary data storage for active processes
Which paradigm emphasizes a sequence of statements to achieve a desired result?
a) Functional
b) Logic
c) Imperative
d) Object-oriented
Imperative
In which programming paradigm are functions treated as first-class citizens?
a) Functional
b) Imperative
c) Logic
d) Object-oriented
Functional
Which of the following is an example of object-oriented programming?
a) LISP
b) Java
c) Haskell
d) Prolog
Java
Which programming paradigm relies heavily on facts and rules for computation?
a) Object-oriented
b) Functional
c) Logic
d) Imperative
Logic
Which programming concept uses “composition” and “aggregation” to represent relationships between classes?
a) Object-oriented programming
b) Functional programming
c) Imperative programming
d) Logic programming
Object-oriented programming
Who is considered the father of lambda calculus, an important concept in functional programming?
a) Alonzo Church
b) Alan Turing
c) John von Neumann
d) Abu Ja’far Muhammad ibn Musa
Alonzo Church
Who developed the concept of a theoretical machine that forms the foundation of computer science and logic programming?
a) Gottfried Wilhelm Leibniz
b) Alan Turing
c) Ada Lovelace
d) Grace Hopper
Alan Turingx
Which mathematician contributed significantly to imperative programming through the creation of binary arithmetic?
a) Abu Ja’far Muhammad ibn Musa
b) Gottfried Wilhelm Leibniz
c) Alonzo Church
d) John Backus
Gottfried Wilhelm Leibniz
Who developed the context-free grammar and BNF notation used in the design of programming languages?
a) John Backus
b) Peter Naur
c) Donald Knuth
d) Alan Kay
John Backus
What is the term for the structure or form of expressions in a programming language?
a) Semantics
b) Syntax
c) Grammar
d) Lexeme
Syntax
Which type of semantics focuses on describing the meaning of programs by executing them on a machine?
a) Denotational Semantics
b) Static Semantics
c) Operational Semantics
d) Axiomatic Semantics
Operational Semantics
In EBNF, what symbol denotes repetition (0 or more occurrences)?
a) []
b) {}
c) ()
d) |
{}
What is the purpose of a parser in a compiler?
a) Translate high-level code to machine code
b) Analyze the structure of code and generate parse trees
c) Manage memory allocation
d) Optimize code execution
Analyze the structure of code and generate parse trees
Which of the following statements about grammar ambiguity is true?
a) Ambiguous grammar is always preferred in language design
b) Ambiguous grammar can generate multiple parse trees for the same string
c) Ambiguity in grammar does not affect program execution
d) Grammar ambiguity is not a real problem in programming
Ambiguous grammar can generate multiple parse trees for the same string
The component of a computer responsible for executing instructions and performing calculations.
CPU