About Us

header ads

CS101 Lecture Wise important Question FOR MIDTERM



 CS101 Sample Midterm Papers Pattern:


Syllabus to be covered: Lecture 1-22.


MCQs (1 marks objective question)


Subjective (2, 3 & 5 marks descriptive questions)


Total Questions = 26

Total Marks = 40

Total MCQs of 1 Mark = 20

Short Subjective Question of 2 Marks = 2

Subjective Question of 3 Marks = 2

Subjective Questions of 5 Marks = 2


Q-1 As project manager what are parameters to write feasibility study report? (5 Marks)


Q-2 Name any two languages that can't run w/o interpreter? (LISP, BASIC i wrote) 2 marks


Q-3 Give six attributes of INPUT tag ? (3 marks)


Q-4 What are two ,most important parameters of Algorithim analysis (I wrote time and other is memory which i Forgot) (5 Marks)

Q-5 Steps for SW developer to make a program for an airline.

Q-6 HTML code 4 writing a text of 40 words and 5 rows.



My Today's Paper (MSBA Student)


Total Questions: 26


MCQs: 20


Total 2 Marks Questions: 2


Total 3 Marks Questions: 2


Total 5 Marks Questions: 2


Question # 19: What is Deterministic Algorithm? (2)


Question # 20: What is Architecture Design in SW Development? (2)


Question # 21: Greedy Algorithm is always right or not, Justify in your own words? (3)


Question # 22: How to block Popup Windows using Java Script? (3)


Question # 23: 5 tips for writing a good Pseudo Code? (5)


Question # 24: What are the OS core tasks? (5)



My Today's Paper

Shared by Izma Khan (VU MIT Student)

Total 26 questions.


20 were the Mcq,s


2 questions were the 2 marks


2 questions were the 3 marks


2 questions were the 5 marks


Subjective

Question No.1) A company requires a fire alarm (software system) that can generate alerts in case of emergency like short circuits or fire etc. keeping in view the types of programs, suggest what kind of program should be developed?


Question No.2) Identify the name of OS component which takes responsibilities of all essential operations like basic housekeeping, task scheduling, etc.




Question No.3) Write HTML code that generate an input filed with name text, 40 columns and 5 rows?


Q4uestion No.4) Can we use reserved words in a program as objects and variables name? Justify your answer.



Question No.5) A beginner learner of JavaScript puts very much effort to write the following piece of code in JavaScript. But despite of so much effort, program contains 5 errors at different places. You are required to find and write the errors with remarks.


Function throw ()


{


True= “true”


document.write(True);


10b=15;


Subjective

Q1) Suppose you are a project manager in Zee tec software house you have the responsibility to prepare the feasibility report? 2 marks

Q2) Highlight the 2 drawbacks of the java script? 2marks

Q3) Suppose a user click a mouse button on an object then some events occur in response against this action. Which programming technique use for this? 3 marks

Q4) Student A and student B han student B online study karta ha online study k Advantages btany thy. 3 marks

Q5) How spread sheet id helpful in doing a ‘’what-if’’ analysis in business? Define with example? 5 marks



Total 26 questions.

Another Today's Paper 

Shared by MIT Student


20 were the Mcq,s


2 questions were the 2 marks


2 questions were the 3 marks


2 questions were the 5 marks


Subjective

1) Role of comments in coding (2marks)


2) define server side scripting (2marks)


3) A company is receiving complain by its customers that their pop-up window is big, how can the developers of the website make it small (3marks)


4) Tell about any 3 OSes (3marks)


5) Write output of following (5marks)


<html>


<head>


<script>


6) Write output of following (5marks)


<p> send e-mail to me </p>


<ol>



(CS101) Introduction to Computing Course Short Notes and short questions answers

Midterm papers

What is a client side script?

It’s a small program that is a part of Webpage and run on the Clients, they interact with the user

to collect information or to accomplish the tasks. When it succeeded to collect the information

they pass the collected information to Server-Side Script.

Advantages:

Reduced Server Load

Reduced Network Traffic

Don’t send incomplete/incorrect/missing data to user’s browser.

Disadvantages:

Don’t work with all Browsers

Scripting may be turn off by user

Increases the complexity of the Webpage.

What is JavaScript?

It’s a programming language and designed to work with browsers developed by Netscape

and designed to develop small program called Client-Side Scripts and that can used in

HTML WebPages. JavaScript is a Case Sensitive language, and it is an interpreted language and

supports Event-Driven programming & it’s also a Object Based.

