Mathematical Operators in Delphi

Mathematical Operators in Delphi

10th Grade

10 Qs

quiz-placeholder

Similar activities

TUGAS HARI KE-2

TUGAS HARI KE-2

7th - 10th Grade

15 Qs

Intro to Python recap

Intro to Python recap

10th Grade - Professional Development

11 Qs

Festive Computer Science

Festive Computer Science

10th Grade

15 Qs

Sequence Selection Iteration and others

Sequence Selection Iteration and others

10th Grade

14 Qs

OPERATOR (30 Nov '21)

OPERATOR (30 Nov '21)

10th Grade

10 Qs

QUARTER 3 MODULE 6

QUARTER 3 MODULE 6

10th Grade

10 Qs

46. Programming 1 : Variables & Constants

46. Programming 1 : Variables & Constants

9th - 12th Grade

11 Qs

Rainbow six siege

Rainbow six siege

5th - 12th Grade

8 Qs

Mathematical Operators in Delphi

Mathematical Operators in Delphi

Assessment

Quiz

Computers

10th Grade

Hard

Created by

David Coetzer

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of 10 mod 3?

2

0

1

3

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you use the div operator in Delphi?

Use the div operator for integer division in Delphi.

Use the div operator for floating-point division in Delphi.

The div operator is used for string concatenation in Delphi.

You cannot use the div operator in Delphi.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What function would you use to generate a random number?

Math.generateRandom()

Math.random()

Math.getRandom()

Math.randomize()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the square root of 16?

6

3

5

4

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you round the number 5.7 in Delphi?

Round(5.7) returns 5.5

Round(5.7) returns 6

Round(5.7) returns 7

Round(5.7) returns 5

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the modulus operator?

To find the remainder of a division operation.

To determine if a number is even or odd.

To convert a number to a string.

To calculate the average of two numbers.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Explain the difference between local and global variables.

Local variables persist for the entire duration of the program.

Global variables are only used within a single function.

Local variables are scoped to a function; global variables are accessible throughout the program.

Local variables can be accessed anywhere in the program.

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?