Font size
WorksheetsBridge class
Total questions: 60
Worksheet time: 30mins
The symbol for factorial is an exclamation mark
@
!
$
%
The factorial of a number 5!
(a)
Basic logic gates in digital electronics
2
1
4
3
Rule of AND Gate
Outputs true (1) if at least one of its inputs is true.
inverts the input
Outputs true (1) only if all its inputs are true.
Outputs the opposite value of its single input
Logic for calculating the factorial
while(i<=n)
f=f*i;
i++
while(i=n)
f=f*i;
i++
while(i<n)
f=f*i;
i++
while(i<=!n)
f=f*i;
i++
Logic of Odd and Even Number
if(n%2==0)
if(n/2=0)
if(n%=2)
if(n==0)
Role of OR Gates
Outputs true (1) only if all its inputs are true.
inverts the input
Outputs true (1) only if all its inputs are true.
Outputs the opposite value of its single input
Logic for finding the square root
Use the Math.sqrt() function
Iteratively subtract numbers until reaching 0
Use the Math.pow() function with 0.5 as the exponent
Divide the number by 2 until reaching the square root
How many basic logic gates are there in digital electronics?
2
1
4
3
What is the logic for determining the square root of a number?
Use the Math.sqrt() function
Iteratively subtract numbers until reaching 0
Use the Math.pow() function with 0.5 as the exponent
Divide the number by 2 until reaching the square root
High-level programming languages were introduced in .............
1940
1991
1960
1950
Machine-level language were introduced in the.........
1940
1950
1960
1970
What is the standard form of a quadratic equation?
ax+by+c=0
ax2+bx+c=0
ax3+bx2+c=0
ax2+bx2+c=0
Definition of a palindrome number
A number that reads the same backward as forward
A number that is divisible by 2
A number that is a multiple of 5
A number that is even
How to calculate the area of a circle?
Area = π * r^2
Area = 2 * π * r
Area = 0.5 * π * r^2
Area = 3 * π * r^2
What is the logic behind calculating the area of a triangle?
Area = 0.5 * base * height
Area = base * height
Area = base + height
Area = 2 * base * height
What is the standard form of a linear equation?
ax+by=c
ax^2+by=c
ax^3+by^2=c
ax^2+by^2=c
When was the first computer virus discovered?
1970
1980
1990
2000
What is the logic behind calculating the perimeter of a rectangle?
Perimeter = 2 * (length + width)
Perimeter = length * width
Perimeter = length + width
Perimeter = 2 * length * width
What is the primary function of a compiler?
To execute code line by line
To convert high-level language code into machine code
To interpret code and execute it
To handle input/output operations
Which of the following statements is true about an interpreter?
It translates the entire program into machine code at once.
It translates and executes code line by line.
It requires more memory compared to a compiler.
It produces an intermediate object code.
What is the logic behind calculating the area of a square?
Area = side * side
Area = 2 * side
Area = 0.5 * side * side
Area = 3 * side * side
Definition of a prime number
A number that is divisible by 2
A number that is divisible by 1 and itself only
A number that is a multiple of 5
A number that is even
Which of the following sets correctly lists all positive odd numbers less than 50?
{1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 47, 49}
{1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 47}
{2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50}
{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30,
What is the cardinality of the power set P(S) of the set S={1,2,3} ?
2
4
6
8
Which of the following statements is true?
A set with no elements is called a null set.
A set with exactly one element is called a pair set.
A set with exactly two elements is called a triple set.
None of the above.
The order of the power set P(A)of a set A with n elements is:
2^n
n^2
2^n+1
n!
What is the formula for calculating the area of a rectangle?
Area = length + width
Area = length * width
Area = 2 * (length + width)
Area = length - width
Definition of a composite number
A number that has more than two distinct positive divisors
A number that is only divisible by 1 and itself
A number that is a multiple of 10
A number that is even
What is the logic for determining the maximum value in an array?
Iterate through the array and compare each element
Sort the array and take the last element
Use the Math.max() function
Divide the array into halves and compare
Which of the following sets is well-defined?
The set of all honest members in the family.
The set of all efficient doctors in the hospital.
The set of all prime numbers less than 100.
The set of all hardworking teachers in a school.
Which of the following is an example of an empty set?
The set of even natural numbers divisible by 3.
The set of all prime numbers divisible by 2.
The set of odd natural numbers divisible by 2.
All of the above.
What is the definition of an irrational number?
A number that can be expressed as a fraction of two integers
A number that cannot be expressed as a fraction of two integers
A number that is a whole number
A number that is a perfect square
Which of the following is an example of a finite set?
The set of all even numbers
The set of all natural numbers
The set of all prime numbers less than 50
The set of all integers
What is a palindrome?
A word that has more vowels than consonants
A number that can be divided evenly by 9
A sequence of characters that reads the same forward and backward
A sentence that contains a palindrome
Which of the following is a palindrome?
Level
Apple
Python
Function
Which of these numbers is a palindrome?
12321
12345
54321
67890
What is the output of a NAND Gate?
Outputs true (1) if at least one of its inputs is true.
Outputs false (0) only if all its inputs are true.
Outputs true (1) only if all its inputs are false.
Outputs the opposite value of its single input
Logic for determining if a number is prime
Check if the number is divisible by any number other than 1 and itself
Check if the number is even
Check if the number is greater than 1
Check if the number is a perfect square
What is the longest palindromic word in the English language?
Rotator
Racecar
Deified
Detartrated
Which of the following is NOT a palindrome?
Kayak
Rotor
Civic
Summer
What is the sum of the first 10 terms of the arithmetic series 2, 5, 8, 11, ...?
350
275
223
343
Which of the following is an example of an infinite set?
The set of all odd numbers
The set of all integers
The set of all natural numbers
The set of all prime numbers
Which of the following is an example of a perfect square?
16
20
22
25
Which of the following is an example of an irrational number?
3.14
1/2
√2
7
What does "RAM" stand for?
Random Access Memory
Read Access Memory
Rapid Access Memory
Regular Access Memory
What does "URL" stand for?
Uniform Resource Locator
Universal Resource Locator
Uniform Retrieval Locator
Universal Retrieval Locator
What does "USB" stand for?
Universal Serial Bus
Uniform Serial Bus
Universal Storage Bus
Uniform Storage Bus
How do you determine if a number is even?
Check if the number is divisible by 2
Check if the number is divisible by 3
Check if the number is greater than 0
Check if the number is a prime number
Brain Of Computer ?
CPU
Memory
Keyboard
Mouse
Which of the following is a characteristic of a prime number?
It has exactly two distinct positive divisors
It is divisible by 1 and itself only
It is an even number
It can be expressed as a product of two integers
What is the primary purpose of an operating system?
To manage hardware and software resources
To provide internet connectivity
To run applications
To protect against viruses
What does "HTTP" stand for?
Hypertext Transfer Protocol
Hypertext Transmission Protocol
High Transfer Text Protocol
High Transmission Text Protocol
Which of the following is an example of a prime number?
9
11
15
21
What is the formula for calculating the volume of a cylinder?
V = π * r^2 * h
V = 2 * π * r * h
V = π * r * h^2
V = r^2 * h
What is the primary function of the CPU?
To store data
To perform calculations and process instructions
To manage input and output devices
To provide power to the computer
Which of the following is a characteristic of a rational number?
It can be expressed as a fraction
It is always an integer
It cannot be expressed as a decimal
It is always a whole number
What is the formula for the area of a triangle?
Area = base * height
Area = 0.5 * base * height
Area = base + height
Area = base * height * 2
Which of the following is an example of a proper subset?
The set of all even numbers is a proper subset of the set of all integers.
The set of all prime numbers is a proper subset of the set of all natural numbers.
The set of all natural numbers is a proper subset of the set of all integers.
The set of all squares is a proper subset of the set of all numbers.
What is the main purpose of an interpreter?
To convert high-level language code into machine code
To execute code line by line
To compile code into an executable file
To optimize code for performance
