Search Header Logo
Mix-N-Fix Round 1

Mix-N-Fix Round 1

Assessment

Presentation

Computers

University

Practice Problem

Hard

Created by

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>


1

<link>

2

<img>

3

<herf>

4

<links>

5

Multiple Choice

<form>

<textarea name="message" rows="4" cols="50" _______="Enter your message"></textarea>

</form>


1

value

2

placeholder

3

title

4

label

6

Multiple Choice

<html>

<body>

<h1>Welcome!</h1>

<p>Hello World</p>

</body>

</html>


1

Only “Hello World”

2

Welcome! and Hello World (big and normal text)

3

Nothing

4

7

Multiple Choice

Choose the correct HTML code to create an ordered list with three items: Apple, Banana, Mango

1

<ol>

<li>Apple</li>

<li>Banana</li>

<li>Mango</li>

</ol>


2

<ul>

<item>Apple</item>

<item>Banana</item>

<item>Mango</item>

</ul>


3

<order>

<li>Apple</li>

<li>Banana</li>

<li>Mango</li>

</order>


4

<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;
}

1

margin

2

border

3

padding

4

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>


1

 Left aligned, underlined

2

Center aligned, underlined

3

Right aligned, not underlined

4

Center aligned, not underlined

12

Multiple Choice

button:__________ {
    background-color: red;
}

1

active

2

hover

3

focus

4

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>

1

Box1

2

Box2

3

Both overlap equally

4

None

14

Multiple Choice

<!DOCTYPE html>
<html>
<head>
<style>
h1 {
  text-align: center;
  text-decoration: underline;
}
</style>

1

 Left aligned, underlined

2

 Left aligned, underlined

3

 Right aligned, not underlined

4

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)


1

Python

2

nohtyP

3

Pytho

4

Error

17

Multiple Choice

Which of the following codes will produce the output:


[1, 4, 9, 16]


1

result = []

for i in range(1,5):

    result.append(i*i)

print(result)

2

result = [i*i for i in range(1,4)]

print(result)

3

result = [i**2 for i in range(1,5)]

print(result)

4

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)


1

 word = data[6:]

2

word = data[:5]

3

word = data.split()

4

word = data[6]

19

Multiple Choice

Fill the missing line so the output is:

Even

x = 6

if ___________:

    print("Even")

else:

    print("Odd")

1

x / 2 == 0

2

x % 2 == 0

3

x // 2 == 0

4

 x % 2 = 0

20

Multiple Choice

 Which line makes the output PYTHON?

x = "python"

______

print(x)

1

x.upper()

2

x = upper(x)

3

x = x.upper()

4

upper(x)

21

C & C++

22

Multiple Choice

Find Output

int x = 5;

printf("%d %d %d", x++, ++x, x);

1

5 7 7

2

5 6 7

3

Undefined behavior

4

 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;

}

1

A is greater

2

B is greater

3

Nothing

4

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;

}

1

cout << "Hello World";

2

printf("Hello World");

3

cin << "Hello World";

4

cout >> "Hello World";

25

Multiple Choice

Find Output

#include <iostream>

using namespace std;

int main() {

    cout << sizeof('A');

}

1

1

2

2

3

4

4

Depends on compiler

5

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);

1

sum = arr[i];

2

sum = arr[i];

3

sum =+ arr[i];

4

 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");

1

30Java

2

Java30

3

1020Java

4

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();

}}

1

AA

2

AB

3

BB

4

BA

30

Multiple Choice

Choose the correct Java code to print the sum of numbers from 1 to 5 using a loop

1

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);

}}

2

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);

}}

3
4

31

Multiple Choice

What will be the output?

int[] numbers = {10, 20, 30, 40, 50};
System.out.print(numbers[2]);

1

10

2

20

3

30

4

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");
}

1

num < 0

2

num == 0

3

num != 0

4

num > 0

By MIX-N-FIX

MIX-N-FIX

Show answer

Auto Play

Slide 1 / 32

SLIDE