Notes, summaries, assignments, exams, and exercises for Computer science for Baccalaureate

Python Functions and Errors: Time, Triangle, Bonus, and Digits

Computer science4.09 KB

TIME DIFFERENCE

def time_difference(time1, time2):
time1=time_to_seconds(time1)
time2=time_to_seconds(time2)
diffinsecond=time2-time1
hours=diffinsecond//3600
minutes=(diffinsecond-(hours*3600))//60
seconds=diffinsecond-(hours*3600)-(minutes*60)
return(make_time_string(hours,minutes,seconds))

# Predefined helper functions. Do not edit them.
def time_to_seconds(time):

x = list(map(int, time.split(":"))
return x[0] * 3600 + x[1]*60 + x[2]

def make_time_string(hours, mins, seconds):
return "{:02d}:{:02d}:{:02d}".format(hours, mins, seconds)

TYPE OF TRIANGLE

def triangle(side1, side2, side3):
if side1+side2<>
return "Not a triangle"
elif side1==side2 and side2==side3:
return "Equilateral"
elif...

Continue reading "Python Functions and Errors: Time, Triangle, Bonus, and Digits" »

Fundamental Digital Logic Gates: Operations and Equations

Computer science4.24 KB

Fundamental Digital Logic Gates

A logic gate is an electronic device that serves as the physical expression of a Boolean operator in switching applications. Each logic gate comprises a network of switching apparatus designed to satisfy the specific Boolean conditions for its particular operator. Essentially, these are switching circuits integrated onto a chip.

Claude Elwood Shannon conducted experiments using relays or electromagnetic switches to achieve the conditions required for each logic gate. For instance, the Boolean function Y (AND) is implemented using switches placed in series circuit, because if even one switch is in the "open" state, the gate output Y will be 0. Conversely, to implement an OR gate, the switches are configured in a

...

Continue reading "Fundamental Digital Logic Gates: Operations and Equations" »

Data Flow Diagram (DFD) Explained: Systems Analysis Essentials

Computer science11.54 KB

What Is a Data Flow Diagram (DFD)?

A Data Flow Diagram (DFD) is a graphical representation of the flow of data through an information system. A DFD can also be used to display data processing within structured design. It is common practice for a designer to draw a connection to the first-level DFD, which shows the interaction between the system and external entities. This context-level DFD is "exploded" to reveal more details of the system being modeled.

History and Purpose of DFDs

Data flow diagrams were invented by Larry Constantine, the original developer of structured design, based on the computer model of Martin and Estrin, known as the "Data flow chart." The DFD is one of three essential perspectives of the Structured Systems Analysis and

...
Continue reading "Data Flow Diagram (DFD) Explained: Systems Analysis Essentials" »

Inference Techniques, Bayesian Networks, and FOL in AI

Computer science11.63 KB

Forward and Backward Chaining in AI

Inference engines in Artificial Intelligence use reasoning techniques to derive new information from existing facts. Two primary methods for this are Forward Chaining and Backward Chaining.

Forward Chaining (Data-Driven)

Forward Chaining is a data-driven inference technique used in Artificial Intelligence and Expert Systems. It starts with the known facts (initial data) and repeatedly applies inference rules to derive new facts until the desired goal is reached or no more rules can be applied.

It is called data-driven because the reasoning process begins with the available data and moves forward toward a conclusion.

Forward Chaining Algorithm

  1. Start with the known facts in the knowledge base.
  2. Find all rules whose
...
Continue reading "Inference Techniques, Bayesian Networks, and FOL in AI" »

Operating System Memory and File Structures

Computer science3.91 KB

Understanding Operating System Memory and File Structures

Virtual Memory Concepts

Virtual memory is a fundamental concept in modern operating systems, offering several key advantages:

  1. There are many cases where an entire program is not needed in main memory at a given time.
  2. Even when the entire program is needed, it may not all be required simultaneously.
  3. Application programs always perceive the availability of a contiguous working address space due to the concept of virtual memory.
  4. Actually, this working memory can be physically fragmented and may even overflow onto disk storage.
  5. This technique makes programming of large applications easier and utilizes real physical memory more efficiently than systems without virtual memory.
  6. Although an executing
...
Continue reading "Operating System Memory and File Structures" »

Presidency University Website

Computer science2.83 KB

{ "titl":"Presidency University Websit", "tag": [ "HTM", "CS", "JavaScrip", "Bootstra", "AngularJ", "jQuer" ], "conten":"

Problem Statement:

Mr. Kiran Student of Presidency University wants to create an attractive web page for Presidency University using HTML and CSS with following specifications.

  •   Split the web page into two parts using frames, top section 20% and bottom section 80%.

  •   Place your college logo at the top of the page withmenu’s (About, Academic, Admission,

    Facilities, etc). Createhyperlink for all menus.

  •   Create a web page about the college linked at the bottom of the frame.

  •   Create a web page about the Academic linked at the bottom of the frame.

  •   Create a web page about the admission, list out the departments,

...
Continue reading "Presidency University Website" »

Essential Terminology for Graphic Design, Printing, and Web Projects

Computer science3.55 KB

Core Graphic Design Concepts and Terminology

Vector Graphics and File Types

  • Vector allows for resizing without loss in quality.
  • Vector graphics are smaller in file size.
  • PNG file type (Portable Network Graphics).
  • SVG (Scalable Vector Graphics).

Digital Asset Sourcing

  • He found the images online, but they were in the public domain.
  • The team member created the images himself.

The whole is greater than the sum of the parts.

Typography and Text Handling

  • Kerning: The spacing between specific pairs of characters.
  • Leading: The distance between each line of text.

Font Classifications

  • Script
  • Decorative
  • Serif
  • Sans Serif

Text Overflow

Even though it's not visible, the excess text is still in the bounding area, and a small plus (+) symbol is displayed at the bottom of the...

Continue reading "Essential Terminology for Graphic Design, Printing, and Web Projects" »

C Program for Bit Stuffing and Destuffing

Computer science4.61 KB

Bit stuffing and destuffing are crucial techniques used in data link layer protocols to ensure reliable data transmission. They prevent sequences of data bits from being misinterpreted as control characters or flags, especially when the data itself contains patterns identical to these control sequences.

What is Bit Stuffing?

Bit stuffing is the process of adding one or more extra bits into a data stream to break up a sequence of identical bits that might otherwise be misinterpreted as a control signal. For example, in protocols like HDLC, a flag sequence (01111110) is used to mark the beginning and end of a frame. To prevent the actual data from containing this sequence, a '0' bit is stuffed after every five consecutive '1's in the data stream....

Continue reading "C Program for Bit Stuffing and Destuffing" »

Blue Prism RPA Roles, Governance, and ROM Foundations Q&A

Computer science16.07 KB

RPA Governance and Demand Pipeline Management

Demand Pipeline Prioritization Steps

Which of the following does not describe the “Prioritization” step as part of managing the demand pipeline?

R: Helping a friend

Head of Robotic Automation Role and Responsibility

Which of the following statements are true when describing the role and responsibility of the Head of Robotic Automation?

R: All of the above

RPA Governance Board Objectives

Select from the below which statement best describes the Demand Generation objective within the RPA Governance Board?

R: Identify quality RPA automation opportunities

Select from the below which statement best describes the Demand Management objective within the RPA Governance Board?

R: Responsible for defining and prioritizing

...
Continue reading "Blue Prism RPA Roles, Governance, and ROM Foundations Q&A" »

Refer to the exhibit. When a static IP address is being configured on the host, what address should be used for the default gateway

Computer science15.07 KB

1allows 4 an mtu as high as 9198 bytes.​: jumbo frame
2.R highly scalable & have a very high fault tolerance,massive storage capabilities,& fast data access.: sans
3.R not used 2 find noes on ne2rks other than the local ne2rk.: mac addresses
4.as a ne2rk support technician,U only need 2 know how 2 support ipv6.: false
5.@ what layer of the osi model would a tcp or udp header be added 2 a payload?: layer 4
6.border routers: connect an autonomous system with an outside ne2rk
7.by default,the pathping command sends how many pings per hop?​: 100
8.cable that is coated with flame-resistant polyvinyl chloride (pvc) is acceptable 4 use in plenum areas.: false
9.a ________ consists of a host's ip address & the port number of an application
...
Continue reading "Refer to the exhibit. When a static IP address is being configured on the host, what address should be used for the default gateway" »