Primitive Types

Primitive Types

10th Grade - University

20 Qs

quiz-placeholder

Similar activities

EPO620 TTEST TRIAL

EPO620 TTEST TRIAL

University

25 Qs

Engineers Day Celebration Quiz - Code IT, STME HYD

Engineers Day Celebration Quiz - Code IT, STME HYD

University

15 Qs

Google Colab Remidi/ Susulan

Google Colab Remidi/ Susulan

11th Grade

20 Qs

Pelatihan 2 - BE - Bootcamp DCI

Pelatihan 2 - BE - Bootcamp DCI

University

20 Qs

Ordinario (tópicos)

Ordinario (tópicos)

University

18 Qs

Midterm 12C SU

Midterm 12C SU

12th Grade

19 Qs

Understanding Python Variables and Data Types

Understanding Python Variables and Data Types

11th Grade

20 Qs

7.EE.1 Assignment

7.EE.1 Assignment

5th - 12th Grade

15 Qs

Primitive Types

Primitive Types

Assessment

Quiz

Other

10th Grade - University

Medium

Created by

Richard Groeneveld

Used 56+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the resulting value of x?


double x;

x = 2.3

2

2.3

Error

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the resulting value of x?


int x;

x = 2.3;

Error

2

2.3

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the resulting value of x?


double x;

x = 7;

Error

7

7.0

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the resulting value of x?


int x;

x = 3/4;

Error

0

0.75

1

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the resulting value of x?


double x;

x = 3/4;

Error

0.0

0.75

1.0

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the resulting value of x?


double x;

x = 3.0 / 4;

Error

0.0

0.75

1.0

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the resulting value of x?


int x;

x = 3.0 / 4;

Error

0

1

0.75

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?