Open Source QB
Open Source QB
Open Source QB
com
www.Vidyarthiplus.com
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING (UG & PG)
UNIT I
Part -A
Open Source Software is software for which the underlying programming code is
available to the users so that they may read it, make changes to it, and build new
versions of the software incorporating their changes. There are many types of Open
Source Software, mainly differing in the licensing term under which (altered) copies
of the source code may (or must be) redistributed.
• No initial cost
• No licensing issues
• Openness and Transparency
• Speed of Access
• Freedom of movement
• Portable
• Reliable
• Stable
• Security
3. What are the four important factors that led to the development of open source
software?
The following are the four important factors that lead to the development of
Open Source Software:
• To diminish the high monopoly value of the Proprietary Software
• To avoid discrimination among persons like developers of the product
and users of the product
• To enable the user finding and fixing the bugs themselves
• To allow customers to have control over the products they use and to
redistribute the same with or without modifications.
www.Vidyarthiplus.com
www.Vidyarthiplus.com
• Finance
• Educational
• Data Storage and Management
• Games
• Media
• Networking and Internet
• Graphics
A Development Phase:
Here the Kernel is not reliable and the Process is to add functionality to
it, Optimize it and to try new ideas. This Phase gives rise to odd-numbered
version numbers, such as 1.1,1.3 etc., This is the time when the maximum
amount of work is done on the kernel
A Stabilization Phase:
Where the aim is to produce as stable a kernel as possible. Only minor
adjustments and modifications are made. The version numbers of so called
Stable Kernels are even, such as 1.0,1.2 etc.,
www.Vidyarthiplus.com
www.Vidyarthiplus.com
The scheduler is the kernel function which decides which process should be executed by
the processor: the scheduler scans the list of processes in the ‘ready’ state, and uses
several criteria to choose which process to execute.
The Linux scheduler has three different scheduling policies: one for ‘normal’ Processes,
and two for ‘real time’ processes
• SCHED_FIFO, for a unalterable ‘real time’ process.
• SCHED_RR, for an alterable ‘real time’ process,
• SCHED_OTHER, for a ‘classical’ process.
15. What are the formats supported in Linux for executable programs
Linux supports two formats for executable programs
• A.out-binary format
• ELF – dynamic libraries
SNSCT – Department of Computer Science & Engineering (UG&PG) Page 3
www.Vidyarthiplus.com
www.Vidyarthiplus.com
www.Vidyarthiplus.com
www.Vidyarthiplus.com
23. What are the two kinds of major partitions on a Linux system?
Data partition: normal Linux system data, including the root partition containing
all the data to start up and run the system;
Swap partition: expansion of the computer's physical memory, extra memory on hard
disk.
www.Vidyarthiplus.com
www.Vidyarthiplus.com
Advantages Disadvantages
www.Vidyarthiplus.com
www.Vidyarthiplus.com
www.Vidyarthiplus.com
www.Vidyarthiplus.com
www.Vidyarthiplus.com
www.Vidyarthiplus.com
• Intermittent connections. If you are not actively retrieving mail or browsing web
pages, the ISP will break the connection. And, since it ties up the phone line,
most individuals will wish to disconnect when not in use.
www.Vidyarthiplus.com
www.Vidyarthiplus.com
• Does not tie up phone line. A telephone and the computer can share the same
physical wire and be used simultaneously.
• Fixed IP available so you can use it to host your own domain for your practice
• Can be used to host a web site.
• Dial-up access when traveling often included
www.Vidyarthiplus.com
www.Vidyarthiplus.com
60. What way to Sharing a Dial-up connection and give the advantage &
disadvantage
Sharing a telephone line with any style of computer can easily be done with any
number of products. The Apple Airport Base Station was the first to make this available
to the consumer while other products such as the Lucent Orinoco RG-1000 are designed
to work with any platform. Computers connect to the dial-up Internet via a local wired
ethernet or wireless Wi-Fi network.
www.Vidyarthiplus.com
www.Vidyarthiplus.com
62. Define Sharing a DSL or Cable Line and give the advantage & disadvantage
Sharing a DSL or cable connection can be done with any number of products
called Cable-DSL routers. Two manufacturers are Linksys and Asante. These products,
which start at about $80, connect to your cable or DSL box supplied by your broadband
provider and establish a connection with the ISP as if it were a computer. They then
create an internal network (Local Area Network or LAN) that allows your machines to
share that one Internet connection and to connect with each other. Machines on the
LAN are behind a firewall. A specific machine on the LAN can be assigned as a web
server, a secure mail server, an FTP server, or some other service and any requests from
the Internet will be passed through the firewall to that machine.
63. Discuss about Sharing a DSL or Cable Line Advantages & Disadvantages.
Advantages
• Always on
• Uses only one DSL or cable connection
• Any number of computers can access the Internet simultaneously
• Machines on your LAN (Local Area Network) are invisible to the Internet at
large
• One of the machines on your LAN can be assigned to function as a web
server for both your LAN and the Internet
Disadvantages
• Requires extra hardware
• Requires a network
www.Vidyarthiplus.com
www.Vidyarthiplus.com
Part-B
5. Basic shell commands - logging in, listing files, editing files, copying/moving
files, viewing file contents, changing file modes and permissions
7. Explain in detail
i. Dialup
ii. DSL
iii. Ethernet
www.Vidyarthiplus.com
www.Vidyarthiplus.com
UNIT – II
Part –A
• Corel Linux
• Debian GNU/Linux
• OpenLinux (Caldera)
• Red Hat
• Slackware
• SuSE
• TurboLinux
4. Define IMAP?
IMAP is an Internet Message Access Protocol. It is a method of accessing
electronic mail messages that are kept on a possibly shared mail server. In other words,
it permits a "client" email program to access remote message stores as if they were local.
For example, email stored on an IMAP server can be manipulated from a desktop
computer at home, a workstation at the office, and a notebook computer while travelling,
without the need to transfer messages or files back and forth between these computers.
IMAP uses TCP/IP port 143.
5. Define POP
• Short for Post Office Protocol, a protocol used to retrieve e-mail from a mail
server. Most e-mail applications (sometimes called an e-mail client) use the POP
protocol, although some can use the newer IMAP (Internet Message Access
Protocol).
• There are two versions of POP. The first, called POP2, became a standard in the
mid-80's and requires SMTP to send messages. The newer version, POP3, can be
used with or without SMTP. POP3 uses TCP/IP port 110.
www.Vidyarthiplus.com
www.Vidyarthiplus.com
8. Define Maildir
Maildir is a widely-used format for storing e-mail that does not require application-
level file locking to maintain message integrity as messages are added, moved and
deleted. Each message is kept in a separate file with a unique name. All changes are
made using atomic filesystem operations so that the filesystem handles file locking
concurrency issues. A Maildir is a directory (often named Maildir) with three
subdirectories named tmp, new, and cur.
www.Vidyarthiplus.com
www.Vidyarthiplus.com
www.Vidyarthiplus.com
www.Vidyarthiplus.com
• NFS is primarily used to share files with other Linux clients. Linux clients can
mount an NFS share as a directory within their local file system.
• SAMBA is primarily used to share files and printers with Windows
clients.
• The DHCP client sends a broadcast request to find the DHCP server and the
DHCP server in the subnet responds with an IP address (and other common
network parameters) from a pool of IP addresses
www.Vidyarthiplus.com
www.Vidyarthiplus.com
PID PPID
1. A process ID is a unique identifier 1. A process that creates a new
assigned to a process while it runs process is called a parent
process; the new process is
2. Each time you run a process, it has called a child process
a different PID (it takes a long
time for a PID to be reused by the 2. The parent process (PPID)
system) becomes associated with the new
child process when it is created
3. You can use the PID to track the
status of a process with the ps
command or the jobs command, or 3. The PPID is not used for job
to end a process with the kill control
command
www.Vidyarthiplus.com
www.Vidyarthiplus.com
www.Vidyarthiplus.com
www.Vidyarthiplus.com
www.Vidyarthiplus.com
www.Vidyarthiplus.com
www.Vidyarthiplus.com
www.Vidyarthiplus.com
Part - B
i. Sound cards
ii. Displays & display cards
iii. Network cards
iv. modems
v. USB drives
vi. CD writers
www.Vidyarthiplus.com
www.Vidyarthiplus.com
UNIT – III
Part – A
www.Vidyarthiplus.com
www.Vidyarthiplus.com
8. Define Debugger
• a program that helps in locating and correcting
o programming errors.
• A tool used by a programmer to identify and fix bugs in a program
• A debugger is a program which runs other programs in such a way as to let you
see every step of program execution. A debugger will let you stop the program
while it is running, change the program or program variables, and start the
program running again.
• is the most popular debugger for unix systems to debug C and C++ programs.
• helps you to find out
o Statement or expression which causes crash
o Values of program variables at a particular point during execution of
program
o Result of particular expression
www.Vidyarthiplus.com
www.Vidyarthiplus.com
• Negative Effects
• Traffic bottlenecks
• Single point of failure
www.Vidyarthiplus.com
www.Vidyarthiplus.com
www.Vidyarthiplus.com
www.Vidyarthiplus.com
• Use NAT to implement transparent proxies • Aid the tc and iproute2 systems used to
build sophisticated QoS and policy routers • Do further packet manipulation
(mangling) like altering the TOS/DSCP/ECN bits of the IP header
www.Vidyarthiplus.com
www.Vidyarthiplus.com
downloads transparently and speeding up Internet access, especially for frequently used
files.
GNU RCS (Revision Control System) manages multiple revisions of files. RCS
can store, retrieve, log, identify, and merge revisions. It is useful for files that are revised
frequently, e.g. programs, documentation, graphics, and papers. It can handle text as
well as binary files, although functionality is reduced for the latter.
Part - B
2. Explain about using the GNU Compiler Collection –GNU compiler tools
i. The C preprocessor (cpp)
ii. The C compiler (gcc)
iii. The C++ compiler (g++)
iv. Assembler (gas).
4. Explain about using source code versioning and management tools - using CVS to
manage source code revisions, patch & diff.
www.Vidyarthiplus.com
www.Vidyarthiplus.com
UNIT – IV
Part - A
2. Define CGI.
CGI refers to the Common Gateway Interface, and is the most common method
of executing external programs or scripts on the server side to generate content. Even
things like PHP make use of the concepts of CGI to perform their functions and features.
CGI can also be your worst security nightmare, so use it carefully, and pay close
attention to your server configuration. Probably the best instructions on enabling CGI in
Apache ever written are the CGI HOWTO included with the Apache documentation.
3. What is SSI?
SSI Server Side Includes (SSI) allows for an easy way to include right in the
middle of a web page such things as file modification time, values of environment
variables, current date and time, and even the output of programs and scripts.
4. What is MDA?
“Model Driven Architecture is a new way of writing specifications and developing
applications, based on a platform independent model (PIM).”[OMG]
www.Vidyarthiplus.com
www.Vidyarthiplus.com
advantages disadvantages
Reduces the complexity of a system Manual changes in code
• Allows easy adaptation to new • Manual changes in lower level models
technologies • How optimized will the generated code
• Standardization allows integration be
between • Still unresolved standard issues
different tools • Increased complexity of the modeling
• Simple models allow easier languages
communication
with the customer
• Automatic code generation
11. List the four principles from the OMG's view of MDA.
• Models expressed in a well-defined notation are a cornerstone to understanding
systems for enterprise-scale solutions.
• The building of systems can be organized around a set of models by imposing a
series of transformations between models, organized into an architectural framework of
layers and transformations.
• A formal underpinning for describing models in a set of metamodels facilitates
meaningful integration and transformation among models, and is the basis for
automation through tools.
• Acceptance and broad adoption of this model-based approach requires industry
standards to provide openness to consumers, and foster competition among vendors.
www.Vidyarthiplus.com
www.Vidyarthiplus.com
MOF UML
Binary associations N -ary associations
No AssociationClasses or Qualifiers AssociationClass, Qualifier
Direct References Navigation through Associations
Generalization and Generalization and
Dependency are Associations Dependency are metaclasses
No support for templates Template metaclass
Subset of CORBA primitive data types No CORBA awareness
and constructors
www.Vidyarthiplus.com
www.Vidyarthiplus.com
Part - B
www.Vidyarthiplus.com
www.Vidyarthiplus.com
UNIT – V
Part - A
5. Define Qt Programming.
www.Vidyarthiplus.com
www.Vidyarthiplus.com
www.Vidyarthiplus.com
www.Vidyarthiplus.com
www.Vidyarthiplus.com
www.Vidyarthiplus.com
www.Vidyarthiplus.com
www.Vidyarthiplus.com
Part-B
Prepared By Verified by
Prof.T.KALAIKUMARN, Prof/CSE, Prof.T.KALAIKUMARN, Prof/CSE,
Mrs.S.DHANALAKSHMI, AP/CSE,
Mr.D.PRABAKAR AP/CSE
Reviewed by Approved By
Dr.S.Karthik, Prof & Head/CSE Dr.V.P.Arunachalam
Principal
www.Vidyarthiplus.com