Docsity

Computer Network Fundamentals, Exams of Computer Science

Toggle sidebar
bg1
FTCE COMPUTER SCIENCE EXAM
QUESTIONS WITH COMPLETE SOLUTIONS
2024/2025
Internet Piracy
Illegally download software, music, or other forms of entertainment, regardless of intent
Plagiarism
Use of another person's ideas or works as one's own
Proprietary License
Publisher allows consumers to use software but ownership still remains with the software publisher
GNU General Public License
Commonly known as open source, consumers may alter code and distribute it
EULA Agreement (End User License Agreement)
Shows terms that user must agree to in order to use the software
Workstation License
Permits use of software only
Concurrent Use License
Permits use of software by simultaneous users accessing the program
First generation Computers
-stored data using a network of vacuum tubes
-ENIAC
-Programs written in binary
Second Generation Computers
-Stored data using transistors, possible to regulate voltage
-Compilers using English commands, not machine language
-COBOL and FORTRAN languages of choice
Third Generation Computers
-Stored data using integrated circuits which enabled transistors and components on small chips
-Ex. RCA Spectra 70, IBM 360, IBM AD/400
Fourth Generation Computers
-Microprocessors made possible for computers to become small, powerful, less expensive
-Intel, Motorola, Texas Instruments important microprocessor manufacturers
Digital Citizens
Individuals who use the Internet for social, political, or governmental means
Worm
Self-replicating malware
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download Computer Network Fundamentals and more Exams Computer Science in PDF only on Docsity!

FTCE COMPUTER SCIENCE EXAM

QUESTIONS WITH COMPLETE SOLUTIONS

Internet Piracy Illegally download software, music, or other forms of entertainment, regardless of intent Plagiarism Use of another person's ideas or works as one's own Proprietary License Publisher allows consumers to use software but ownership still remains with the software publisher GNU General Public License Commonly known as open source, consumers may alter code and distribute it EULA Agreement (End User License Agreement) Shows terms that user must agree to in order to use the software Workstation License Permits use of software only Concurrent Use License Permits use of software by simultaneous users accessing the program First generation Computers

  • stored data using a network of vacuum tubes
  • ENIAC
  • Programs written in binary Second Generation Computers
  • Stored data using transistors, possible to regulate voltage
  • Compilers using English commands, not machine language
  • COBOL and FORTRAN languages of choice Third Generation Computers
  • Stored data using integrated circuits which enabled transistors and components on small chips
  • Ex. RCA Spectra 70, IBM 360, IBM AD/ Fourth Generation Computers
  • Microprocessors made possible for computers to become small, powerful, less expensive
  • Intel, Motorola, Texas Instruments important microprocessor manufacturers Digital Citizens Individuals who use the Internet for social, political, or governmental means Worm Self-replicating malware

Virus Malware triggered by the user Malware Malicious software intended to harm the computer Copyright Used to protect created software Patent Used to protect a physical piece of hardware - like a specific device 1980s When was C++ introduced 1960s When Internet was created 1969 When Arpanet was created - Universities and Military Late 1980s When Internet was widely available 1990s When WWW widely used Algorithm A set of instructions designed to perform a specific task Data Information processed or stored by a computer Information Unprocessed data Bandwidth Maximum data transfer rate of a network --capacity - lanes on the highway Network Two or more computers connected to share each others' resources; Latency Delay that may be present in transmission of data on a network; Amount of time information takes on a network - time Network Latency Delay in taking place of communication over a network - Internet Disk Latency Delay that takes place between request to access information and actually accessing that information - amount of time hard drive takes to open a specific program LAN

Please Do Not Throw Sausage Pizza Away Mnemonic for OSI Model starting at level 1 Physical, Data Link, Network, Transport, Session, Presentation, Application OSI Model Layers starting at level 1 (bottom) OSI - Physical Layer - Layer 1 OSI takes all data from other layers so that a person can interpret it OSI - Data Link Layer - Layer 2 OSI layer where physical addressing takes place Controls access to media and how data is placed and received from the media MAC address Physical address of a piece of hardware; cannot be changed IP address Network address assigned to hardware; can be changed OSI - Network Layer - Layer 3 OSI layer where IP addresses are assigned, data is sent in packets, routing takes place, and paths are determined Packet A block of data transmitted across a network Path determination Path of least possible resistance OSI - Transport Layer - Layer 4 OSI layer responsible for segmentation, flow control, and error control Segmentation

  • data is split into segments
  • each segment has a source and a destination Flow Control The notion of slowing down or speeding up the transport of data depending on the devices receiving and sending the data Error Control Automatically repeats requests OSI - Session Layer - Layer 5 OSI layer that does session management, authentication and orientation APIs or Application Programming Interface In Presentation layer, list of rules for programming set or interface OSI - Presentation Layer - Layer 6 OSI Layer that takes care of Translation Data compression encryption- Lossy

