Search Header Logo

Round 1 (Tech Utsav)

Authored by SIDDHARTH 2363063

Computers

University

Used 1+ times

Round 1 (Tech Utsav)
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

5 sec • 1 pt

def rotLeft(a, d):

d %= len(a)

return a[d:] + a[:d]

The input is:

a = [1, 2, 3, 4, 5]

d = 2

[3, 4, 5, 1, 2]

[1, 2, 3, 4, 5]

[4, 5, 1, 2, 3]

[5, 1, 2, 3, 4]

2.

MULTIPLE CHOICE QUESTION

5 sec • 1 pt

The tolerance bands: gold; silver; brown, represent:

10%, 5%, 1%

5%, 10%, 2%

5%, 10%, 1%

10%,   5%,   2%

3.

MULTIPLE CHOICE QUESTION

5 sec • 1 pt

def calculate(n):

result = [ ]

for i in range(1, n + 1):

if i % 2 == 0:

result.append(i ** 2)

else:

result.append(i ** 3)

return result

n = 5

output = calculate(n)

print(output)

Input is :

n =5

[1, 4, 9, 16, 25]

[1, 2, 3, 4, 5]

[1, 4, 27, 16, 125]

[1, 8, 27, 64, 125]

4.

MULTIPLE CHOICE QUESTION

5 sec • 1 pt

Name the three leads of a common transistor

Collector Bias Omitter

Emitter Collector Bias

Base Collector Case

Collector Base Emitter

5.

MULTIPLE CHOICE QUESTION

5 sec • 1 pt

Which of the following is a type of error associated with digital-to-analog converters (DACs)?

nonmonotonic error

incorrect output codes

offset error

nonmonotonic and offset error

6.

MULTIPLE SELECT QUESTION

5 sec • 1 pt

def is_full_of_colors(seq):

red, green, yellow, blue = 0, 0, 0, 0

for i, c in enumerate(seq):

if c == 'R': red += 1

elif c == 'G': green += 1

elif c == 'Y': yellow += 1

elif c == 'B': blue += 1

if abs(red - green) > 1 or abs(yellow - blue) > 1: return False

return red == green and yellow == blue

T = int(input())

for _ in range(T):

print(is_full_of_colors(input().strip()))

The inputs are :

T = 3

Test Cases:

1. "RGRGRB"

2. "RGBY"

3. "RRGGBB"

True

True

False

False

True

True

True

False

False

True

False

True

7.

MULTIPLE CHOICE QUESTION

5 sec • 1 pt

Guess the next number

230 460 46 92 9.2 .......

18.4

18

18.2

20.4

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?