AP Computer Science A: <= Unit 4

AP Computer Science A: <= Unit 4

10th - 12th Grade

5 Qs

quiz-placeholder

Similar activities

Exploring Computer Science

Exploring Computer Science

10th - 12th Grade

5 Qs

Python Basics

Python Basics

8th - 10th Grade

10 Qs

Functions and Procedures

Functions and Procedures

9th - 11th Grade

8 Qs

Python 2

Python 2

9th - 12th Grade

10 Qs

Apple Swift Coding 1 - Lesson 6 - 7

Apple Swift Coding 1 - Lesson 6 - 7

9th - 12th Grade

10 Qs

AP Computer Science A

AP Computer Science A

10th - 12th Grade

10 Qs

WJEC 1.7 Software Engineering

WJEC 1.7 Software Engineering

9th - 10th Grade

10 Qs

PCEP Section 4B: the function and its environment

PCEP Section 4B: the function and its environment

12th Grade

10 Qs

AP Computer Science A: <= Unit 4

AP Computer Science A: <= Unit 4

Assessment

Quiz

Computers

10th - 12th Grade

Medium

Created by

Herman Galioulline

Used 90+ times

FREE Resource

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

The code segment is intended to print a value that is 1 more than twice the value of n.

I only

II only

III only

I and III

II and III

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What is printed as a result of executing the code segment?

ABCD

BCDE

BCEF

BCDEF

ABCDEF

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What value is returned as a result of the method call changeStr("12345") ?

"4"

"53"

"531"

"543"

"54321"

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

boolean x = (5 < 8) == (5 == 8);

What is the value of x?

3

5

8

true

false

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Which of the following code segments, if located in a method in a class other than Thing, will cause the message "Hello my friend" to be printed?

Thing a = new Thing();

Thing.talk();

Thing.name();

Thing a = new Thing();

Thing.greet();

Thing a = new Thing();

a.talk();

Thing a = new Thing();

a.greet();

Thing a = new Thing();

a.name();

a.talk();