Shared Flashcard Set

Details

PROGRAMMING_QUIZ_1
PROGRAMING QUIZ 1
37
Computer Science
Undergraduate 1
10/10/2016

Additional Computer Science Flashcards

 


 

Cards

Term
What's a Computer?
Definition
It's an electronica device that can store and process data
Term
How does a computer does it?
Definition

It's a large collection of electrical switches(bits) 

a switch can be off or on

if on current flows

if off, no current or little current flows

 

Term
What's a bit
Definition
a Bit, is an acronym of Binary Digit
Term
What's a Byte
Definition
it's a group of 8 bits.
Term
What are the others type of bites?
Definition
  • Kib ( Kibibyte) - 210= 1024 bytes
  • Mib (Mebibyte) - 220 = 1024 Kib
  • Gib(Gibibyte) - 230 = 1024 Mib
  • Tebibyte (Tib) - 1024 Gib
  • Pebibyte (Pib) - 1024 Tib
Term
What does ALU stands for?
Definition
Arithmetic Logic Unit
Term
What does ASCII code stands for and how many characters it can read?
Definition

American Standart Code for information Interface

 

and it's equal to 28 = 256   

From 0 to 255

Term
WHat's the Unicode SYstem?
Definition

uses for foreign languanges as the =y have way more simbols that need to be represented.

216 =  65,536


From 0 to 65535

 

.java extension files are saved in UNICODE

Term
Where is Hexadecimal mostly use?
Definition

It's mostly use for Memory address


  • 0
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • A
  • B
  • C
  • D
  • E
  • F
Term
What's a Computer Program?
Definition
It is a set of instructions that tell the machine what must be done
Term
Which was the first computer machine use for the military
Definition
ENIAC - 1945
Term
What does LDA means?
Definition
Load Accumulator 
Term
Which was one of the first higher level languages designed earliy in the 50?
Definition

"ASSEMBLERS"

 

is one kind of source code.

Term
Java code is what type of code?
Definition
it's a source code
Term
What's an Object code?
Definition
it's the code we receive after the translation has been done, so basically it's in machine language.
Term
What's an interpreter
Definition
An interpreter reads source code line by line, translates it and then execute it.
Term
What's an interpreter
Definition
An interpreter reads source code line by line, translates it and then execute it.
Term
What's a compiler?
Definition

Reads the entire source code and translates it to a machine code but IT DOES NOT RUN the code.


compilers execute faster than interpreters.

Term
is java a compiler or translator?
Definition

It make use of both !


javac  is the compiler program 


java.class is the byte code , when you execute it the java it will run it.

Term
What's a Paragigm?
Definition

A model, or framework for analysis


a way of looking at some area of study


a way of doing things

Term
mention two main paradigms?
Definition
  • Procedural
  • Object-Oriented
Term
What does the Procedural Programming focus on?
Definition

it looks at the overall process

divide process into smaller atomic tasks

this is TASK ANALYSIS or TASK DECOMPSITION

 

it leads to creation of an algorithm

Term
What's an Algorithm?
Definition

It's a procedure, or a series of steps for solving a problem.


what needs to be done?

order in which it needs to be done?

Term
What are the three control structures:
Definition
  • Sequence
  • Selection
  • Repetition
Term
What does Object Oriented programming focus on?
Definition

What data (properties) are needed, which methods are carried out

how can one model or represent those properties and methods in computer code.

Term
What's an object?
Definition
is a computer code that models or representes some self-contained entity in the real world or a virtual world.
Term
A program written in java can run on any machine, withouth changes to the source code
Definition
this is possible because the source code is then run by the specific machine compiler program either be a mAC / linux or Windows
Term
JAVA BYTE CODE won't run on any processor.
Definition
Java byte code must be translated to the specific machine code used by whatever CPU is on the target computer
Term
What's a JVM or JRE
Definition

Java Virtual Machine/ Java Runtime Enviroment 

 

this is the interpreter program, this is the java.exe program

Term
What's JIT
Definition

Just in time compilation,


allows byte code to be compiled to native machine code just before it's required.

Term

Java source

 

is then compiled into JAVA BYTE code

 

which is then interpreted by the JVM /jJRE

Definition
Term
How can we get a program to accept input from the keyboard?
Definition
Any data that is typed into the keyboard is stored in a special area of memory called the keyboard buffer
Term
What's the JAVA API
Definition

the Java application Programmer Interface

 

has thousands of useful classes that are stored in several hunderd packages or class libraries that we can access.

 

to access any package we can add an import statement to our program. this tells the Java Virtual Machine where to go in the library to find the code that it needs to run our program.

Term
What does next() does
Definition
Stops reading when it sees either a space or the END-OF LINE
Term
What does NextLine() does?
Definition
it will read spaces, soyou can enter multiple words.
Term
which of the next / nextLine does a buffer flush>
Definition
nextline()
Term
How do you perform a buffer clean?
Definition

by calling the nextline method

 

input.nextline();

Supporting users have an ad free experience!