Search Header Logo

Competitive Programming

Authored by Sonali Kumari

Education, Computers

1st Grade

Used 15+ times

Competitive Programming
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of this code?

const double PI=3.1416;

printf("%.2f",PI);

3.141

3.14

3.1416

3.1

2.

FILL IN THE BLANKS QUESTION

1 min • 1 pt

What is the output of this code?

int count=1;

for(int i=0;i<10;i++){

for(int j=0;j<=10;j++){

count++;

}

}

printf("%i",count);

(a)  

3.

FILL IN THE BLANKS QUESTION

1 min • 1 pt

What is the output of this code?

int a=2;

int b=4;

a=b/a;

b=a+b;

a=a*b;

printf("%d",a);

(a)  

4.

FILL IN THE BLANKS QUESTION

1 min • 1 pt

What is the output of this code?

int x=1;

x%=3;

printf("%d",x);

(a)  

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

C language support classes and objects

True

False

6.

FILL IN THE BLANKS QUESTION

1 min • 1 pt

Fill in the blanks to calculate the sum of all elements in the array arr, which contains 7 elements:

int sum=0;

_(int x=0; x<_; x++){

sum+=arr[ _ ];

}

printf("%d",sum);

(a)  

7.

FILL IN THE BLANKS QUESTION

1 min • 1 pt

What is the output of this code?

int i=(1,2,3);

printf("%d",i);

(a)  

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?