C Programming (Veri Tipi Dönüşümleri)

C Programming (Veri Tipi Dönüşümleri)

University

11 Qs

quiz-placeholder

Similar activities

TECHNICAL C POINTER JIT04

TECHNICAL C POINTER JIT04

University

8 Qs

Arrays in C (II yr 02.07.2020)

Arrays in C (II yr 02.07.2020)

University

10 Qs

CIS1101-programming practice

CIS1101-programming practice

University

15 Qs

C Viva

C Viva

University

10 Qs

pointers and structures

pointers and structures

University

10 Qs

Computer programming-Array

Computer programming-Array

University

10 Qs

C Program Array and strings

C Program Array and strings

University

10 Qs

Plot the Code

Plot the Code

University

10 Qs

C Programming (Veri Tipi Dönüşümleri)

C Programming (Veri Tipi Dönüşümleri)

Assessment

Quiz

Computers

University

Hard

Created by

Emsal Academy

FREE Resource

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

  1. #include <stdio.h>

  2. void main()

  3. {

  4. float x = 0.1;

  5. if (x == 0.1)

  6. printf("Sanfoundry");

  7. else

  8. printf("Advanced C Classes");

  9. }

Advanced C Classes

Sanfoundry

Run time error

Compile time error

2.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

  1. #include <stdio.h>

  2. void main()

  3. {

  4. float x = 0.1;

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

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

  7. }

0.100000, junk value

Junk value, 0.100000

0, 0.100000

0, 0.999999

3.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

  1. Not: Başlangıç değerleri: x= 7, y = 8

  2. #include <stdio.h>

  3. void main()

  4. {

  5. float x;

  6. int y;

  7. printf("enter two numbers \n");

  8. scanf("%f %f", &x, &y);

  9. printf("%f, %d", x, y);

  10. }

7.000000, 8

Run time error

7.000000, junk

Varies

4.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

  1. #include <stdio.h>

  2. void main()

  3. {

  4. double x = 123828749.66;

  5. int y = x;

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

  7. printf("%lf\n", y);

  8. }

  1. 0, 0.0

123828749, 123828749.66

12382874, 12382874.0

123828749, 0.000000

5.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

  1. #include <stdio.h>

  2. void main()

  3. {

  4. int x = 97;

  5. char y = x;

  6. printf("%c\n", y);

  7. }

a

b

97

Run time error

6.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

  1. #include <stdio.h>

  2. int main()

  3. {

  4. unsigned int i = 23;

  5. signed char c = -23;

  6. if (i > c)

  7. printf("Yes\n");

  8. else if (i < c)

  9. printf("No\n");

  10. }

Yes

No

Depends on the compiler

7.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

  1. #include <stdio.h>

  2. int main()

  3. {

  4. int i = 23;

  5. char c = -23;

  6. if (i < c)

  7. printf("Yes\n");

  8. else

  9. printf("No\n");

  10. }

Yes

No

Depends on the compiler

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?