CodeRush_Round1

CodeRush_Round1

Assessment

Flashcard

Computers

University

Hard

Created by

Quizizz Content

FREE Resource

Student preview

quiz-placeholder

30 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What is the output of:
a = 5
b = 3
result = a & b
print(result)

Back

1

2.

FLASHCARD QUESTION

Front

What is the output of:
num = 4;
result = num << 2;
print(result)

Back

16

3.

FLASHCARD QUESTION

Front

What is the output of:
s = "HelloWorld";
result = s[1:5] + s[-5:];
print(result)

Back

elloWorld

4.

FLASHCARD QUESTION

Front

What is the list after: lst = [10,20,30,40]; lst.append(50); lst.insert(1,15); print(lst)

Back

[10,15,20,30,40,50]

5.

FLASHCARD QUESTION

Front

What is the output of the C++ switch case with x=2?
switch (x)
{
case 1:
cout << ''One'';
break;
case 2:
cout << ''Two'';
case 3:
cout << ''Three'';
break;
default:
cout << ''Default''; }

Back

TwoThree

6.

FLASHCARD QUESTION

Front

What happens with: while True: print("Hello")

Back

Infinite loop

7.

FLASHCARD QUESTION

Front

What is the output of:
num=12;
if(!(num&1))
printf("1+1");
else
printf("1-1");

Back

"1+1"

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?