wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Code decode questions

Total questions: 25

Worksheet time: 8mins

Name
Class
Date
1.

Which protocol is used by default for transferring web pages?

a)

FTP

b)

HTTP

c)

SSH

d)

SMTP

2.

Emoji: 🐙 + 🐱 = ?

a)

Docker

b)

GitHub

c)

GitLab

d)

Bitbucket

3.

In Python, what is the output of print(type((1, 2)))?

a)

list

b)

set

c)

tuple

d)

dict

4.

In C, what is x? int x = 2; x = x++ * ++x;

a)

4

b)

6

c)

8

d)

9

5.

Which SQL command is used to add new rows to a table?

a)

ADD

b)

UPDATE

c)

INSERT

d)

CREATE

6.

Emoji: 🔥 + 🧱 = ?

a)

Virus

b)

Firewall

c)

Encryption

d)

DB

7.

Logic: What does a=a+b; b=a-b; a=a-b; do?

a)

Doubles A

b)

Swaps A & B

c)

Resets

d)

Error

8.

In Python, what is the output of print(3 * 'A')?

a)

AAA

b)

3A

c)

Error

d)

A3

9.

What is the average time complexity of searching in a Hash Map?

a)

$O(n)$

b)

$O(\log n)$

c)

$O(1)$

d)

$O(n^2)$

10.

In C, what is c? int a=1, b=2; int c = a++ + ++b;

a)

3

b)

4

c)

5

d)

2

11.

Emoji: 🐍 + 🐼 = ?

a)

Pygame

b)

Numpy

c)

Pandas

d)

Matplotlib

12.

Who is known as the creator of the C programming language?

a)

Rossum

b)

Ritchie

c)

Gosling

d)

Bjarne

13.

What is the output of 5 >> 1?

a)

10

b)

2

c)

4

d)

2.5

14.

Which data structure follows the FIFO principle?

a)

Stack

b)

Tree

c)

Queue

d)

Graph

15.

Emoji: ☕ + 💻 = ?

a)

C++

b)

JavaScript

c)

Java

d)

Python

16.

In Python, what is the output of print(type({1, 2, 3}))?

a)

list

b)

set

c)

dict

d)

tuple

17.

In C, what is y? int x=5; int y = ++x + x++;

a)

10

b)

11

c)

12

d)

13

18.

Which Git command creates and switches to a new branch?

a)

branch -new

b)

checkout -b

c)

commit -b

d)

push

19.

What is the result of 15 ^ 15?

a)

15

b)

30

c)

0

d)

1

20.

Which HTML tag is used to create a hyperlink?

a)

<link>

b)

<a>

c)

<href>

d)

<url>

21.

Emoji: 🐜+ 🖥️ = ?

a)

Hacker

b)

Debugging

c)

Hardware

d)

CPU

22.

In C, what is a? int a=3; a = ++a + a++;

a)

6

b)

7

c)

8

d)

9

23.

Which Linux command is used to remove/delete a file?

a)

delete

b)

erase

c)

rm

d)

remove

24.

int x=5, y=10; int z = (x > y) ? x : y; What is z?

a)

5

b)

10

c)

15

d)

True

25.

Which of these is NOT a fundamental pillar of OOP?

a)

Encapsulation

b)

Inheritance

c)

Compilation

d)

Polymorphism