Unit 1 + 2 Quiz Flashcards

1
Q

______ is the physical aspect of the computer that can be seen.

A

Hardware

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

_______ is the brain of the computer.

A

CPU (Central Processing Unit)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

The speed of the CPU may be measured in ________.

A

megahertz (mHz)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Why do computers use zeroes and ones?

A

combinations of zeroes and ones can represent any numbers and characters.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

One byte has ____ bits.

A

8

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Which of the following are not permanent storage devices?

A

Volatile memory / main memory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

_______ is a device to connect a computer to a local area network (LAN)

A

NIC (network interface card)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

_______ are instructions to the computer.

A

Programs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Computers can execute the code in _________.

A

machine language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

________ translates high-level language programs into machine language programs.

A

A compiler

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

_________ is an operating system.

A

Windows/MacOSX/Linux

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

________ is a program that runs on a computer to manage and control a computer’s activities.

A

Operating system

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Java was developed by ___________.

A

Sun Microsystems

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

________ contains predefined classes and interfaces for developing Java programs.

A

Java API

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

________ is a technical definition of the language that includes the syntax and semantics of the language.

A

Java Language Specification

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

________ consists of a set of separate programs for developing and testing Java programs, invoked from the command line

A

Java JDK

17
Q

_________ provides an integrated development environment for building, debugging, and online help with a GUI.

A

Java IDE

18
Q

Main method header is ________

A

public static void main(String[] args)

19
Q

Statements must ________.

A

end with a semicolon (;)

20
Q

What will display “Welcome to Java” on the console?

A

System.out.println(“Welcome to Java”);

21
Q

Java compiler translates Java source code into _________.

A

Java Bytecode

22
Q

_________ is a software that interprets Java bytecode.

A

JVM

23
Q

The extension name of a Java bytecode file is ______.

A

.class

24
Q

The extension name of a Java source code file is __________.

A

.java

25
Q

Programming style is important, because ______________.

A

good programming style makes a program more readable

26
Q

If a program compiles fine, but it produces incorrect result, then the program suffers _________

A

a logic error

27
Q

If you forget to put a closing quotation mark on a string, what kind of error will be raised?

A

compiler error

28
Q

_______ is the code with natural language mixed with Java code.

A

Pseudocode