Some Things That JavaScript Can’t Do:

JavaScript can’t do “Read” “Modify” “Rename” “Delete” “Create”

What Is Object?

It is a named collection of methods and properties.

Types of Object:

There are three types of object

1 JavaScript objects (are part of JavaScript like window, document)

2 Browser objects ( are that objects that contain information about itself)

3 User-defined objects

What Is Method?

Methods are function that are used to manipulate with the Object like (window. close)

Here (window is a Object and close is a Method)

What Is EVENT HANDLERS?

Objects are made up of methods and properties, many object also have event handlers. “Events”

are action that occurs with user interaction with the internet browser.

What Is Programming?

A process in which we tell the computer what needs to be done or what to do.

Types Of Programs:

There are two types of programs

1 Batch Programs

2 Event – Driven Programs

1) Batch Programs:

These program starts automatically via a scheduler like

Initializing the internal data

Reading input data

After reading process that data

After processing print that data

(Important) > No user interaction on those types of programs

2) Event – Driven Programs:

These program starts with user interaction e.g. Microwave Oven, GUIs, Camera

Events that user Does: It’s when user click the mouse button

Things the system itself Does: It’s when system automatically updating the Clock

Loops

Conditions

All Types Of Program Consist Of:

Sequence of instruction

Types Of Programming Languages:

Machine Language (Low Level Programming Language)

Assembly Language

High – level Language (High Level Programming language)

Object Oriented Language

Database Query Language

Procedural Language

Machine Language:

Consist of numbers only & 0s and 1s and this language is not close to human language &

difficult to understand by the computer user. Each type of microprocessor has its own Machine

Language; this is only a language that a computer understands easily without any translation.

Assembly Language:

That type of language that lay between Machine Language and High-Level Language.

High – Level Language:

In High-Level language you write code in English language. This language is user

friendly, because user can understand the code easily e.g. C++, COBOL, V.B, FORTRAN.

Object Oriented Language:

In object oriented language work is done on the object action, this language is better than

Procedural Language e.g. JAVA, C++.

Database Query Language:

In Database Query Language records are kept in tables permanently and each table is

related with each other e.g. now a days SQL is used for this purpose.

Procedural Language:

In Procedural languages program is written in a sequence e.g. COBOL, FORTRAN.

What Is Compiler?

Compiler is a program that translates the whole program from bottom to top or top to

bottom at a time. It tells you all errors in your program at a time and it is faster than an

interpreter.

What Is Interpreter?

Interpreter is also a translator that translates the program line by line. It doesn’t translate

the whole program at a time. It doesn’t tell all errors in your program but it tells you line by line

and it is slow in speed.

What Is Software Life – Cycle?

It is a sequence of phases we can say that it’s a step of new born to death.

Simple Software Life Cycle:

Concept & Feasibility (what needs to be done, what should be in it, has any scope) User

Requirements (what user want in his website, possible solution needed, lose form) Developer

Specification (how much developer make, structured form) Planning (think & plan that how to

make it) Design (comes after reading developer specification)Implementation (design

is complete now it’s time for coding) Integrating & Testing Operation & Maintenance Retirement

What is Variable?

We can say that Variables are the References of DATA like (x < 6) here x is a Variable.

What is Identifiers?

These are the names used by JavaScript to refer to Variable.

What is JavaScript Literals or JavaScript Data Types?

A data or value that appears directly in a statement and it has several types some are

Numbers (e.g. 24, -32000, 9.230)

String (e.g. “”, “Umer”, “Where is She”) should be matching pair or in single or double quotes.

Booleans

Undefined

Types of Operator:

Arithmetic Operators (e.g. +, -, *, /, %, ^)

Comparison Operator (e.g. a= =b, a!=b, a>b, a>=b, a<b, a<=b,)

Logical Operators (e.g. a && b, !a)

What is Array?

Array is an indexed list of elements; we can say that it is container that holds a value

What is a Pseudo Code?

Pseudo Code consists of short, English phrases used to explain specific tasks within a program's

algorithm.

What is Website Navigation?

The interface/controls that Website provide to the user for accessing the various parts of

Website.

What is Computer Network?

Computer network mean where multiple computers are connected together to share

information.

Components of Computer Network:

Computers

Network interface Cards (NIC) (NIC communicate over a network)

Hub (network traffic controller)

Cables (either electrical or optical)

Protocols (rules governing of communication over a network)

What is Hub?

