CodeRush_Round1

CodeRush_Round1

Assessment

Flashcard

Computers

University

Practice Problem

Hard

Created by

Wayground 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

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?