Search Header Logo

COMPROG - IWAMOTO

Authored by Lloyd Castro

others

Used 1+ times

COMPROG - IWAMOTO
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following special symbol allowed in a variable name?

a. – (hyphen)
b. * (asterisk)
c. _ (underscore)
d. | (pipeline)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How would you round off a value from 2.57 to 3.0?

a. roundup(2.57)
b. floor(2.57)
c. ceil(2.57)
d. roundto(2.57)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

what will be the output of the following code? int y = 100; int y = 15; print “Hello World!”, y;

a. Hello World! followed by a junk value
b. Hello World! 100
c. Hello World! 15
d. Compile time error

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A program that translates a high-level language into machine code

a. Compiler
b. Assembler
c. Linker
d. Loader

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A location in memory referenced by an identifier, that contains a data value that can be changed.

a. Data Type
b. Variable
c. Constant
d. Memory

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A statement that stores the value of an expression into a variable

a. Assignment Statement
b. Arithmetic Statement
c. Logical Statement
d. Comparison Statement

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a valid variable name?

a. float rate;
b. double num_num;
c. int num;
d. float $num;

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?