Standard in presentation layer - when data is decompressed; might lose some data in decompression but virtually indistinguishable Lossless In presentation layer when data is decompressed it is exactly the same OSI - Application Layer - Layer 7

  • End User Layer
  • HTTP, FTP TCP/IP model Separates networking functions into discrete layers Application Part of TCP/IP model that represents data to the user plus encoding and dialog control Transport Part of TCP/IP model that supports communication between diverse devices across diverse networks Internet Part of TCP/IP model that determines the best path through the network Network Access Part of TCP/IP model that controls the hardware devices and media that make up the network IPV 32 bit string that are assigned to a network connection IPV 128 it string assigned to a network connection because we ran out of 32 bit strings IPV What level of IP addresses are we in right now? Bit Binary digit - one item of data Byte 8 bits Nibble 4 bits IP Internet Protocol DNS - Domain Name Server The phone book of the internet Hubs Outdated - considered "Dumb"; repeated data everywhere without logic; wastes bandwidth; replaced with switches Switches

Data types that can hold whole numbers Floating point Data types that represent numbers and fractional parts Float and double Two types of floating point data Boolean Data types that store either true or false Binary Base 2 - The natural way most digital circuits represent and manipulate Hexadecimal Base 16 - most popular choice for representing digital circuit numbers in a form that is more compact Octal Base 8 - a previously popular choice for representing digital circuits in a form more compact than binary Arrays Homogeneous, linear data structures where data items are arranged in a linear sequence with fixed memory locations at compile time Linked lists Dynamic structures that expand or shrink depending on the program needs and executions Trees and graphs Non linear data structures where data items are not in sequence Stacks Collections passed on the last-in-first out (LIFO) policy; only allow 2 operations - push and pop Queues Collections based on first-in-first-out (FIFO) policy; Only allow 2 operations- enqueue and dequeue Local, instance, and class/static What are the three kinds of java variables? In a method, constructor, or block; not visible outside the method How are local variables declared in java? By a keyword and are enclosed by curly braces {} How are classes declared in java? They are declared in a class but outside the method. They are visible in all methods and constructors of the defining class, declared as private How are instance variables declared in java?

**1. Split the digits

  1. Find the decimal values
  2. Convert each decimal value into a 4-digit binary value
  3. Get answer**

What are the rules for converting hex to binary?

**1. Separate the digits into groups of 4 starting at the right

  1. Convert 4 bit number to a decimal
  2. If any number greater than 10, convert to 11
  3. Get your answer** What are the rules for converting binary to hex? Node - in networking Either a connection point, a redistribution point, or a connection endpoint Node - in computer science Devices or data points on a large network, devices such as a PC, phone, or printer Binary tree Tree data structure where each node has up to two child nodes, creating branches Hash table Data stored in an array format, where each data value has its own index value Class Used in object-oriented programming to describe one or more objects. It serves as a template for creating, or instantiating, specific objects within the program Methods A subroutine attached to a specific class defined in the source code of a program. It is similar to a function but can only be called by an object created from a class. Attribute Another term for field; it is typically a public constant or a public variable that can be accessed directly. Constructor A special method that is called when an object is instantiated; when you use a new keyword; the purpose of using this is it initializes the newly created object before it is used. Instantiate A concrete occurrence of any object, existing usually during the runtime of a computer. Static method Method that belongs to a class rather than an instance of a class. It is accessible to every instance of a class. Big endian Most significant value is stored first in the sequence of bytes (most like natural language) Little endian Least significant value is stored first in the sequence of bytes Bubble sort Based on idea of repeatedly comparing pairs of adjacent elements and then swapping their positions if they exist in the wrong order; easy code to write, uses minimal memory, time consuming,

