Search Header Logo

Turing's Test: CodeClash1.0

Authored by Sumithra pm

Computers

Used 2+ times

Turing's Test: CodeClash1.0
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

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

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?