WorksheetsQuiz on Computational Thinking
Total questions: 40
Worksheet time: 20mins
Computational thinking primarily focuses on:
Memorizing facts
Step-by-step problem solving
Writing in natural language
Random guessing
Which of the following is NOT a feature of computational thinking?
Abstraction
Pattern recognition
Trial-and-error guessing
Decomposition
Computational thinking is mainly applied in:
Cooking recipes only
Solving mathematical, scientific, and real-world problems
Only computer programming
Art and painting only
Which of the following is a cornerstone of computational thinking?
Debugging
Abstraction
Recursion
Printing output
Pattern recognition in computational thinking means:
Ignoring differences
Identifying similarities to simplify solutions
Repeating the same program multiple times
Guessing answers
Breaking down a large task into smaller tasks is called:
Decomposition
Debugging
Overloading
Transformation
Which of these is NOT a characteristic of a good algorithm?
Finiteness
Ambiguity
Effectiveness
Definiteness
An algorithm must always:
Run infinitely
Have clear and unambiguous steps
Give multiple answers
Be written in C language only
A characteristic of a deterministic algorithm is:
Gives different outputs for the same input
Always produces the same output for the same input
Works without inputs
Randomly generates answers
A common problem-solving strategy in computer science is:
Guessing
Brute force, divide and conquer, greedy methods
Sleeping until the answer appears
None of these
Which strategy involves trying all possible solutions until the right one is found?
Divide and conquer
Greedy method
Brute force
Dynamic programming
In divide and conquer, problems are:
Ignored
Divided into smaller sub-problems
Multiplied to increase difficulty
Randomly solved
Boolean logic is based on values:
Numbers only
True and False
Characters only
Complex numbers
In Boolean algebra, the NOT operation:
Returns the same value
Inverts the value (True→False, False→True)
Multiplies numbers
Divides numbers
Expression: (A AND B) is true only if:
Both A and B are false
At least one is true
Both A and B are true
None of these
The OR operator returns true when:
Both operands are false
Both operands are true
At least one operand is true
It never returns true
Which of the following is the correct truth table result for XOR?
True only when inputs are equal
True only when inputs differ
Always false
Always true
Data organization refers to:
Arranging data for easy access and processing
Destroying data
Printing data randomly
Ignoring structure
Which of the following is an example of linear data structure?
Graph
Array
Tree
Heap
Non-linear data structures include:
Lists
Arrays
Graphs and Trees
Queues
A variable is best described as:
Fixed value
Named storage location in memory
Random number generator
A type of loop
Which of these is a valid variable name in most programming languages?
123name
total_sum
break
#amount
The value stored in a variable can:
Never be changed
Be updated during program execution
Only store numbers
Only store characters
A list is:
Collection of unrelated data
Ordered collection of elements
Random storage of data
Fixed only to numbers
An array stores:
Multiple values of same data type
Only a single value
Only characters
Values of different types randomly
Indexing in arrays generally starts from:
-1
0
1
Any random number
The length of array [10, 20, 30, 40] is:
2
3
4
5
Strings in programming are:
Numbers only
Sequences of characters
Always Boolean
Not data types
In most programming languages, a string is enclosed in:
Curly braces {}
Single or double quotes
Square brackets []
Parentheses ()
Which operation is valid for strings?
Concatenation
Division
Modulus
Exponentiation
Which cornerstone of computational thinking is used when ignoring unnecessary details?
Abstraction
Pattern recognition
Decomposition
Debugging
A well-defined algorithm must:
Have multiple meanings for each step
Always produce correct output in finite time
Run infinitely for accuracy
Be hardware-dependent only
Which Boolean expression is equivalent to NOT(A OR B)?
(NOT A) AND (NOT B)
(NOT A) OR (NOT B)
A AND B
A OR B
Problem-solving using past experiences to solve new problems relates to:
Pattern recognition
Brute force
Recursion
Randomization
If x=5 and y=10, what is the result of (x
True
False
Error
Null
Which of the following is the most efficient way to organize a phone directory?
Random list
Sorted array or tree
Storing in a single variable
Ignoring duplicates
What is the output of concatenating "Data" + "Science"?
DataScience
Error
Data Science (with space)
ScienceData
Which of the following is a mutable data structure in Python?
String
List
Tuple
None
Which operation accesses the 3rd element of an array arr?
arr[2]
arr[3]
arr[1]
arr[-1]
Boolean logic was introduced by:
George Boole
Charles Babbage
Alan Turing
John von Neumann
