Turing's Test: CodeClash1.0

Turing's Test: CodeClash1.0

20 Qs

quiz-placeholder

Similar activities

BASIC C PROGRAMMING QUIZ

BASIC C PROGRAMMING QUIZ

University

15 Qs

Quiz on C Loops,Datatypes,Expression Evaluation

Quiz on C Loops,Datatypes,Expression Evaluation

KG

15 Qs

C Language 101

C Language 101

University

18 Qs

Structures and union

Structures and union

University

15 Qs

C - Structures

C - Structures

University

20 Qs

Playing with C

Playing with C

University

20 Qs

Operators in C

Operators in C

University

24 Qs

Apuntadores en C

Apuntadores en C

University

20 Qs

Turing's Test: CodeClash1.0

Turing's Test: CodeClash1.0

Assessment

Quiz

Computers

Hard

Created by

Sumithra pm

Used 2+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What would be the output of the following code?

25

11

Error

Garbage

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is not defined on floating point on C?

&&

>

%

>=

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

1.What is the result of the expression ((7 > 5) && (10 < 12)) || (15 == 20)?

not known

5

true

false

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

5.What will be the value of result?

int x = 5, y = 10;

int result = (x > y) ? x : y;

5

10

true

false

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Consider the following code snippet:

char str = "Hello, World!";

printf("%c\n", (str + 7));

What is the output?

o

,

W

Hello, W

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Consider the following code ,what will be the output?

main(){

Printf("%d%d%d",sizeof(3.14f),sizeof(3.14),sizof(3.14l));

}

4 8 12

4 4 4

4 2 4

2 2 4

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#define cube(x)(x*x*x)

main() {

int a,b=3;

a=cube(b++);

printf("%d%d",a,b); }

What will be the value of a,b?

60 6

60 4

60 3

3 4

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?