Search Header Logo

Code Sprint

Authored by codesprint undefined

Computers

University

Used 1+ times

Code Sprint
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the following python code?

2
3
4
5

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the following Python code?

6
8
9
11

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Consider the following python code. What will be the output?

91
84
70
100

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the following code?

1 2 3 4
4 3 2 1
1 3 2 4
4 2 3 1

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

An array A consists of n integers in locations A[0], A[1] ....A[n-1]. It is required to shift the elements of the array cyclically to the left by k places, where 1 <= k <= (n-1). An incomplete algorithm for doing this in linear time, without using another array is given below. Complete the algorithm by filling in the blanks. Assume alt the variables are suitably declared (code is in:C++)

i > min; j!= (n+i)mod n; A[j + k]; temp; i + 1 ;
i < min; j!= (n+i)mod n; A[j + k]; temp; i + 1;
i > min; j!= (n+i+k)mod n; A[(j + k)]; temp; i + 1;
i < min; j!= (n+i-k)mod n; A[(j + k)mod n]; temp; i + 1;

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following Java program?

1190
1650
1740
1880

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Consider the following HTML, CSS code . Where will the red .box be positioned within the .container?

Centered both vertically and horizontally within the .container
Positioned at the top-left corner of the .container
Positioned at 50% from the top and left, but not centered
Positioned outside of the .container

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?