Chapter 1: Introduction to Computers, Programs, and Java Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Computer Bus

A

A structure which transmits data between different components of the same computer or between two different computers.

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

A computer bus consist…

A
  • Storage Devices (disk, CD, and Tape)
  • Memory
  • CPU
  • Communication Devices(Modem, and NIC)
  • Input Devices(Keyboards, mouse, etc.)
  • Output Devices(Monitor, Printer, etc.,)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the CPU?

A

The CPU can be thought of as the brain of the computer. It retrieves instructions from memory and executes them.

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

How is CPU speed measured?

A

The CPU speed, known more specifically as clock speed, is measured in hertz’s. One hertz is equal to one cycle/pulse per second, with most modern day computers being measured in gigahertz (which is 1,000,000,000 Hz) 🤯. Intel’s newest processors operate at 3 GHz 🤯🤯🤯🤯.

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

What is memory?

A

Memory is to store data and program instructions for the CPU to execute. Measured in bytes (8 bits), a memory byte is never empty but it’s contents may be meaningless to your program.

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

A memory unit is…

A

An ordered sequence of bytes.

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

A program must be brought where before it can be executed?

A

A program must be brought to memory before it can be executed.

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

What are programs called when readable to humans?

A

Source Code

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

What is a computer bit?

A

A computer bit is the smallest increment of data on a computer. Composing only of 0 or 1. This is what is known as binary or machine code. 8 bits = one byte.

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

Why do computers only use zero’s and one’s?

A

Because computers only have two stable states, and conventionally we call these states 1 or 0.

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

How is a byte different from a bit?

A

A byte is the minimum storage unit whereas a bit is a single stable state of the computer called 1 or 0 by convention.

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

How many bits in a byte?

A

8

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

What are the three main types of storage devices?

A
  1. Disk Drives(hard disk)
  2. CD Drives (CD-R and CD-RW)
  3. USB flash Drives
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Why do we have storage devices?

A

Because memory is volitile and information is lost when the power is off. Therefore programs and data are permanently stored on storage devices and are moved to memory when the computer actually uses them.

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

What does a monitor do?

A

The monitor displays information (text and graphics).

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

What determines the quality of display of a monitor?

A

Resolution and dot pitch(the distance between dots on a display screen).

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

What is a “dot”?

A

Dot’s are the smallest, identifiable, part of an image. Measure commonly in what is known as DPI “Dots Per Inch”. Monitors display images as array’s of dots.

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

What is dot pitch?

A

The dot pitch is the amount of space between pixels, measured in millimeters. The smaller the dot pitch, the sharper the display.

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

What is resolution?

A

The screen resolution specifices the number of pixels in horizontal and vertical dimensions of the display device.

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

What tool is used to translate source code into machine code?

A

Interpreter or a compiler.

21
Q

What is the fundamental difference between an interpreter and a compiler?

A

An interpreter is a source code translating tool which translates the source code line by line and directly executes each line. A compiler on the other hand, translates your source all at once, into machine code, and makes a machine code file that is then translated all at once.

https://www.youtube.com/watch?v=e4ax90XmUBc

22
Q

Define operating system.

A

An operating system is a program that manages and controls a computer’s activites.

23
Q

Why Java?

A

Java is a general purpose language and is the internet programming language.

24
Q

What are some of the applications of Java?

A
  • Develop standalone applications (software that doesn’t require the internet to run)
  • Develop browser applications
  • Develop applications for hand-held devices
  • Develop applications for web servers.
25
Q

What is a web server?

A

A web server is the computer software and hardware that accepts HTTP and HTTPS request and gives HTTP and HTTPS responses.

26
Q

Java is like what other language but simpler and with less negative aspects?

A

C++

27
Q

What is a programming paradigm?

A

programming paradigms are ways of classifying programming languages based on their features.

28
Q

A regular modem and DSL are similar in what way and different in what way?

A

A regular modem uses phone lines to transfer data at 56,000 bits per second. DSL also uses phone lines but transfer speeds are 20x faster than that of a regular modem.

29
Q

How is a cable modem similar to DSL?

A

A cable modem uses the TV cable line maintained by the cable company and its transfer speeds are as fast as DSL.

30
Q

The NIC(network interface card) connects the computer to…

A

LAN(local area network)

31
Q

A high speed NIC is also known as…

A

1000BaseT. Can transfer data at 1000 mbps(1 million bits per second)

32
Q

NIC, Modems, DSL, are all examples of…

A

Communication Devices

33
Q

A computer program is also known as _____(1)____ and it is instructions to the computer.

A

Software

34
Q

Machine Language is…

A

a set of primitive instructions built into every computer. The instructions are in the form of binary code.

35
Q

Assembly languages are “in between” what two levels of programming language?

A

Machine Language and High-level language

36
Q

What program converts assembly language into machine code?

A

Assembler

37
Q

High level languages are described as…

A

Enligh-like and easy to learn and program.

38
Q

A program written in a high-level language is called a…

A

source program/ source code

39
Q

High level languages are translated into machine code via ___1___ or ___2____?

A
  1. Interpreter
  2. Compiler
40
Q

What is a Java class file?

A

A Java class file is a file containing java bytecode that can be executed on Java virtual machine.

41
Q

Users and applications communicate/access with a computers hardware via…

A

Operating systems

42
Q

The most important code running on a computer is…

A

The operating system.

43
Q

What are the major responsobilities of an operating system?

A
  1. Controlling and monitoring system activities
  2. Allocating and assigning system resources
  3. scheduling operations
44
Q

JDK stands for…

A

Java Developer Toolkit; contains several separate programs for compiling, running, and testing Java programs.

45
Q

Opening and closing parentheses are used with…

A

Methods

46
Q

Opening and closing brackets are used with…

A

Arrays

47
Q

Opening and closing braces are used for…

A

Denote a block to enclose statements.

48
Q
A