Search Header Logo

C Programming (Veri Tipleri ve Operatörler))

Authored by Emsal Academy

Computers

12th Grade

Used 2+ times

C Programming (Veri Tipleri ve Operatörler))
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

26 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. #include <stdio.h>

  2. int main()

  3. {

  4. float f1 = 0.1;

  5. if (f1 == 0.1)

  6. printf("equal\n");

  7. else

  8. printf("not equal\n");

  9. }

equal

not equal

output depends on the compiler

error

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. #include <stdio.h>

  2. int main()

  3. {

  4. float f1 = 0.1;

  5. if (f1 == 0.1f)

  6. printf("equal\n");

  7. else

  8. printf("not equal\n");

  9. }

equal

not equal

output depends on the compiler

error

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Veri türlerinin boyutuna göre hangisi doğrudur?

char > int > float

int > char > float

char < int < double

double > char > int

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. #include <stdio.h>

  2. int main()

  3. {

  4. float x = 'a';

  5. printf("%f", x);

  6. return 0;

  7. }

a

run time error

a.0000000

97.000000

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. #include <stdio.h>

  2. int main()

  3. {

  4. int i = -3;

  5. int k = i % 2;

  6. printf("%d\n", k);

  7. }

Compile time error

-1

1

Implementation defined

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. #include <stdio.h>

  2. int main()

  3. {

  4. int i = 3;

  5. int l = i / -2;

  6. int k = i % -2;

  7. printf("%d %d\n", l, k);

  8. return 0;

  9. }

Compile time error

-1 1

1 -1

Implementation defined

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. #include <stdio.h>

  2. int main()

  3. {

  4. int i = 5;

  5. i = i / 3;

  6. printf("%d\n", i);

  7. return 0;

  8. }

Implementation defined

1

3

Compile time 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?