def rotLeft(a, d):
d %= len(a)
return a[d:] + a[:d]
The input is:
a = [1, 2, 3, 4, 5]
d = 2
Round 1 (Tech Utsav)
Quiz
•
Computers
•
University
•
Hard
SIDDHARTH 2363063
Used 1+ times
FREE Resource
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
20 questions
Bertelsmann AI Track Quiz Initiative #3
Quiz
•
University - Professi...
20 questions
Pointers
Quiz
•
University
17 questions
Coding Titans
Quiz
•
University
10 questions
Weekly Contest #3 - TechXNinjas
Quiz
•
University
10 questions
NumpyPandas
Quiz
•
University
10 questions
Array in C
Quiz
•
University
20 questions
TECHFEST QUALIFYING ROUND
Quiz
•
University
15 questions
Knowledge Knockout[Quiz Round](2nd-4th years)
Quiz
•
University
15 questions
Multiplication Facts
Quiz
•
4th Grade
20 questions
Math Review - Grade 6
Quiz
•
6th Grade
20 questions
math review
Quiz
•
4th Grade
5 questions
capitalization in sentences
Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance
Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions
Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines
Quiz
•
Professional Development
12 questions
Dividing Fractions
Quiz
•
6th Grade