NEW
Font size
WorksheetsNeuroNex'25 Round 1
Total questions: 20
Worksheet time: 7mins
Output: The webpage background becomes light blue.
Input: Which CSS code gives this output?
<html>lightblue</html>
background: lightblue;
body {
color: lightblue;
}
body {
background-color: lightblue;
}
Output: (Image)
Input: Which loop prints these names?
for name in ['Ananya', 'Rahul', 'Sneha']:
print(name)
print(['Ananya', 'Rahul', 'Sneha'])
for name in ('Ananya', 'Rahul', 'Sneha')
print(name)
print('Ananya Rahul Sneha')
Output: 95
Input: Find the highest marks.
SELECT MAX(Marks) FROM Students;
SELECT Marks FROM Students ORDER BY Marks DESC;
SELECT MIN(Marks) FROM Students;
SELECT TOP 1 Marks FROM Students;
Output: AI&DS
Input: Which code gives this output?
dept = "AI" + "&DS"
print(dept)
print("AI" "&DS")
print("AI"&"DS")
dept = "AI", "&DS"
print(dept)
Output: A heading that says:
👉 Welcome to AI&DS Department
Input: Which HTML code produces this output?
<p>Welcome to AI&DS Department</p>
<head>Welcome to AI&DS Department</head>
<title>Welcome to AI&DS Department</title>
<h1>Welcome to AI&DS Department</h1>
Output: 5
Input: How many students are in the table?
SELECT * FROM Students;
SELECT COUNT(*) FROM Students;
SELECT COUNT(Name) FROM Students WHERE Department='AI&DS';
SELECT MAX(Marks) FROM Students;
Output: 10
Input: Which code gives this output?
x = 5
y = 5
print(x + y)
x = '5'
y = '5'
print(x + y)
x = 5
y = 2
print(x * y)
x = 10
print(x / 2)
Output: Deletes all AI&DS students.
Input:
DELETE FROM Students WHERE Department='AI&DS';
DROP TABLE Students;
DELETE * FROM Students;
DELETE Department='AI&DS';
Output: A text box where the user can type their name.
Input: Which HTML code gives this output?
<input>Enter your name</input>
<textbox>Enter your name</textbox>
<input type="text" placeholder="Enter your name">
<field>Enter your name</field>
Output: Even
Input: Which code gives this output?
n = 10
if n % 2 == 0:
print("Even")
else:
print("Odd")
n = 11
if n // 2:
print("Even")
else:
print("Odd")
n = 10
if n / 2 == 5:
print("Odd")
else:
print("Even")
print("Even" if n == 10 else "Odd")
Output: A link labeled "Visit Google" that goes to https://www.google.com
Input: Which HTML code gives this output?
<a href="https://www.google.com">Visit Google</a>
<link="https://www.google.com">Visit Google</link>
Output: HELLO
Input: Which code gives this output?
print("HELLO".capitalize())
text = "HELLO"
print(text.lower())
text = "hello"
print(text.upper())
print(upper("hello"))
Output: A button labeled "Click Me"
Input: Which code gives this output?
<click>Click Me</click>
<button>Click Me</button>
<input type="text" value="Click Me">
<btn>Click Me</btn>
Output: Python
Input: Which code gives this output?
s = "Python Programming"
print(s[6:])
s = "Python Programming"
print(s[7:])
s = "Python Programming"
print(s[::2])
s = "Python Programming"
print(s[:6])
Output: 4
Input: Which code produces this output?
print(sum(2,2))
def add(a, b):
return a + b
print(add(2, 2))
def add(a, b):
print(a + b)
add(2)
a, b = 2, 2
print(a * b)
Output: 9
Input: Which code produces this output?
print(max(3, 9, 5))
print(min(3, 9, 5))
print(sum(3, 9, 5))
print(3 + 9 - 5)
Output: 6
Input: Which code prints this?
nums = [1, 2, 3]
print(nums)
nums = [1, 2, 3]
print(len(nums))
nums = [1, 2, 3]
print(sum(nums))
nums = [1, 2, 3]
print(nums[1] + 3)
Output: True
Input: Which code prints this?
x = 5
y = 10
print(x > y)
x = y
print(True)
x = 5
y = 10
print(x < y)
x, y = 10, 5
print(x < y)
Output:
apple
banana
grape
Input: Which code gives this output?
for fruits in ["apple", "banana", "grape"]:
print(fruits[0])
print(fruits)
print(["apple", "banana", "grape"])
fruits = ["apple", "banana", "grape"]
for f in fruits:
print(f)
Output: 3.14
Input: Which code gives this output?
pi = 3.14
print(pi)
print("pi")
pi = "3.14"
print(pi + 1)
print(3,14)
