Search Header Logo

TECHFEST QUALIFYING ROUND

Authored by RAHUL SONAWANE

Computers

University

Used 9+ times

TECHFEST QUALIFYING ROUND
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

 #include int main(){

 int x;

 x=10,20,30;

 printf("%d",x);

 return 0;

 }

20

10

30

ERROR

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

        #include int main()

{

        int a=2,b=7,c=10;

        c=a==b;

        printf("%d",c);

         return 0;

          }

-1

0

1

11

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

int main() {

int arr[] = {1, 2, 4, 5, 6};

int n = 6;

int sum = n * (n + 1) / 2;

int actual_sum = 0;

for (int i = 0; i < n - 1; i++) {

actual_sum += arr[i];

}

int missing_number = sum - actual_sum;

printf("Missing number is %d\n", missing_number);

return 0;

}

5

4

3

2

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

int main() {

int arr[3][3] = {{1, 2, 3},{4, 5, 6},{7, 8, 9}};

int i, j;

for (i = 0; i < 3; i++) {

for (j = 0; j < 3; j++) {

printf("%d ", arr[i][j]);

}

printf("\n");

}

return 0;

7 8 9

4 5 6

1 2 3

3 2 1

6 5 4

9 8 7

1 4 7

2 5 8

3 6 9

1 2 3

4 5 6

7 8 9

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

int main() {

int n;

for(n = 7; n!=0; n--)

printf("n = %d", n--);

getchar();

return 0;

}

Error

n = 7

Infinite Loop

n = 6

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

int main(){

int i=0;

while ( +(+i--) != 0)

i-=i++;

printf("%d",i);

return 0;

}

0

1

-1

Error

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

int main(){

if (printf("cIsgood"))

printf("I know c");

else

printf("I know c++");

return 0;

}

cIsgoodIknow c

Error

I know c++

cIsgoodIknowc++

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?

Discover more resources for Computers