WorksheetsJunk Genius
Total questions: 11
Worksheet time: 3hrs 31mins
Let me tell me a something "Are You Capable of Keep it as a Secret?"
WHAT IS THE OUTPUT OF THE FOLLOWING C CODE?
#include <stdio.h>
int main() {
int a=2,b=3,c=4;
printf("%d",a + ++b + ++c);
return 0;
}
9
10
11
Compiler error
WHAT IS THE OUTPUT OF THE FOLLOWING JAVA CODE?
public class Main {
public static void main(String[]args)
{
int x =10;
int y = x++ + ++x - --x ;
System.out.println(y);
}
}
10
11
9
0
WHAT IS THE OUTPUT OF THE FOLLOWING CODE?
class A:
def __init__ (self,x):
self.x = x
class B(A):
def __init__ (self,y):
super().__init__(y)
self.y = y
a = A(1)
b = B(2)
print(a.x, b.x, b.y)
1 1 2
1 2 2
2 2 2
Error
LET'S SOLVE THE TIME OLD MYSTERY
# Which came first "Hen" or "Egg"
mystery = ['🥚','🐔']
s = '🐔'
y = '🥚'
print(s.encode('unicode-escape').decode('ASCII'))
#ASCII value: \U0001f414
print(y.encode('unicode-escape').decode('ASCII'))
#ASCII value: \U0001f95a
mystery.sort()
print(mystery[0])
🥚
🐔
EPPUDRAA....
This file has a flag in plain sight (aka "in-the-clear"). Download flag.
Hint : Click the flag and just put the sequence inside the braces
(a)
Cryptography can be easy, do you know what ROT13 is?
(a)
Python scripts are invoked kind of like programs in the Terminal... Can you run this Python script using this password to get the flag?
Hint: -e(Encrypt)/-d(Decrypt)
(a)
Can you invoke help flags for a tool or binary? This program has extraordinarily helpful information...
(a)
