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

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

University

11 Qs

quiz-placeholder

Similar activities

PythonProgramming

PythonProgramming

University

15 Qs

Fundamentals of Algorithms - Unit 1 - Test 1

Fundamentals of Algorithms - Unit 1 - Test 1

University

15 Qs

CSC264 Javascript Basic

CSC264 Javascript Basic

University

15 Qs

HTML -znaczniki 1

HTML -znaczniki 1

7th Grade - University

15 Qs

python quiz

python quiz

6th Grade - Professional Development

10 Qs

Java Programming-1

Java Programming-1

University

10 Qs

Bài tập trắc nghiệm C++(tiếp)

Bài tập trắc nghiệm C++(tiếp)

3rd Grade - University

10 Qs

 QUIZ  MS Core Java Quiz-3 2023

QUIZ MS Core Java Quiz-3 2023

University

11 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

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?