Turing's Test :CodeClash 1.0(Batch 3)

Turing's Test :CodeClash 1.0(Batch 3)

20 Qs

quiz-placeholder

Similar activities

PSC Quiz1

PSC Quiz1

University - Professional Development

20 Qs

Unit1-2nd Half

Unit1-2nd Half

University

20 Qs

Bridge course with C

Bridge course with C

University

20 Qs

Competitive Coding-I

Competitive Coding-I

University

20 Qs

C Programming Unit-1 Test-2

C Programming Unit-1 Test-2

University

20 Qs

2D Array and Strings in C

2D Array and Strings in C

University

16 Qs

Pointers in C

Pointers in C

University

24 Qs

EST102 : PROGRAMMING IN C TEST 1

EST102 : PROGRAMMING IN C TEST 1

University

20 Qs

Turing's Test :CodeClash 1.0(Batch 3)

Turing's Test :CodeClash 1.0(Batch 3)

Assessment

Quiz

Computers

Hard

Created by

Sumithra pm

Used 8+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?