Introduction to Computer Science

Introduction to Computer Science

12th Grade

8 Qs

quiz-placeholder

Similar activities

АЛГОРИТМІЗАЦІЯ 7 КЛ частина 1

АЛГОРИТМІЗАЦІЯ 7 КЛ частина 1

12th Grade

12 Qs

Recap

Recap

12th Grade

10 Qs

Microsoft Excel էլեկտրոնային աղյուսակ

Microsoft Excel էլեկտրոնային աղյուսակ

12th Grade

10 Qs

U26 Q7 - CIDR

U26 Q7 - CIDR

KG - University

12 Qs

Chapter 8 Week 1

Chapter 8 Week 1

9th - 12th Grade

11 Qs

Series1

Series1

12th Grade

10 Qs

Initial Assessment - Cybersecurity Awareness

Initial Assessment - Cybersecurity Awareness

9th Grade - Professional Development

10 Qs

Arrays

Arrays

12th Grade

10 Qs

Introduction to Computer Science

Introduction to Computer Science

Assessment

Quiz

Computers

12th Grade

Practice Problem

Hard

Used 47+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

In the statement below, the value stored in variable temp is called ___________?


double temp = Math.pow(3, 4);

argument

return value

input

method call

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What value is returned by the method call Math.pow (1 + 2, 3) ?

3.0

6.0

9.0

27.0

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Consider the following code segment:


String str1 = "ONE";

String str2 = "TWO";

System.out.print(str2 + str1);


What will be printed when this code segment is executed?

str1str2

str2str1

ONETWO

TWOONE

TWO ONE

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which of the following Java statements displays the message "Hello World" on the console window?

print("Hello World");

System.out.print("Hello" + "World");

System.print("Hello World");

System.out.print("Hello" + " " + "World");

System.out("Hello World");

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which of the following is a valid variable declaration? Assume that length is a variable of type int and milesPerGallon a variable of type double.

int volume = length * length * length;

in gallonsConsumed = milesDriven / milesPerGallon;

double greeting = "HelloHello";

String greeting = 2 * "Hello";

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which of the following represents a correct way to declare and initialize a variable named counter?

counter = 1;

int counter = 1;

int counter = "one";

int counter = 1.0;

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Assuming that variable dollars and cost have been declared, which of the following assignment statements is INVALID?

cost = dollars + 100;

cost = cost + 50;

dollars + 100 = cost;

dollars = cost;

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?