Mgt101 Assignment 1 2015 Solution Hub

CS101 Solved Subjective Past Paper

Write down HTML and JavaScript code for the following requirements:

Declare an Array with the identifier SUBJECT having length 5. Assign following values to the array elements:

MIS, Java, Algorithms, Databases, C++

Show all values in reverse order.

   

CS101 Past Paper Question No: 41    ( M - 10 )

 

How instant messaging works? Write the steps involved in this process.

The Instant Messaging services available allow us to maintain a list of people (contacts) that we interact with regularly. We can send instant messages to any of the contacts in our list as long as that contact is online.

 Following steps are involved in IM working: 

1.      User commences the IM client.

2.      IM client finds the IM server & logs in.

3.      It launches communication info (IP address, etc) to the IM server.

4.      IM server finds user’s contacts & sends him/her the communication info.

5.      IM server also notifies the contacts that the user is online; sends his/her communication info to them.

6.      The user’s & the contact’s IM clients are ready to communicate directly (P2P).

7.      As new contact has come online, IM server informs them about the user being online & vice versa.

8.      Multiple, real-time chat are possible.

9.      When the user logs-off, his/her IM client informs the IM server.

10.  IM server wipes away the temporary file and informs the user’s contact’s about his/her ‘offline’ status.

 

CS101Past Paper Question No: 5 ( M - 10 )

 

What kind of operations takes place inside Microprocessors Building Blocks? Enlist them with brief description.

Bus Interface Unit: The bus interface unit is the part of the processor that interfaces with the rest of the PC. Its name comes from the fact that it deals with moving information over the processor data bus.

Instruction Decoder: The instruction decoder of a processor is a combinatorial circuit sometimes in the form of a read-only memory, sometimes in the form of an ordinary combinatorial circuit.

Arithmetic & Logic Unit (ALU): An arithmetic and logical unit (ALU) also known as “Integer Unit” is one of the core components of all central processing units. It is capable of calculating the results of a wide variety of common computations.

Floating-Point Unit (FPU): floating point unit (FPU) is a part of a CPU specially designed to carry out operations on floating point numbers.

Registers: register is a device for storing data. It is a small amount of very fast computer memory used to speed the execution of computer programs by providing quick access to commonly used values.

Control Unit: A control unit is the part of a CPU or other device that directs its operation. The outputs of the unit control the activity of the rest of the device.

Instruction Set:  This is the set of machine instructions that a microprocessor recognizes and can execute. It is the only language microprocessor knows.

CS101Past Paper Question No: 7 ( M - 8 )

 

a) Differentiate between SMTP and POP3 server. (3 marks)

SMTP (Simple Mail Transfer Protocol) is a protocol used to send and receive eMail messages over a TCP/IP network. Whereas POP3 (Post Office Protocol) is a protocol used for receiving eMail messages. A POP3 server maintains text files (one file per user accounts) containing all messages received by a user. eMail client interacts with the POP3 server for discovering and downloading new eMail messages.

b) How can you justify that a DBMS is better to use than Flat-file database? (5 marks)

A DBMS takes care of the storage, retrieval, and management of large data sets on a Database. It provides SW tools needed to organize & manipulate that data in a flexible manner.

Whereas in Flat-file database the text file format makes it hard to search for specific information or to create reports that include only certain fields from each record.

CS101Past Paper  Question No: 8 ( M - 8 )

 

What will be the output of this programme? Write comments where you find “//” symbol in the following code.

<html>

<head>

<script language="JavaScript">

function doSomething() { // 1

setTimeout('doSomething()',10000); // 2

}

</script>

</head>

<body onLoad="doSomething()"> // 3

document.write(“Virtual University of Pakistan”);

</body>

</html>

Revenue means amount of total sales    = 600,000+100,000 = 700,000

total sales
cash sales    600,000 
credit sales  100,000700,000

less  purchases (merchandise (250,000)
Gross profit                           450,000
less :  operating expenses 

    rental charges                    (70,000)

  other expenses                   (140,000)

Net profit                              240,000

cash in hand

opening                  500000
add ;

      loan               300,000
  sales                  600000
less ;

rent                    (70000)

other exp            (140000)

 purchase             (250000)
 repayment of loan(130000)
closing balance      810000

liabilities 

loan  taken       300000

less repaid loan (130000)

liability             170,000

Capital

capital introduced        1400,000

profit of the year         240,000

1640,000


prove
assets  = liabilities +capital 

900000+ 810,000  + 100,000  =  170,000 + 1640,000

1810,000 = 1810,000

0 Thoughts to “Mgt101 Assignment 1 2015 Solution Hub

Leave a comment

L'indirizzo email non verrà pubblicato. I campi obbligatori sono contrassegnati *