Computer Science I Midterm

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/23

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

24 Terms

1
New cards

What is the file extension of a compiled Java program?

  1. .exe

  2. .class

  3. .jar

  4. jpg

.class

2
New cards

Which one of these is not an application?

  1. InteliJ

  2. Linux

  3. Excel

  4. Firefox

Linux

3
New cards

What is the file extension for a Java source code file?

  1. .java

  2. .exe

  3. .class

  4. .jar

  5. .jpg

.java

4
New cards

Which one of these is not a programming language?

  1. C++

  2. Python

  3. Fortran

  4. Java

  5. Windows

Windows

5
New cards

A binary number ending with two 0’s

  1. cannot tell

  2. is not a multiple of 4

  3. is a multiple of 4

Is a multiple of 4

6
New cards

10102 is what in hexadecimal?

  1. 0xAA

  2. 0xB

  3. 0xA

  4. 0xF

0xA

7
New cards

Which one of these is not an object-oriented programming language (OOP)?

  1. C

  2. Java

  3. C++

  4. Python

  5. Small Talk

C

8
New cards

Which one of these is not an operating system?

  1. Microsoft Windows

  2. Android

  3. Linux

  4. Java

  5. MacOS

Java

9
New cards

A binary number ending with a one

  1. is even

  2. is odd

  3. is negative

  4. cannot tell

is odd

10
New cards

In a network, the computers providing services to the other computers are called

  1. servers

  2. laptops

  3. clients

servers

11
New cards

The hex digit for A is

  1. 15

  2. 11

  3. 102

  4. 10

10

12
New cards

Using four bits, the largest positive binary number we can represent is 1111.

  1. true

  2. false

true

13
New cards

Given three declared and initialized int variables a, b, and c, which of the following is a valid Java statement?

  1. a = b;

  2. a * b = 12;

  3. b = 8.7;

  4. a + b = 8;

  5. c = a / 2.3;

a = b;

14
New cards

What is the output of this code:

int a = 13 % 5;

System.out.println(a);

  1. 2.6

  2. 2.0

  3. 3

  4. 3.6

  5. 2

3

15
New cards

What is the output of this code:
double a = (int) 12.0 / 5;

System.out.println(a);

  1. 2.4

  2. 2

  3. 0.2

  4. 2.000000000000

  5. 2.0

2.0

16
New cards
17
New cards
18
New cards
19
New cards
20
New cards
21
New cards
22
New cards
23
New cards
24
New cards