A particular state while algorithm is operating If-then-else Based on a condition, perform one set of operations, if the condition does not hold, perform a different set of operations Iteration Each time through a sequence of steps while checking on a condition Sequence Steps in order, one after another; Top to bottom Selection Decisional operators - true/false and, or, not Repetition Loop/iteration Recursion Repeating a sequence of steps by restarting the same sequence with new input conditions repeatedly - a form of repetition Software documentation Written text or illustration that accompanies computer software Internal documentation Type of software documentation that consists of comments, use of meaningful identifiers, consistent and proper indentation and spacing External documentation Type of software documentation that consists of a user guide that includes detailed description of the design and implementation features of the program Procedural Programming A type of programming language that specifies a series of well-structured steps and procedures; contains systematic order of statements, functions, and commands to complete a task or program, also known as imperative language

**- Simple to use, easy to implement

  • Code reuse at different places without copying
  • Easy to track program flow
  • Ability to be modular or structured
  • Needs less memory** What are advantages to procedural programming? **- No security for data as it is exposed to whole program
  • difficult to relate with real world objects
  • difficult to create new data types so extensibility is reduced
  • lays emphasis on data operation rather than data itself**

What are disadvantages to procedural programming? Object Oriented Programming

  • Program paradigm based on concept of objects
  • Programs designed by making objects interact with one another
  • Objects are key to understanding object oriented tech Encapsulation Concept of Object Oriented programming that is to hide all the data and the methods together into one unit Polymorphism The ability of an object to take on many forms **- Improved software development productivity
  • improved software maintainability
  • faster development
  • lower cost of development
  • higher quality software** What are the advantages of object oriented programming? **- large program size
  • slower programs
  • not suitable for all types of problems** What are the disadvantages of object oriented programming? Mod Remainder Flowchart Type of diagram that represents workflow; a visual representation of an algorithm, step by step approach to solving a task **- To develop understanding of how a process is done
  • to study process for improvement
  • to communicate to others how a process is done** Why do you use a flow chart? Oval What is the start and end symbol in a flowchart? Diamond Shape used for a decision in a flowchart ∩ Symbol for intersection Ս Symbol for union

What are the 6 types of software development life cycles? Agile Model "fast failure" a good thing; small incremental changes from previous releases, helps teams ID and address small issues on projects before evolve into big issues; get feedback through development process Lean Model Seven principals of this SDLC in order: Only wok on what must be worked on at the time, no room for multitasking

  1. eliminate waste 2) amplify learning 3) decide as late as possible 4) deliver as fast as possible 5) empower the team 6) build integrity in 7) see the whole Waterfall model SDLC that is very rigid; very straightforward approach. Finish one stage, then move on to the next. No going back. Iterative Model SDLC that has repetition; start with set of software requirements, test, evaluate, pinpoint further requirements; a new version of software is created with each phase; repeat until the complete system is ready. Spiral Model SDLC that is one of the most flexible; has repetition; 4 phases - planning; risk analysis, engineering, evaluation; over and over until completed allowing for multiple rounds of refinement DevOps SDLC newest to the scene; application of Agile and lean; shift to see the value of collaboration; developers and operations teams work together closely to accelerate innovation and deployment of higher-quality and more reliable software products and functionalities; updates are small but frequent Name the program What is the first thing you must do in pseudocode? CamelCase How is the name for the program written in pseudocode? END. How does a pseudocode program finish? Sprites What are scratch projects made up of? Compilers Convert higher level language into machine language Java compiler Translates Java code into Java byte code Java Virtual Machine (JVM)

An interpreter that runs the Java Byte code on a particular machine Sequential flow Implies a sequence of instructions executed one after another in a predictable manner Conditional flow Implies a break in a flow of execution based on the decision making statements Iteration flow Implies repeated execution of code based on a Boolean condition String An object that represents a sequence of characters length() Tells the length of the string, returns the total number of characters present in the string compareTo() Compares a given string with the current string concat() Combines a specific string at the end of another string and returns the combined string toLowerCase() or toUpperCase() converts characters to lowercase or uppercase equals() Compares two given strings on the basis of content of the string [ ] Array Null Absence of value Inheritance Concept where properties of one class can be inherited by another class Child class A class that inherits the properties Parent class A class whose properties are inherited Single inheritance One class inherits the properties of another Multi-level inheritances One class is derived from a class which is also derived from another class hierarchical One class has more than one child classes Hybrid Combination of multi level and multiple inheritance

A requirement in real world; helps programmers solve problems; truly hard for programmer to "cheat" Go from sage on the stage to guide on the side What is CS teacher goal? Computer Science Teacher's Association (CSTA) What organization do CS teachers get lesson ideas? Speech Synthesizing software What should ELL students use? Binary Search Which search is more efficient as size increases, binary or linear? Merge sort Which sort works well on large sets of data