Hub is a device that is used to connect several computers through a network, it has

several ports, and we can say that Hub is a network traffic controller. E.g. any computer on the

network wants to send message to other computer on the same network first send to Hub, now

Hub broadcast it to specific one.

What is Packet?

Packet is a smallest unit of data that is transmitted over a computer network. Any message that is

transferring over the network is broken into small packets and these packets travel independently

and each packet contains the following information:

Sender’s Address

Destination Address

Data

Error Recovery Information

Types of Computer Network According to the Network Access policy:

There are two types of computer networks according to network access policy.

Private Networks

Public Networks

Virtual Private Network

1. Private Networks: -

Organizations have many computers to connect them on the network, they usually

connect those computers via Private Network and these computers are restricted only authorized

computer access them. The purpose of these computers is to exchange the information to other

computers within the organization and to protect from the outsiders.

2. Public Networks: -

All networks that are not private are Public Networks. The communication

equipment used in these networks is generally used by the user.

3. Virtual Private Network

VPN is a secure, private network. VPN is use for public telecom infrastructure,

maintaining privacy through security procedures.

Types of Computer Networks:

There are three types of computer networks.

LAN (Local Area Network)

WAN (Wide Area Network)

MAN (Metropolitan Area Network)

LAN (Local Area Network):

Local area network is digital communication system in which you can connect a large

number of computers in a limited geographical area. Limited geographical area means less than 1

Km across.

WAN (Wide Area Network)

A wide area network is digital communication system; it connects the computer with a

great distance, typically across cities or even countries. E.g. ATM of bank

MAN (Metropolitan Area Network)

MAN is a network that interconnects user with computer resources in geographical area

or region, larger than that covered by a large LAN but the smaller than the area covered by a

WAN.

Connecting LAN to other Network:

There are some devices that connect LAN to other networks, these devices called special

purpose devices.

Routers

Bridges

Gateways

Modems

What is Routers?

Router is special purpose device that control the flow of data or you can say Traffic

Controller and he examines the destination to flow the information on efficient path.

What is Bridges?

Bridge is situated between 2 LAN’s means a separate connection, but similar network and

passes the information through LAN.

What is Gateways?

Gateway is more complex device than Bridge. Gateway is special purpose device that

translate between networks that are using different types of communication protocols.

What is Modem?

Modem is a special purpose device that connects two computers via Telephone line.

Modem stands for modulator or demodulator.

Modulator converts computer messages to electrical pulses (suitable) over a telephone line.

Demodulator converts electrical pulses received over telephone line into messages.

Network Topologies:

There are four types of network topologies.

Star

Ring

Bus

Point-to-Point / Peer-to-Peer

What is Star Topology?

It is designed with each node connected directly to a central network called Hub. Data on star

network passes through the Hub before continuing to its destination. If any of the local

computers fail, the remaining portion of the star network is unaffected. Multiple messages sent

simultaneously on star.

What is Ring Topology?

No server is required. In ring topology, computers are connected on a single circle of cable. It is

more reliable than the star network because communication is not dependent on a single host

computer.

What is Bus Topology?

No server is required for bus topology, in this topology the data or messages sent to one

computer to another computer directly, if any nodes goes down the rest of the network won’t

affected.

What is P2P Topology?

This type of topology is less expensive, have limited connectivity and used to connect

two LANs to form a WAN.

Types of Networking Protocol:

There is two types of networking protocols, these are

Ethernet protocol

Token Ring Protocol

What is Ethernet Protocol?

This type of protocol checks the shared connection before transmitting the message is it

in use or not.

What is Token Ring Protocol?

This protocol passes the special message through network called a Token. When any

computer receives the token has permission to send that packet or token to other one.

Types of Communication Channels:-

Wire (twisted pair, coaxial cable, optical fiber)

Wireless (laser, radio, cellular, satellite)

Key characteristics of these channel is Bandwidth

What is Bandwidth?

Capacity of carrying the data of communication and it is measured in bits e.g. (bps, kb/s,

Mb/s)

What is Internet?

Internet enables to share information with others from all over the world; it is very less

expensive utility and accessible to every humankind. Internet is accessible from every where of

the world and this is fastest growing technology. Internet is for public any one from any where

can access and do anything and intranet is for private, limited access.

What is TCP/IP?

TCP/IP stands for Transmission Control Protocol/Internet Protocol. TCP breaks down the

message to sent over the internet into packets, when message reached to its destination TCP

convert it to its original form.

Post a Comment

0 Comments