Search Header Logo

Turing's Test :CodeClash 1.0(Batch 3)

Authored by Sumithra pm

Computers

Used 8+ times

Turing's Test :CodeClash 1.0(Batch 3)
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

1 min • 1 pt

What is the output of C Program.?

int main()

{ int a=0;

a = printf("4");

printf("%d",a);

return 0;

}

04

40

41

compiler error

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of the C Program.?

int main() {

if( 4 > 5 )

printf("Hurray..\n");

printf("Yes");

return 0;

}

Yes

Hurray..

Yes

Hurray..Yes

No Output

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of the program.? #include<stdio.h>

int main() {

printf("Hello Boss.");

}

Hello Boss.

hello boss

No output

Compiler error

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the ASCII value of NULL or \0.?

0

1

101

100

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of C program.?

int main() {

char str1[]="JAMES,";

char str2[15]="BOND ";

strcat(str2,str1);

printf("%s",str2);

printf("%s",str1); }

JAMES BOND,JAMES,

JAMES,JAMES,

BOND JAMES,JAMES,

None of the above

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of C program.?

int main() {

printf("%c","HUMPTY"[2]);

}

HUMPTY

U

M

HUM

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How many times CodeClash1.0 is printed?

int main()

{

while(1)

{

printf("CodeClash1.0 ");

}

return 0;

}

1 time

Compilation Error

Infinite times

Runtime Error

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?