NEW
Font size
WorksheetsCode Blitz 40
Total questions: 21
Worksheet time: 11mins
Who developed Linux OS?
Richard Stallman
Linus Torvalds
Bill Gates
Steve Jobs
Which type of memory is non-volatile?
RAM
ROM
Cache
Register
Which protocol is used to send emails?
SMTP
HTTP
FTP
POP3
If 1010 in binary is converted to decimal, what is the value?
8
10
12
14
Which tech company created the first commercial quantum computer?
IBM
MICROSOFT
INTEL
What does NFT stand for?
Non-Fungible Token
New Future Technology
Non-Financial Transaction
Neural Function Tracker
How many bits are in a byte?
4
8
16
32
Which of the following is NOT a data type in JavaScript?
BOOLEAN
FLOAT
STRING
UNDEFINED
What will print(3**3) output in Python?
9
21
27
18
Which data structure uses LIFO (Last In, First Out)?
QUEUE
STACK
ARRAY
LINKED LIST
What is the purpose of a hash function in a hash table?
To sort elements
To map keys to indices
To store duplicate values
To create a queue
What does HTML stand for?
HyperText Makeup Language
Hyper Transfer Machine Language
HyperText Markup Language
Hyperlink Text Management Language
What does the following C code do?
int fun(int n) {
if (n == 0) return 1;
return n * fun(n - 1);
}
Calculates the sum of numbers from 1 to n
Calculates factorial of n
Prints numbers from 1 to n
Generates Fibonacci numbers
Identify the error in the following C code:
#include <stdio.h>
int main() {
int arr[5] = {1, 2, 3, 4, 5};
printf("%d", arr[5]);
return 0; }
No error
Array index out of bounds
Syntax error
Infinite loop
What will happen when the following Python code is executed?
print(1 == "1")
True
False
Error
None
What will the following Python code output?
list1 = [1, 2, 3]
list2 = list1
list2.append(4)
print(list1)
[1, 2, 3]
[1, 2, 3, 4]
[4, 2, 3]
Error
What will be the output of this C program?
#include <stdio.h>
int main()
{ int x = 10;
printf("%d %d %d", x++, x++, x);
return 0; }
10 11 12
12 11 10
Undefined behavior
10 10 10
What does the following JavaScript function return?
function test() {
return typeof arguments;
} console.log(test());
Object
Array
Undefined
Function
What will the output of this Python function be?
def fun(a, b=[]):
b.append(a)
return b
print(fun(1))
print(fun(2))
print(fun(3))
[1] [2] [3]
[1] [1, 2] [1, 2, 3]
Error
None
What will be the output of the following Java code?
public class Test {
public static void main(String[] args) {
System.out.println(10 + 20 + "Hello" + 10 + 20);
}
}
30Hello30
30Hello1020
Hello102030
Compilation error
What will be the output of this C++ code?
#include <iostream>
using namespace std;
int main() {
int arr[] = {10, 20, 30, 40, 50};
cout << *(arr + 3);
return 0;
}
10
20
30
40
