#(text-colour:#ffab69)[Code Snippet Guess]
(text-colour:#d8ffcc)[[[How To Play|tutr]]]
(text-colour:#fffca8)[[[Play|Play]]]
(text-colour:#ffd1a8)[[[About|About]]]
(set: $trial to it + 1)
<span class="Q">Guess the programming language and choose the correct one</span> <pre class="code-style">
`for (int i = 0; i < 10; i++) {
printf("Loop iteration: %d\n", i);
}`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">
[[   C|t]]
[[   SQL|f]]
[[   Python|f]]
[[   C++|f]]</span>]</span>(set: $score to it + 1)
Trial $trial - You got it right
<span class="corin">
Next trial? <span class="nobr">
(text-colour:#aeffa8)[[[Yes   |Hard]]]
(text-color:#ff3838)[[[   No|Final]]]
</span></span>(set: $score to it - 1)
Trial $trial You got it wrong
<span class="corin">
Do one more trial? <span class="nobr">
(text-colour:#aeffa8)[[[Yes   |Hard]]]
(text-color:#ff3838)[[[   No|Final]]]
</span></span>
Number of trials : $trial
Final Score: $score
[[Play again|Play]]
[[Goto Menu|Menu]]
(set: $trial to it + 1)
<span class="Q">Guess the programming language and choose the correct one</span> <pre class="code-style">
`int day = 3;
switch (day) {
case 1:
System.out.println("Monday");
break;
case 2:
System.out.println("Tuesday");
break;
case 3:
System.out.println("Wednesday");
break;
default:
System.out.println("Another day");
}`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[   Java|t]]
[[   Python|f]]
[[   SQL|f]]
[[   C|f]]</span>] </span>(set: $trial to it + 1)
<span class="Q">Guess the programming language and choose the correct one</span> <pre class="code-style">
INSERT INTO Students (ID, Name, Age)
VALUES (1, 'Alice', 20);
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[   Java|f]]
[[   Python|f]]
[[   C++|f]]
[[   SQL|t]]</span>] </span>
<span class="notes">
This game is made with Twine – a free and easy tool for creating interactive, link-based stories and games.
Official website for twine: <a href="https://twinery.org/" target="_blank">twinery.org</a>
</span><pre class="code-style">`© 2025 DevDithu.
This game and its content are original works.
Don't re-upload or clone it without permission.`
</pre>
(text-colour:#fffca8)[[[Play Now|Play]]]
(text-colour:#c98fff)[[[Goto Menu|Menu]]]
</span>(set: $trial to it + 1)
<span class="Q">Guess the programming language and choose the correct one</span> <pre class="code-style">
DELETE FROM Students
WHERE ID = 1;
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[   C++|f]]
[[   SQL|t]]
[[   Java|f]]
[[   C|f]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the programming language and choose the correct one</span> <pre class="code-style">
`for (int i = 0; i < 5; i++) {
System.out.println("Loop: " + i);
}`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[   SQL|f]]
[[   Java|t]]
[[   C|f]]
[[   C++|f]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the programming language and choose the correct one</span> <pre class="code-style">
x = 10
if x > 5:
print("x is greater than 5")
else:
print("x is 5 or less")
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">
[[   SQL|f]]
[[   Java|f]]
[[   C|f]]
[[   Python|t]]
</span>]</span>
(set: $trial to it + 1)
<span class="Q">Guess the programming language and choose the correct one</span> <pre class="code-style">
SELECT * FROM Students;
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[   Java|f]]
[[   Python|f]]
[[   SQL|t]]
[[   C|f]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the programming language and choose the correct one</span> <pre class="code-style">
`class Car {
public:
Car(std::string brand) {
std::cout << "Car brand: " << brand << std::endl;
}
};
int main() {
Car myCar("Toyota");
return 0;
}`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[   SQL|f]]
[[   C++|t]]
[[   Python|f]]
[[    Java|f]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the programming language and choose the correct one</span> <pre class="code-style">
`int i = 0;
while (i < 5) {
printf("i is %d\n", i);
i++;
}`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">
[[   C|t]]
[[   Java|f]]
[[   Python|f]]
[[   SQL|f]]</span>]</span>
(set: $trial to it + 1)
<span class="Q">Guess the programming language and choose the correct one</span> <pre class="code-style">
`public static void greet(String name) {
System.out.println("Hello, " + name);
}
// Inside main method
greet("Alice");`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[   Python|f]]
[[   C|f]]
[[   SQL|f]]
[[   Java|t]]</span>]</span>
(set: $trial to it + 1)
<span class="Q">Guess the programming language and choose the correct one</span> <pre class="code-style">
def greet(name):
print("Hello,", name)
greet("Alice")
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">
[[   SQL|f]]
[[   C++|f]]
[[   Python|t]]
[[   C|f]]
</span>]</span>(set: $trial to it + 1)
<span class="Q">Guess the programming language and choose the correct one</span> <pre class="code-style">
CREATE TABLE Students (
ID INT PRIMARY KEY,
Name VARCHAR(100),
Age INT
);
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[   SQL|t]]
[[   C++|f]]
[[   Python|f]]
[[   Java|f]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the programming language and choose the correct one</span> <pre class="code-style">
`int x = 5;
if (x > 0) {
printf("x is positive\n");
} else {
printf("x is not positive\n");
}`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">
[[   Python|f]]
[[   C|t]]
[[   C++|f]]
[[   Java|f]]</span>]</span>
<span class="head">
(b4r:"none","none","dashed")+(b4r-size:1,1,0.8)+(b4r-colour:red,red,yellow)[How to Play]</span>
<span class="notes">
To play this game, you need some basic knowledge about popular programming languages.
When you're ready, a snippet of code from a random computer language will appear.
Your job is to guess the right language and choose it from the options listed below.
You can have as many as trials you want. You will gain 1 point for each correct answers and lose points for wrong answers depending on the game mode you choose. You can stop at anytime and your final score along with the number of trials you attempted will be displayed.
Good luck, have fun!
<span class="head">
(b4r:"none","none","dashed")+(b4r-size:1,1,0.8)+(b4r-colour:red,red,green)[EASY MODE]</span>
Questions will be asked only from basic programming languages like java, c, sql, python, etc..
If you got a question wrong, you will not lose any points
<span class="head">
(b4r:"none","none","dashed")+(b4r-size:1,1,0.8)+(b4r-colour:red,red,red)[HARD MODE]</span>
Questions can be asked from any computer languages -> pygame, ruby, dust, R, swift, html, xml, java script, java, c, c++, c#, sql, python.
If you got a question wrong, you will lose a point.
(text-colour:#fffca8)[[[Play Now|Play]]]
(text-colour:#c98fff)[[[Goto Menu|Menu]]]
</span>(set: $trial to it + 1)
<span class="Q">Guess the programming language and choose the correct one</span> <pre class="code-style">
`int add(int a, int b) {
return a + b;
}
// Later in main()
int result = add(3, 4);
printf("Sum is: %d\n", result);`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">
[[   Python|f]]
[[   Java|f]]
[[   C|t]]
[[   SQL|f]]</span>]</span>
(set: $trial to it + 1)
<span class="Q">Guess the programming language and choose the correct one</span> <pre class="code-style">
`void greet() {
std::cout << "Hello!" << std::endl;
}
void greet(std::string name) {
std::cout << "Hello, " << name << "!" << std::endl;
}
int main() {
greet();
greet("Alice");
return 0;
}`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[   Java|f]]
[[    SQL|f]]
[[   C++|t]]
[[   C|f]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the programming language and choose the correct one</span> <pre class="code-style">
`int main() {
std::vector<int> nums = {1, 2, 3};
nums.push_back(4);
for (int num : nums) {
std::cout << num << " ";
}
return 0;
}`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[ C|f]]
[[ Python|f]]
[[ C++|t]]
[[ SQL|f]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the programming language and choose the correct one</span> <pre class="code-style">
import java.util.Scanner;
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[   C|f]]
[[   Python|f]]
[[   Java|t]]
[[   SQL|f]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the programming language and choose the correct one</span> <pre class="code-style">
`int numbers[3] = {10, 20, 30};
printf("First number: %d\n", numbers[0]);`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">
[[   Pyton|f]]
[[   C++|f]]
[[   C|t]]
[[   SQL|f]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the programming language and choose the correct one</span> <pre class="code-style">
`label start:
"Hello, world!"
return`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">
[[   C++|f]]
[[   C|f]]
[[   Python|t]]
[[   SQL|f]]</span>]</span>(set: $trial to it + 1)
<span class="Q">Guess the programming language and choose the correct one</span> <pre class="code-style">
`class Animal {
public:
// Constructor
Animal() {
std::cout << "An animal is born!" << std::endl;
}
// Destructor
~Animal() {
std::cout << "An animal is destroyed." << std::endl;
}
void speak() {
std::cout << "The animal makes a sound." << std::endl;
}
};
`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[   C|f]]
[[   C++|t]]
[[    Java|f]]
[[   SQL|f]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the programming language and choose the correct one</span> <pre class="code-style">
`
const greet = name => ```Hello, ${name}!```;
console.log(greet("Dithu"));
`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[   C|f]]
[[   SQL|f]]
[[   JavaScript|t]]
[[   Java|f]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the programming language and choose the correct one</span> <pre class="code-style">
`
function shuffle(array) {
return array.sort(() => Math.random() - 0.5);
}
`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[   SQL|f]]
[[   Python|f]]
[[   JavaScript|t]]
[[   Java|f]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the programming language and choose the correct one</span> <pre class="code-style">
`
class Person {
public:
Person(string n) {
cout << "Hello, " << n << "!" << endl;
}
};
int main() {
Person p("Alice");
return 0;
}
`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[   Python|f]]
[[   JavaScript|f]]
[[   C|t]]
[[   Java|f]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the programming language and choose the correct one</span> <pre class="code-style">
`
document.getElementById("btn").addEventListener("click", () => {
document.body.classList.toggle("dark-mode");
});
`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[   Java|f]]
[[   C|f]]
[[   SQL|f]]
[[   JavaScript|t]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the programming language and choose the correct one</span> <pre class="code-style">
`
let nums = [1, 2, 3];
let squares = nums.map(n => n * n);
console.log(squares);
`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[   JavaScript|t]]
[[   C|f]]
[[   C++|f]]
[[   Python|f]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the programming language and choose the correct one</span> <pre class="code-style">
`
fetch('https://api.example.com/data')
.then(res => res.json())
.then(data => console.log(data));
`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[   Python|f]]
[[   C++|f]]
[[   JavaScript|t]]
[[   C|f]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the programming language and choose the correct one</span> <pre class="code-style">
`
void swap(int *a, int *b) {
int temp = *a;
*a = *b;
*b = temp;
}
`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[   SQL|f]]
[[   C++|f]]
[[   C|t]]
[[   Python|f]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the programming language and choose the correct one</span> <pre class="code-style">
`
function debounce(func, delay) {
let timer;
return function(...args) {
clearTimeout(timer);
timer = setTimeout(() => func.apply(this, args), delay);
};
}
`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[   C++|f]]
[[   JavaScript|t]]
[[   Python|f]]
[[   SQL|f]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the programming language and choose the correct one</span> <pre class="code-style">
`
fp = fopen("example.txt", "w");
fprintf(fp, "Hello, File!");
fclose(fp);
`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[   JavaScript|f]]
[[   Python|f]]
[[    SQL|f]]
[[    C|t]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the programming language and choose the correct one</span> <pre class="code-style">
`
squares = [x**2 for x in range(5)]
print(squares)
`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[    C++|f]]
[[    Java|f]]
[[    Python|t]]
[[    SQL|f]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the programming language and choose the correct one</span> <pre class="code-style">
`
person = {"name": "Alice", "age": 25}
print(person["name"])
`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[   C|f]]
[[   Python|t]]
[[   JavaScript|f]]
[[   C++|f]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the programming language and choose the correct one</span> <pre class="code-style">
`
def greet(name="World"):
print(f"Hello, {name}!")
greet()
greet("Bob")
`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[   SQL|f]]
[[   Java|f]]
[[   Python|t]]
[[   C++|f]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the programming language and choose the correct one</span> <pre class="code-style">
`
public class Hello {
public static void main(String[] args) {
System.out.println("Hello, Java!");
}
}
`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[   C++|f]]
[[   Java|t]]
[[   Python|f]]
[[   SQL|f]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the programming language and choose the correct one</span> <pre class="code-style">
`
numbers = [1, 2, 3]
for n in numbers:
print(n * 2)
`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[   JavaScript|f]]
[[   Python|t]]
[[   SQL|f]]
[[   C++|f]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the programming language and choose the correct one</span> <pre class="code-style">
`
#include <iostream>
using namespace std;
int main() {
cout << "Welcome to C++!" << endl;
return 0;
}
`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[   C++|t]]
[[   JavaScript|f]]
[[   SQL|f]]
[[   Python|f]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the programming language and choose the correct one</span> <pre class="code-style">
`
SELECT name FROM students WHERE grade > 80;
`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[   C|f]]
[[   SQL|t]]
[[   Java|f]]
[[   Python|f]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the programming language and choose the correct one</span> <pre class="code-style">
`
import java.util.Scanner;
public class InputTest {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String name = sc.nextLine();
System.out.println("Hi, " + name);
}
}
`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[   SQL|f]]
[[   Python|f]]
[[   Java|t]]
[[   JavaScript|f]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the programming language and choose the correct one</span> <pre class="code-style">
`
int a = 10, b = 20;
printf("Sum: %d", a + b);
`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[   C|t]]
[[   SQL|f]]
[[   JavaScript|f]]
[[   Python|f]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the programming language and choose the correct one</span> <pre class="code-style">
`
public static int Random()
{
int num = (int) (Math.random() * 6);
return num;
}
`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[   JavaScript|f]]
[[   Java|t]]
[[   SQL|f]]
[[    Python|f]]</span>] </span>
(text-colour:green)[(b4r:"none","none","outset")+(b4r-colour:white,white,cyan)[CHOOSE YOUR GAME MODE]]
(text-colour:#d8ffcc)[[[Easy|Easy]]]
(text-colour:#ff5858)[[[Hard|Hard]]]
(set: $score to 0)
(set: $trial to 0)<br>
<span class="random">
(text-colour:#ff5858)[**MODE HARD**]
(b4r:"none","none","inset")+(b4r-colour:white,white,yellow)[TRIAL (print: $trial + 1) ]</span>
ARE YOU READY?!
(color: #ffea8f)[(set: $texts to (a:
"[[Yes|51]]",
"[[Yes|52]]",
"[[Yes|53]]",
"[[Yes|54]]",
"[[Yes|55]]",
"[[Yes|56]]",
"[[Yes|57]]",
"[[Yes|58]]",
"[[Yes|59]]",
"[[Yes|60]]",
"[[Yes|61]]",
"[[Yes|62]]",
"[[Yes|63]]",
"[[Yes|64]]",
"[[Yes|65]]",
"[[Yes|66]]",
"[[Yes|67]]",
"[[Yes|68]]",
"[[Yes|69]]",
"[[Yes|70]]",
"[[Yes|71]]",
"[[Yes|72]]",
"[[Yes|73]]",
"[[Yes|74]]",
"[[Yes|75]]",
"[[Yes|76]]",
"[[Yes|77]]",
"[[Yes|78]]",
"[[Yes|79]]",
"[[Yes|80]]",
"[[Yes|81]]",
"[[Yes|82]]",
"[[Yes|83]]",
"[[Yes|84]]",
"[[Yes|85]]",
"[[Yes|86]]",
"[[Yes|87]]",
"[[Yes|88]]",
"[[Yes|89]]",
"[[Yes|90]]",
"[[Yes|91]]",
"[[Yes|95]]",
"[[Yes|93]]",
"[[Yes|96]]",
"[[Yes|92]]",
"[[Yes|94]]",
"[[Yes|97]]",
"[[Yes|98]]",
"[[Yes|99]]",
"[[Yes|100]]"
))
(either: ...$texts)
[[No, I want to quit|Final]]]
Number of trials: $trial
Your current score: $score
<!--{ for { and } for } , \# for # , < for < , > for > , [ ] with \[ \] -->
<br>
<span class="random">
(text-colour:lime)[**MODE EASY**]
(b4r:"none","none","inset")+(b4r-colour:white,white,yellow)[TRIAL (print: $trial + 1) ]</span>
ARE YOU READY?!
(color: #ffea8f)[(set: $texts to (a:
"[[Yes|1]]",
"[[Yes|2]]",
"[[Yes|3]]",
"[[Yes|4]]",
"[[Yes|5]]",
"[[Yes|6]]",
"[[Yes|7]]",
"[[Yes|8]]",
"[[Yes|9]]",
"[[Yes|10]]",
"[[Yes|11]]",
"[[Yes|12]]",
"[[Yes|13]]",
"[[Yes|14]]",
"[[Yes|15]]",
"[[Yes|16]]",
"[[Yes|17]]",
"[[Yes|18]]",
"[[Yes|19]]",
"[[Yes|20]]",
"[[Yes|21]]",
"[[Yes|22]]",
"[[Yes|23]]",
"[[Yes|24]]",
"[[Yes|25]]",
"[[Yes|26]]",
"[[Yes|27]]",
"[[Yes|28]]",
"[[Yes|29]]",
"[[Yes|30]]",
"[[Yes|31]]",
"[[Yes|32]]",
"[[Yes|33]]",
"[[Yes|34]]",
"[[Yes|35]]",
"[[Yes|36]]",
"[[Yes|37]]",
"[[Yes|38]]",
"[[Yes|39]]"
))
(either: ...$texts)
[[No, I want to quit|Final]]]
Number of trials: $trial
Your current score: $score
<!--{ for { and } for } , \# for # , < for < , > for > , [ ] with \[ \] -->
(set: $trial to it + 1)
<span class="Q">Guess the computer language and choose the correct one</span> <pre class="code-style">
`<button onclick="alert('Clicked!')">Click me</button>`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[ HTML|true]]
[[ SQL|false]]
[[ C|false]]
[[ JavaScript|false]]
[[ Python|false]]
[[ XML|false]]
[[ Swift|false]]
[[ R|false]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the computer language and choose the correct one</span> <pre class="code-style">
`<img src="image.jpg" alt="A beautiful image" />`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[ HTML|true]]
[[ Dust|false]]
[[ C++|false]]
[[ Ruby|false]]
[[ Pygame|false]]
[[ SQL|false]]
[[ C|false]]
[[ Java|false]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the computer language and choose the correct one</span> <pre class="code-style">
`array = [1, 2, 3].map { |n| n * 2 }`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[ XML|false]]
[[ Ruby|true]]
[[ Swift|false]]
[[ C|false]]
[[ JavaScript|false]]
[[ HTML|false]]
[[ Python|false]]
[[ R|false]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the computer language and choose the correct one</span> <pre class="code-style">
`def greet(name)\n "Hello, #{name}!"\nend`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[ R|false]]
[[ SQL|false]]
[[ Ruby|true]]
[[ Python|false]]
[[ Swift|false]]
[[ JavaScript|false]]
[[ Dust|false]]
[[ C++|false]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the computer language and choose the correct one</span> <pre class="code-style">
`5.times { |i| puts i }`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[ Swift|false]]
[[ Ruby|true]]
[[ Java|false]]
[[ C#|false]]
[[ C|false]]
[[ HTML|false]]
[[ Pygame|false]]
[[ XML|false]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the computer language and choose the correct one</span> <pre class="code-style">
`puts "Hello, world!"`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[ JavaScript|false]]
[[ Python|false]]
[[ Ruby|true]]
[[ SQL|false]]
[[ Dust|false]]
[[ C++|false]]
[[ HTML|false]]
[[ R|false]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the computer language and choose the correct one</span> <pre class="code-style">
`<a href="https://example.com">Visit Site</a>`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[ HTML|true]]
[[ Java|false]]
[[ Swift|false]]
[[ R|false]]
[[ SQL|false]]
[[ Python|false]]
[[ C#|false]]
[[ Dust|false]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the computer language and choose the correct one</span> <pre class="code-style">
`class Person\n def initialize(name)\n @name = name\n end\nend`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[ Ruby|true]]
[[ Java|false]]
[[ C++|false]]
[[ Pygame|false]]
[[ Swift|false]]
[[ Dust|false]]
[[ C#|false]]
[[ HTML|false]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the computer language and choose the correct one</span> <pre class="code-style">
`<div class="container"><p>Hello World!</p></div>`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[ Ruby|false]]
[[ JavaScript|false]]
[[ HTML|true]]
[[ Pygame|false]]
[[ SQL|false]]
[[ C++|false]]
[[ XML|false]]
[[ C#|false]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the computer language and choose the correct one</span> <pre class="code-style">
`{@if cond="x == y"}Equal{@/if}`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[ Dust|true]]
[[ SQL|false]]
[[ C|false]]
[[ C++|false]]
[[ Ruby|false]]
[[ JavaScript|false]]
[[ HTML|false]]
[[ R|false]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the computer language and choose the correct one</span> <pre class="code-style">
`{#names}{name}{/names}`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[ HTML|false]]
[[ JavaScript|false]]
[[ R|false]]
[[ Dust|true]]
[[ Python|false]]
[[ Ruby|false]]
[[ Swift|false]]
[[ XML|false]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the computer language and choose the correct one</span> <pre class="code-style">
`{! This is a comment !}`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[ Dust|true]]
[[ HTML|false]]
[[ Ruby|false]]
[[ R|false]]
[[ C++|false]]
[[ Pygame|false]]
[[ SQL|false]]
[[ Swift|false]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the computer language and choose the correct one</span> <pre class="code-style">
`{>header/}`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[ Python|false]]
[[ Dust|true]]
[[ Swift|false]]
[[ Java|false]]
[[ XML|false]]
[[ R|false]]
[[ Ruby|false]]
[[ C#|false]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the computer language and choose the correct one</span> <pre class="code-style">
`plot(cars)`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[ R|true]]
[[ SQL|false]]
[[ C|false]]
[[ Pygame|false]]
[[ JavaScript|false]]
[[ Ruby|false]]
[[ Swift|false]]
[[ XML|false]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the computer language and choose the correct one</span> <pre class="code-style">
`mean(c(5, 10, 15))`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[ Python|false]]
[[ R|true]]
[[ HTML|false]]
[[ Dust|false]]
[[ C#|false]]
[[ Java|false]]
[[ SQL|false]]
[[ Ruby|false]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the computer language and choose the correct one</span> <pre class="code-style">
`lm(y ~ x, data = df)`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[ R|true]]
[[ Java|false]]
[[ Python|false]]
[[ Ruby|false]]
[[ SQL|false]]
[[ HTML|false]]
[[ C#|false]]
[[ Dust|false]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the computer language and choose the correct one</span> <pre class="code-style">
`summary(c(1, 2, 3, 4))`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[ Swift|false]]
[[ R|true]]
[[ Ruby|false]]
[[ C++|false]]
[[ Dust|false]]
[[ Python|false]]
[[ Java|false]]
[[ HTML|false]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the computer language and choose the correct one</span> <pre class="code-style">
`sprite = pygame.sprite.Sprite()`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[ Pygame|true]]
[[ C#|false]]
[[ Swift|false]]
[[ HTML|false]]
[[ Python|false]]
[[ R|false]]
[[ Java|false]]
[[ XML|false]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the programming language and choose the correct one</span>
<pre class="code-style">
`List<int> numbers = new List<int>() { 1, 2, 3 };
numbers.ForEach(n => Console.WriteLine(n));`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">
[[   Python|false]]
[[   R|false]]
[[   Java|false]]
[[   JavaScript|false]]
[[   C#|true]]
[[   C++|false]]
[[   HTML|false]]
[[   XML|false]]
</span>]</span>
(set: $trial to it + 1)
<span class="Q">Guess the computer language and choose the correct one</span> <pre class="code-style">
`{.sectionName}{title}{/sectionName}`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[ JavaScript|false]]
[[ Dust|true]]
[[ XML|false]]
[[ C#|false]]
[[ Java|false]]
[[ C|false]]
[[ HTML|false]]
[[ Ruby|false]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the computer language and choose the correct one</span> <pre class="code-style">
`data <- read.csv("file.csv")`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[ R|true]]
[[ C++|false]]
[[ XML|false]]
[[ HTML|false]]
[[ JavaScript|false]]
[[ Dust|false]]
[[ C|false]]
[[ Swift|false]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the programming language and choose the correct one</span>
<pre class="code-style">
`for (int i = 0; i < 10; i++) {
printf("Loop iteration: %d\n", i);
}`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">
[[   C|true]]
[[   Java|false]]
[[   Ruby|false]]
[[   SQL|false]]
[[   Python|false]]
[[   C#|false]]
[[   R|false]]
[[   HTML|false]]
</span>]</span>
(set: $trial to it + 1)
<span class="Q">Guess the computer language and choose the correct one</span> <pre class="code-style">
`func greet(name: String) -> String {\n return "Hello, \\(name)"\n}`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[ JavaScript|false]]
[[ C#|false]]
[[ Python|false]]
[[ Ruby|false]]
[[ Swift|true]]
[[ XML|false]]
[[ HTML|false]]
[[ R|false]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the computer language and choose the correct one</span> <pre class="code-style">
`enum Direction {\n case north, south, east, west\n}`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[ Swift|true]]
[[ XML|false]]
[[ R|false]]
[[ HTML|false]]
[[ C|false]]
[[ Pygame|false]]
[[ SQL|false]]
[[ Ruby|false]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the computer language and choose the correct one</span> <pre class="code-style">
`let greeting = "Hello, Swift!"`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[ Ruby|false]]
[[ Swift|true]]
[[ R|false]]
[[ HTML|false]]
[[ JavaScript|false]]
[[ SQL|false]]
[[ Python|false]]
[[ Dust|false]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the programming language and choose the correct one</span>
<pre class="code-style">
`using System;
class Program {
static void Main() {
Console.WriteLine("Hello from C#");
}
}`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">
[[   C#|true]]
[[   SQL|false]]
[[   Python|false]]
[[   HTML|false]]
[[   Java|false]]
[[   Dust|false]]
[[   C++|false]]
[[   JavaScript|false]]
</span>]</span>
(set: $trial to it + 1)
<span class="Q">Guess the computer language and choose the correct one</span> <pre class="code-style">
`var score: Int = 42`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[ Swift|true]]
[[ C++|false]]
[[ Ruby|false]]
[[ Java|false]]
[[ Pygame|false]]
[[ HTML|false]]
[[ SQL|false]]
[[ R|false]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the computer language and choose the correct one</span> <pre class="code-style">
`pygame.draw.rect(screen, (255, 0, 0), (50, 50, 100, 100))`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[ SQL|false]]
[[ Pygame|true]]
[[ JavaScript|false]]
[[ HTML|false]]
[[ C++|false]]
[[ XML|false]]
[[ Swift|false]]
[[ R|false]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the computer language and choose the correct one</span> <pre class="code-style">
`import pygame\npygame.init()`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[ Swift|false]]
[[ Pygame|true]]
[[ HTML|false]]
[[ Ruby|false]]
[[ SQL|false]]
[[ R|false]]
[[ Dust|false]]
[[ C++|false]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the computer language and choose the correct one</span> <pre class="code-style">
`for event in pygame.event.get():\n if event.type == pygame.QUIT:\n running = False`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[ Python|false]]
[[ Pygame|true]]
[[ Ruby|false]]
[[ C|false]]
[[ HTML|false]]
[[ SQL|false]]
[[ Dust|false]]
[[ R|false]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the programming language and choose the correct one</span>
<pre class="code-style">
`#include <iostream>
int main() {
std::cout << "Hello, C++!" << std::endl;
return 0;
}`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">
[[   Swift|false]]
[[   C++|true]]
[[   Java|false]]
[[   Python|false]]
[[   Ruby|false]]
[[   HTML|false]]
[[   Dust|false]]
[[   SQL|false]]
</span>]</span>
(set: $trial to it + 1)
<span class="Q">Guess the computer language and choose the correct one</span> <pre class="code-style">
`screen = pygame.display.set_mode((800, 600))`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[ XML|false]]
[[ Pygame|true]]
[[ Python|false]]
[[ HTML|false]]
[[ C#|false]]
[[ Java|false]]
[[ Ruby|false]]
[[ Dust|false]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the computer language and choose the correct one</span> <pre class="code-style">
`<config><setting name="dark_mode">true</setting></config>`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[ R|false]]
[[ C#|false]]
[[ JavaScript|false]]
[[ XML|true]]
[[ Python|false]]
[[ Swift|false]]
[[ SQL|false]]
[[ Ruby|false]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the programming language and choose the correct one</span>
<pre class="code-style">
`#include <stdio.h>
int main() {
printf("Hello, world!");
return 0;
}`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">
[[   Dust|false]]
[[   JavaScript|false]]
[[   XML|false]]
[[   C|true]]
[[   Python|false]]
[[   Swift|false]]
[[   Java|false]]
[[   C++|false]]
</span>]</span>
(set: $trial to it + 1)
<span class="Q">Guess the computer language and choose the correct one</span> <pre class="code-style">
`<items><item id="1"/></items>`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[ Ruby|false]]
[[ Dust|false]]
[[ HTML|false]]
[[ Java|false]]
[[ XML|true]]
[[ Swift|false]]
[[ SQL|false]]
[[ Pygame|false]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the computer language and choose the correct one</span> <pre class="code-style">
`<person age="30"><name>John</name></person>`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[ Python|false]]
[[ HTML|false]]
[[ XML|true]]
[[ SQL|false]]
[[ Ruby|false]]
[[ C++|false]]
[[ Dust|false]]
[[ Swift|false]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the computer language and choose the correct one</span> <pre class="code-style">
`<?xml version="1.0" encoding="UTF-8"?>`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[ Swift|false]]
[[ R|false]]
[[ XML|true]]
[[ HTML|false]]
[[ Java|false]]
[[ C|false]]
[[ Pygame|false]]
[[ Dust|false]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the computer language and choose the correct one</span> <pre class="code-style">
`<note><to>User</to><from>Admin</from></note>`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[ SQL|false]]
[[ JavaScript|false]]
[[ XML|true]]
[[ Python|false]]
[[ Dust|false]]
[[ Ruby|false]]
[[ HTML|false]]
[[ C++|false]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the computer language and choose the correct one</span> <pre class="code-style">
`struct User {\n var name: String\n var age: Int\n}`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">[[ Swift|true]]
[[ Java|false]]
[[ HTML|false]]
[[ SQL|false]]
[[ Python|false]]
[[ Ruby|false]]
[[ Dust|false]]
[[ C++|false]]</span>] </span>
(set: $trial to it + 1)
<span class="Q">Guess the programming language and choose the correct one</span>
<pre class="code-style">
`class MyClass {
public:
void sayHello() {
std::cout << "Hello!" << std::endl;
}
};`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">
[[   C++|true]]
[[   C|false]]
[[   Java|false]]
[[   Python|false]]
[[   XML|false]]
[[   Ruby|false]]
[[   JavaScript|false]]
[[   Swift|false]]
</span>]</span>
(set: $trial to it + 1)
<span class="Q">Guess the programming language and choose the correct one</span>
<pre class="code-style">
`public class Main {
public static void main(String[] args) {
System.out.println("Hello, Java!");
}
}`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">
[[   Java|true]]
[[   Python|false]]
[[   HTML|false]]
[[   SQL|false]]
[[   JavaScript|false]]
[[   Dust|false]]
[[   C++|false]]
[[   C#|false]]
</span>]</span>
(set: $trial to it + 1)
<span class="Q">Guess the programming language and choose the correct one</span>
<pre class="code-style">
`int sum(int a, int b) {
return a + b;
}`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">
[[   Ruby|false]]
[[   Swift|false]]
[[   C|false]]
[[   Java|true]]
[[   Pygame|false]]
[[   SQL|false]]
[[   XML|false]]
[[   JavaScript|false]]
</span>]</span>
(set: $trial to it + 1)
<span class="Q">Guess the programming language and choose the correct one</span>
<pre class="code-style">
`const greet = (name) => {
console.log(` ` `Hello, ${name}!` ` `);
};
`
greet("DevDithu");
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">
[[   JavaScript|true]]
[[   Python|false]]
[[   Java|false]]
[[   Swift|false]]
[[   Ruby|false]]
[[   C++|false]]
[[   R|false]]
[[   HTML|false]]
</span>]</span>
(set: $trial to it + 1)
<span class="Q">Guess the programming language and choose the correct one</span>
<pre class="code-style">
`let numbers = [1, 2, 3, 4, 5];
let doubled = numbers.map(n => n * 2);
console.log(doubled);`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">
[[   JavaScript|true]]
[[   Dust|false]]
[[   SQL|false]]
[[   Java|false]]
[[   XML|false]]
[[   Python|false]]
[[   C|false]]
[[   C#|false]]
</span>]</span>
(set: $trial to it + 1)
<span class="Q">Guess the programming language and choose the correct one</span>
<pre class="code-style">
CREATE TABLE products (
id INT PRIMARY KEY,
name VARCHAR(50),
price DECIMAL(10, 2)
);
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">
[[   SQL|true]]
[[   Java|false]]
[[   C|false]]
[[   XML|false]]
[[   JavaScript|false]]
[[   Dust|false]]
[[   C#|false]]
[[   Python|false]]
</span>]</span>
(set: $trial to it + 1)
<span class="Q">Guess the programming language and choose the correct one</span>
<pre class="code-style">
`import java.util.ArrayList;
public class ListExample {
public static void main(String[] args) {
ArrayList<String> list = new ArrayList<>();
list.add("Java");
list.forEach(System.out::println);
}
}`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">
[[   C|false]]
[[   R|false]]
[[   Java|true]]
[[   Ruby|false]]
[[   Python|false]]
[[   XML|false]]
[[   C++|false]]
[[   Swift|false]]
</span>]</span>
(set: $trial to it + 1)
<span class="Q">Guess the programming language and choose the correct one</span>
<pre class="code-style">
`class Animal {
void sound() {
System.out.println("Generic animal sound");
}
}`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">
[[   Java|true]]
[[   HTML|false]]
[[   C++|false]]
[[   JavaScript|false]]
[[   Python|false]]
[[   SQL|false]]
[[   C#|false]]
[[   Dust|false]]
</span>]</span>
(set: $trial to it + 1)
<span class="Q">Guess the programming language and choose the correct one</span>
<pre class="code-style">
`SELECT name, age
FROM users
WHERE age > 18
ORDER BY age DESC;`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">
[[   SQL|true]]
[[   Python|false]]
[[   Ruby|false]]
[[   C++|false]]
[[   R|false]]
[[   Swift|false]]
[[   JavaScript|false]]
[[   HTML|false]]
</span>]</span>
(set: $trial to it + 1)
<span class="Q">Guess the programming language and choose the correct one</span>
<pre class="code-style">
`numbers = [1, 2, 3, 4, 5]
squared = [x**2 for x in numbers]
print(squared)`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">
[[   Python|true]]
[[   Dust|false]]
[[   Java|false]]
[[   XML|false]]
[[   C|false]]
[[   C#|false]]
[[   R|false]]
[[   JavaScript|false]]
</span>]</span>
(set: $trial to it + 1)
<span class="Q">Guess the programming language and choose the correct one</span>
<pre class="code-style">
`def greet(name):
print(f"Hello, {name}!")
greet("DevDithu")`
</pre><span class="options">
Options:
(text-colour:#ffe68c)[<span class="nobr">
[[   Python|true]]
[[   Ruby|false]]
[[   SQL|false]]
[[   C++|false]]
[[   Swift|false]]
[[   JavaScript|false]]
[[   HTML|false]]
[[   Java|false]]
</span>]</span>
(set: $score to it + 1)
Trial $trial - You got it right
<span class="corin">
Next trial? <span class="nobr">
(text-colour:#aeffa8)[[[Yes   |Easy]]]
(text-color:#ff3838)[[[   No|Final]]]
</span></span>Trial $trial You got it wrong
<span class="corin">
Do one more trial? <span class="nobr">
(text-colour:#aeffa8)[[[Yes   |Easy]]]
(text-color:#ff3838)[[[   No|Final]]]
</span></span>