
Mix-N-Fix Round 1
Presentation
•
Computers
•
University
•
Practice Problem
•
Hard
MIX-N-FIX undefined
FREE Resource
7 Slides • 25 Questions
1
By MIX-N-FIX
MIX-N-FIX
2
ROUND-1
3
HTML
4
Multiple Choice
<html>
<body>
_____ src="cat.png" alt="Cute Cat">
</body>
</html>
<link>
<img>
<herf>
<links>
5
Multiple Choice
<form>
<textarea name="message" rows="4" cols="50" _______="Enter your message"></textarea>
</form>
value
placeholder
title
label
6
Multiple Choice
<html>
<body>
<h1>Welcome!</h1>
<p>Hello World</p>
</body>
</html>
Only “Hello World”
Welcome! and Hello World (big and normal text)
Nothing
7
Multiple Choice
Choose the correct HTML code to create an ordered list with three items: Apple, Banana, Mango
<ol>
<li>Apple</li>
<li>Banana</li>
<li>Mango</li>
</ol>
<ul>
<item>Apple</item>
<item>Banana</item>
<item>Mango</item>
</ul>
<order>
<li>Apple</li>
<li>Banana</li>
<li>Mango</li>
</order>
<ol>
<ol>Apple</ol>
<ol>Banana</ol>
<ol>Mango</ol>
8
Multiple Choice
Select the correct HTML code for creating a hyperlink
9
CSS
10
Multiple Choice
Complete the CSS code to add space inside an element:
div {
________: 20px;
}
margin
border
padding
spacing
11
Multiple Choice
How will the heading appear?
<!DOCTYPE html>
<html>
<head>
<style>
h1 {
text-align: center;
text-decoration: underline;
}
</style>
</head>
<body>
<h1>Title</h1>
</body>
</html>
Left aligned, underlined
Center aligned, underlined
Right aligned, not underlined
Center aligned, not underlined
12
Multiple Choice
button:__________ {
background-color: red;
}
active
hover
focus
visited
13
Multiple Choice
<div style="position: absolute; top: 0; left: 0; z-index: 5;">Box1</div>
<div style="position: absolute; top: 0; left: 0; z-index: 10;">Box2</div>
Box1
Box2
Both overlap equally
None
14
Multiple Choice
<!DOCTYPE html>
<html>
<head>
<style>
h1 {
text-align: center;
text-decoration: underline;
}
</style>
Left aligned, underlined
Left aligned, underlined
Right aligned, not underlined
Center aligned, not underlined
15
PYTHON
16
Multiple Choice
What will be the output of the following Python code?
s = "Python"
reversed_s = s[::-1]
print(reversed_s)
Python
nohtyP
Pytho
Error
17
Multiple Choice
Which of the following codes will produce the output:
[1, 4, 9, 16]
result = []
for i in range(1,5):
result.append(i*i)
print(result)
result = [i*i for i in range(1,4)]
print(result)
result = [i**2 for i in range(1,5)]
print(result)
result = []
for i in range(5):
result.append(i**2)
print(result)
18
Multiple Choice
Which line extracts "World" from the string?
data = "Hello World"
_____
print(word)
word = data[6:]
word = data[:5]
word = data.split()
word = data[6]
19
Multiple Choice
Fill the missing line so the output is:
Even
x = 6
if ___________:
print("Even")
else:
print("Odd")
x / 2 == 0
x % 2 == 0
x // 2 == 0
x % 2 = 0
20
Multiple Choice
Which line makes the output PYTHON?
x = "python"
______
print(x)
x.upper()
x = upper(x)
x = x.upper()
upper(x)
21
C & C++
22
Multiple Choice
Find Output
int x = 5;
printf("%d %d %d", x++, ++x, x);
5 7 7
5 6 7
Undefined behavior
6 7 7
23
Multiple Choice
What will be the output?
#include <stdio.h>
int main() {
int a = 10, b = 20;
if(a > b)
printf("A is greater");
else
printf("B is greater");
return 0;
}
A is greater
B is greater
Nothing
Compilation error
24
Multiple Choice
Fill in the missing line to print “Hello World” in C++.
#include <iostream>
using namespace std;
int main() {
_____________
return 0;
}
cout << "Hello World";
printf("Hello World");
cin << "Hello World";
cout >> "Hello World";
25
Multiple Choice
Find Output
#include <iostream>
using namespace std;
int main() {
cout << sizeof('A');
}
1
2
4
Depends on compiler
ERROR
26
Multiple Choice
Missing Line
int arr[] = {1, 2, 3, 4};
int sum = 0;
for(int i = 0; i < 4; i++) {
_________
}
printf("%d", sum);
sum = arr[i];
sum = arr[i];
sum =+ arr[i];
sum++
27
JAVA
28
Multiple Choice
What will be the output of the following Java code?
int a = 10;
int b = 20;
System.out.println(a + b + "Java");
30Java
Java30
1020Java
Compilation error
29
Multiple Choice
FIND THE OUTPUT
class A {
public void print() {
System.out.print("A");
}}
class B extends A {
public void print() {
System.out.print("B");
}}
public class Main {
public static void main(String[] args) {
A obj = new B();
obj.print();
((A) obj).print();
}}
AA
AB
BB
BA
30
Multiple Choice
Choose the correct Java code to print the sum of numbers from 1 to 5 using a loop
public class Test {
public static void main(String[] args) {
int sum = 0;
for(int i = 1; i <= 5; i++);
sum += i;
System.out.println(sum);
}}
public class Test {
public static void main(String[] args) {
int sum = 0;
for(int i = 1; i <= 5; i++) {
sum += i;
}
System.out.println(sum);
}}
31
Multiple Choice
What will be the output?
int[] numbers = {10, 20, 30, 40, 50};
System.out.print(numbers[2]);
10
20
30
Error (array index out of bounds)
32
Multiple Choice
Fill in the blank so that "It is positive" is printed only when the number is greater than 0.
int num = 10;
if (_______) {
System.out.print("It is positive");
}
num < 0
num == 0
num != 0
num > 0
By MIX-N-FIX
MIX-N-FIX
Show answer
Auto Play
Slide 1 / 32
SLIDE
Similar Resources on Wayground
29 questions
LTP Aula 01
Presentation
•
University
26 questions
1E - Email - first contact and requests
Presentation
•
University
21 questions
CSI-3EDGE WIEDZA QUIZ
Presentation
•
University
20 questions
7 класс 4 четверть 1 урок
Presentation
•
KG
25 questions
ENG 101_LIFE 1_UNIT 4_REVIEW
Presentation
•
University
27 questions
2. HTML elements csc20
Presentation
•
University
24 questions
informática
Presentation
•
University
25 questions
Nuclear Chemistry Review
Presentation
•
12th Grade
Popular Resources on Wayground
20 questions
"What is the question asking??" Grades 3-5
Quiz
•
1st - 5th Grade
20 questions
“What is the question asking??” Grades 6-8
Quiz
•
6th - 8th Grade
10 questions
Fire Safety Quiz
Quiz
•
12th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
34 questions
STAAR Review 6th - 8th grade Reading Part 1
Quiz
•
6th - 8th Grade
20 questions
“What is the question asking??” English I-II
Quiz
•
9th - 12th Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
47 questions
8th Grade Reading STAAR Ultimate Review!
Quiz
•
8th Grade
Discover more resources for Computers
15 questions
LGBTQ Trivia
Quiz
•
University
36 questions
8th Grade US History STAAR Review
Quiz
•
KG - University
25 questions
5th Grade Science STAAR Review
Quiz
•
KG - University
16 questions
Parallel, Perpendicular, and Intersecting Lines
Quiz
•
KG - Professional Dev...
20 questions
5_Review_TEACHER
Quiz
•
University
10 questions
Applications of Quadratic Functions
Quiz
•
10th Grade - University
10 questions
Add & Subtract Mixed Numbers with Like Denominators
Quiz
•
KG - University
20 questions
Block Buster Movies
Quiz
•
10th Grade - Professi...