Unit 23 - Pop Quiz

Unit 23 - Pop Quiz

12th Grade

10 Qs

quiz-placeholder

Similar activities

Multimedia Elements

Multimedia Elements

10th - 12th Grade

10 Qs

APCSP 3.7 Debugging

APCSP 3.7 Debugging

9th - 12th Grade

10 Qs

Computer Science Principles: Intro to Programming

Computer Science Principles: Intro to Programming

9th - 12th Grade

14 Qs

Unit 3 Introduction to App Design

Unit 3 Introduction to App Design

9th - 12th Grade

10 Qs

AP Computer Science Principles - Unit 3: App Design

AP Computer Science Principles - Unit 3: App Design

9th - 12th Grade

10 Qs

Algorithms & Pseudocode

Algorithms & Pseudocode

8th - 12th Grade

10 Qs

CSP: Code.org - Unit 3 Vocabulary Review

CSP: Code.org - Unit 3 Vocabulary Review

9th - 12th Grade

12 Qs

App Lab Day 2 quiz

App Lab Day 2 quiz

4th - 12th Grade

10 Qs

Unit 23 - Pop Quiz

Unit 23 - Pop Quiz

Assessment

Quiz

Computers

12th Grade

Hard

Created by

Ambreen Mohsin

Used 4+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What does the following code fragment write to the monitor?

int sum = 14;

if ( sum < 20 )

System.out.print(“Under “);

else

System.out.print(“Over “);

System.out.printIn(“the limit.”);

Under

Over

Under the limit

Over the limit

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which of the following is FALSE about Event driven programming?

Event driven programs can be run multiple times with different outcomes based on user interactions

The flow of event driven program cannot always be known ahead of time

Event driven programs do not implement algorithms

Some portion of an event driven program may never execute while the program is still running

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Look at the following line of code.

String operator = "?" ;

switch(operator)

{

case '+':

printf("%.1lf + %.1lf = %.1lf",firstNumber, secondNumber, firstNumber+secondNumber);

break;


case '-':

printf("%.1lf - %.1lf = %.1lf",firstNumber, secondNumber, firstNumber-secondNumber);

break;


default:

printf("Error! operator is not correct");

}

Which case will be executed?

Case +

Case *

Default case

All the cases

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What role does the "break" keyword play?

exits the program

exits the construct

exits the application

exits the operating system

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

OOP organizes a software into classes and objects. What exactly are objects?

Objects are subclasses

Objects are instances of classes

Objects are data types

Objects are constructors

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

How is data abstraction achieved in Java?

By using abstract keyword

By using private and public keywords

By using extend keywords

By using string keyword

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which of the following is a looping construct?

Switch Case

If Else

do while

JOptionPane

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?