php hit counter

Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 32,645
» Latest member: admin
» Forum threads: 27,134
» Forum posts: 38,063

Full Statistics

Online Users
There are currently 2792 online users.
» 0 Member(s) | 2788 Guest(s)
Applebot, Bing, Facebook, Google

Latest Threads
Islamiat Smart Syllabus C...
Forum: rawalpindi board 9th class
Last Post: admin
8 hours ago
» Replies: 0
» Views: 4
English Smart Syllabus Cl...
Forum: rawalpindi board 9th class
Last Post: admin
8 hours ago
» Replies: 0
» Views: 4
Urdu Smart Syllabus Class...
Forum: rawalpindi board 9th class
Last Post: admin
8 hours ago
» Replies: 0
» Views: 4
Biology Smart Syllabus Cl...
Forum: rawalpindi board 9th class
Last Post: admin
8 hours ago
» Replies: 0
» Views: 4
Mathematics Smart Syllabu...
Forum: rawalpindi board 9th class
Last Post: admin
8 hours ago
» Replies: 0
» Views: 5
Chemistry Smart Syllabus ...
Forum: rawalpindi board 9th class
Last Post: admin
8 hours ago
» Replies: 0
» Views: 5
Physics Smart Syllabus Cl...
Forum: rawalpindi board 9th class
Last Post: admin
8 hours ago
» Replies: 0
» Views: 6
Smart Syllabus Class 9 Pu...
Forum: rawalpindi board 9th class
Last Post: admin
9 hours ago
» Replies: 0
» Views: 9
Currency Rates and the St...
Forum: Currency and Stock Exchange
Last Post: admin
Yesterday, 12:30 PM
» Replies: 0
» Views: 7
How to Get Your Study Que...
Forum: Get Solution In 24 Hour
Last Post: admin
Yesterday, 12:30 PM
» Replies: 0
» Views: 6

 
  CS201- Introduction to Programming
Posted by: Awais - 05-02-2010, 04:59 AM - Forum: MCQ's & Quiz Discussion - Replies (1)

FINALTERM EXAMINATION

Fall 2009

CS201- Introduction to Programming


Question No: 1 ( Marks: 1 ) - Please choose one


In C/C++ if we define an array of size eight (8) i.e. int Arr [8]; then the last element of this array will be stored at,

► Arr[0]

► Arr[8]

► Arr[7]

► Arr[-1]

Question No: 2 ( Marks: 1 ) - Please choose one

When an array is passed to a function then default way of passing this array is,

► By data

► By reference

► By value

► By data type


Question No: 3 ( Marks: 1 ) - Please choose one


Array is a data structure which store

► Memory addresses

► Variables

► Data Type

► Data


Question No: 4 ( Marks: 1 ) - Please choose one


We can also create an array of user define data type.


► True

► False

Question No: 5 ( Marks: 1 ) - Please choose one


When we define an array of objects then,


► Destructor will call once for whole array


► Destructor will call for each object of the array


► Destructor will never call


► Depends on the size of array


Question No: 6 ( Marks: 1 ) - Please choose one


What is the sequence of event(s) when allocating memory using new operator?

► Only block of memory is allocated for objects


► Only constructor is called for objects


► Memory is allocated first before calling constructor


► Constructor is called first before allocating memory


Question No: 7 ( Marks: 1 ) - Please choose one


We can delete an array of objects without specifying [] brackets if a class is not doing dynamic memory allocation internally.


► True

► False

Question No: 8 ( Marks: 1 ) - Please choose one


The second parameter of operator functions for << and >> are objects of the class for which we are overloading these operators.



► True

► False

Question No: 9 ( Marks: 1 ) - Please choose one

Which of the following is correct way to initialize a variable x of int type with value 10?


► int x ; x = 10 ;

► int x = 10 ;

► int x, x = 10;

► x = 10 ;

Question No: 10 ( Marks: 1 ) - Please choose one

Default mechanism of function calling in case of array is _____ and in case of variable is ___.

► Call by value, call by reference


► Call by referene, call by reference


► Call by reference, call by value


► Call by value, call by value

Question No: 11 ( Marks: 1 ) - Please choose one

What does STL stand for?



► Source template library


► Standard template library


► Stream template library


► Standard temporary library

Question No: 12 ( Marks: 1 ) - Please choose one

Skill(s) that is/are needed by programmers _______________________.

► Paying attention to detail

► Think about the reusability

► Think about user interface

► All of the given options

Question No: 13 ( Marks: 1 ) - Please choose one

For which array, the size of the array should be one more than the number of elements in an array?


► int

► double

► float

► char

Question No: 14 ( Marks: 1 ) - Please choose one
new and delete are _____ whereas malloc and free are _____.

► Functions, operators

► Classes, operators

► Operators, functions

►perators, classes

Question No: 15 ( Marks: 1 ) - Please choose one

Friend functions are _____ of a class.

► Member functions

► Public member functions

► Private member functions

► Non-member functions

Question No: 16 ( Marks: 1 ) - Please choose one
he prototype of friend functions must be written ____ the class and its definition must be written ____

► inside, inside the class

► inside, outside the class

► outside, inside the class

► outside, outside the class

Question No: 17 ( Marks: 1 ) - Please choose one
If overloaded plus operator is implemented as non-member function then which of the following statement will be true for the statement given below? obj3 = obj1 + obj2 ;
► obj2 will be passed as an argument to + operator whereas obj2 will drive the + operator

► obj1 will drive the + operator whereas obj2 will be passed as an argument to + operator

► Both objects (obj1, obj2) will be passed as arguments to the + operator

► Any of the objects (obj1, obj2) can drive the + operator
Question No: 18 ( Marks: 1 ) - Please choose one
Which one of the following is the declaration of overloaded pre-increment operator implemented as member function?
► Class-name operator +() ;

► Class-name operator +(int) ;

► Class-name operator ++() ;

► Class-name operator ++(int) ;

Question No: 19 ( Marks: 1 ) - Please choose one
For cin, the source is normally a ________ and destination can be ______.

► File, native data type

► Disk, user-define type

► Keyboard, variable

► File, user-define type

Question No: 20 ( Marks: 1 ) - Please choose one
We can also do conditional compilation with preprocessor directives.

► True

► False
Question No: 21 ( Marks: 1 ) - Please choose one
The programs, in which we allocate static memory, run essentially on ________

► Heap

► System Cache

► None of the given options

► Stack

Question No: 22 ( Marks: 1 ) - Please choose one
The default value of a parameter can be provided inside the ________________

► function prototype

► function definition

► both function prototype or function definition

► none of the given options.
Question No: 23 ( Marks: 1 ) - Please choose one
While calling function, the arguments are assigned to the parameters from _____________.

► left to right.
► right to left

► no specific order is followed

► none of the given options.

Question No: 24 ( Marks: 1 ) - Please choose one
When an operator function is defined as member function for a binary Plus (+) operator then the number of argument it take is/are.
► Zero
► One
► Two
► N arguments
Question No: 25 ( Marks: 1 ) - Please choose one
With user-defined data type variables (Objects), self assignment can produce __________.
► Syntax error
► Logical error
► Link error
► Non of the given options
Question No: 26 ( Marks: 1 ) - Please choose one
Assignment operator is used to initialize a newly declared object from existing object.

► True

► False
Question No: 27 ( Marks: 1 ) - Please choose one
When an object of a class is defined inside an other class then,
► Constructor of enclosing class will be called first
► Cnstructor of inner object will be called first
► Constructor and Destructor will be called simultaneously
► None of the given options
Question No: 28 ( Marks: 1 ) - Please choose one
In the member initializer list, the data members are initialized,
► From left to right
► From right to left
► In the order in which they are defined within class
► None of the given options
Question No: 29 ( Marks: 1 ) - Please choose one
new operator allocates memory from free store and return _____________.
► A pointer

► A reference
► An integer
► A float
Question No: 30 ( Marks: 1 ) - Please choose one


"new" and "delete" keywords are _____________ in C++ language.


► Built-in- Function


► Operators


► Memory Allocation Function


► None of the given options






Question No: 31 ( Marks: 1 )


What is a constructor in class?

Ans:
Class constructor, is the method specific to a type as a whole that run after the type is loaded and before any of the type's members are accessed. Class constructors are used for static field initialization. Only one class constructor per type is permitted, and it cannot use the vararg (variable argument) calling convention. Normally, class constructors are never called from the IL code. If a type has a class constructor, this constructor is executed automatically after the type is loaded. However, a class constructor, like any other static method, can be called explicitly. As a result of such a call, the global fields of the type are reset to their initial values. Calling class constructor explicitly does not lead to type reloading.


Question No: 32 ( Marks: 1 )


What are the two types of conversion for user-defined data types?



Question No: 33 ( Marks: 2 )


Is there a way to increase the size of already allocated memory chunk ? Can the same chunk be increased or not?

Ans:




Question No: 34 ( Marks: 2 )


Give the general syntax of class template.


Question No: 35 ( Marks: 3 )


What is the difference between structure and class?


Question No: 36 ( Marks: 3 )


How many arguments does binary member operator function and binary non-member operator function take?

Question No: 37 ( Marks: 3 )


Find the error in the given code
for ( int i=0; i<numRows; i++)
{
for(int j=0; j<numCols; j++)
{
elements[i , j] = m.elements[j];
}
}




Question No: 38 ( Marks: 5 )


Write the C++ syntax for making a class friend of other class.



Question No: 39 ( Marks: 5 )


What is a template function? Give the general syntax of writing a template function.


Question No: 40 ( Marks: 10 )

[JUSTIFY]Write a program which contains a class student. The class should contain two char pointer variables Name, and department. The class should further contain constructors, overload the stream insertion operator (<<) for this class.


In main function create two objects and display these objects.

Print this item

  Software Engneering-CS504
Posted by: Awais - 05-02-2010, 04:58 AM - Forum: MCQ's & Quiz Discussion - Replies (1)

Total Qs=41

two long of 10-marks:
1- Cyclomatic complexity with example
2- Inspection chk list? write 7-inspections in tabulated form.

5-marks:
white box testing coverage methods

Two Qs of 3-marks:
what is white box testing?
Idea behind N-Tier?

1-marks:
How to write function names give answer with example
Describe where these terms are used:
set/get

discuss about defect removel efficiency ? 5 numbers
explain verifiation and validation and define defect and software and their relation?10 number
classes and interfae and relation between them?? 5numbers
define with at least one example the following? 10 numbers

1.find
2.compute
3.set and get
4.intilization
5.is prefix

why we should avoid to use do while loop? 3 numbers
define unit testing? 1 number

Print this item

  Mth 101 Spring 2010
Posted by: viki - 05-02-2010, 04:57 AM - Forum: Assignments & Solutions - No Replies

see the attachment



Attached Files
.doc   mth101solvedassi&#10.doc (Size: 55.5 KB / Downloads: 149)
Print this item

  ACC501 - Business Finance
Posted by: Awais - 05-02-2010, 04:57 AM - Forum: MCQ's & Quiz Discussion - No Replies

What is WACC? (3 Marks)

What re the primary shortcoming of the Payback Period (3 Marks)

Difference between Temporary Currents assets and permanent Current assets
(5 Marks)

One is about market value and book value (5 marks)

In one find the NPV of given data which I don’t remember (5 marks)


10 marks

(i) Calculate the Payback Period for each project.
(ii) Calculate the Net Present Value (NPV) of each project.
3
4



10 Marks Question

Book Example

For example, the terms of 2/10, net 30 may be quoted for a certain customer.
– This means that the customer has 30 days from invoice date to pay the full
amount.
– If payment is made within 10 days, a 2% discount can be taken
• A buyer places an order for $1,000 under the terms 2/10, net 60. He has the option of
– paying $1,000 x (1 - .02) = $980 in 10 days, or
– paying the full $1,000 in 60 days.
• In general, the credit terms are interpreted as:
(take this discount off the invoice price)/(if you pay in this many days ), (else pay the
full amount in this many days)

Print this item

  Past Papers and pattern {FINAL EXAM Feb. 2010}
Posted by: Awais - 05-02-2010, 04:56 AM - Forum: MCQ's & Quiz Discussion - Replies (1)

ACC311- Fundamentals of Auditing

FINALTERM EXAMINATION
Spring 2009
ACC311- Fundamentals of Auditing (Session - 1)
Marks: 81
Question No: 1 ( Marks: 1 ) - Please choose one
Which one of the following is an objective of the internal audit?
To report on financial statements
To check accounting system and internal control are operating efficiently
To determine the accuracy of financial statement values and disclosures
To establish a control system in the company
Question No: 2 ( Marks: 1 ) - Please choose one
Which one of the following statements is NOT correct in respect of the internal auditor?
The scope of audit performed by internal auditors is primarily in respect of financial
report audits
An internal auditor does not require a license to practice
Internal auditors are usually employed by companies and government units
Primary responsibility of the internal auditor is to the board of directors
Question No: 3 ( Marks: 1 ) - Please choose one
After how many days the Securities and Exchange Commission
may appoint the auditors, if the
Directors of a company could not appoint the auditors to fill casual vacancy? (Companies Ordinance,
1984)

30 days
60 days
80 days
120 days
Question No: 4 ( Marks: 1 ) - Please choose one
Suppose that during audit of a company, an auditor accepted the schedule of bad debts furnished
by the client, though it was apparent that debts were not recoverable. The auditor shall be held
liable for which one of the following liabilities?
Liability for negligence
Liability for misfeasance
Criminal liability
Personal liability
Question No: 5 ( Marks: 1 ) - Please choose one
The books of accounts of a company should be kept at which one of the following offices?
(Companies Ordinance, 1984)
Registered office of the company
Accounts office of the company
Record office of the company

Registrar office
Question No: 6 ( Marks: 1 ) - Please choose one
Which of the following is one of the most fundamental and effective internal controls?
Increased use of computers for recording accounting transactions
Increased reliance on internal auditors to monitor accounting systems
Segregation of incompatible duties across several people
Having internal auditors report only to the Board of Directors
Question No: 7 ( Marks: 1 ) - Please choose one
Which of the following is NOT a major component of an internal control system?
Risk assessment
Staffing
Control procedures/activities
Information and communication system
Question No: 8 ( Marks: 1 ) - Please choose one
An audit firm audited a Leather Manufacturing company and presented its report addressed to the
management. They found significant material misstatements in the company s internal controls
system. They strongly recommended that there should be sufficient controls in existence to ensure

management can effectively control the business operations. In your opinion, auditors are
emphasizing on which one of the following categories of SOAP MAPS?
Authorization
Management and Monitoring
Arithmetic and Accounting
Segregation of duties
Question No: 9 ( Marks: 1 ) - Please choose one
Which of the following statements best describes the purpose of an internal control questionnaire
(ICQ)?
An internal control questionnaire is a series of questions regarding accounting and control
policies and procedures that the auditor considers necessary to prevent all misstatements in the
financial report
An internal control questionnaire is a series of questions regarding accounting and control
policies and procedures that the auditor considers necessary to prevent material misstatements in
the financial report
An internal control questionnaire is a series of questions regarding accounting and control
policies and procedures that the auditor considers necessary to detect material misstatements in
the financial report
An internal control questionnaire is a series of questions prepared by the entity about the
entity's accounting and control policies and procedures for which the entity seeks guidance on
from the auditor in order to detect material misstatements in the financial report
Question No: 10 ( Marks: 1 ) - Please choose one
A Beverages company is being audited by an audit firm. Audit procedures are being undertaken
in all of its departments. During this, the audit team has to spend more time on physical

Print this item

  CS101 Short Notes Lecture
Posted by: Awais - 05-02-2010, 04:53 AM - Forum: Assignments & Solutions - No Replies

Dear students....
CS101 Short Notes Lecture 23-45.....Download Attachment....



Attached Files
.doc   computer_23-to-45&#.doc (Size: 92 KB / Downloads: 513)
Print this item

  Solved Paper
Posted by: Awais - 05-02-2010, 04:53 AM - Forum: Assignments & Solutions - No Replies

download the attachment files



Attached Files
.doc   CS101iIntroductio&.doc (Size: 85 KB / Downloads: 161)
.doc   CS101_Introductio&#.doc (Size: 93 KB / Downloads: 118)
Print this item

  Cs 101
Posted by: Awais - 05-02-2010, 04:47 AM - Forum: Assignments & Solutions - No Replies

CS 101 Introduction to Computing
Assignment # 01

Deadline

Your assignment must be uploaded / submitted before or on 29-04-2010.

Upload Instructions

Please view the assignment submission process document provided to you by the Virtual University to upload the assignment.

Rules for Marking

Please note that your assignment will not be graded if:



· It is submitted after due date

· The file you uploaded does not open

· The file you uploaded is copied from some one else

· It is in some format other than .doc

· Assignment submitted through email

Objective

The assignment has been designed to enable you:
Understanding of input/ output devices.
To know about the truth table.



Question No. 1
Ali is a manager in a multi-national organization. As part of his job, he needs to interact and provide updates of his work to the head office on regular basis, which input/output devices can he use to complete his daily tasks? (Marks 2)


Question No. 2

How WebPages are different from a website? (Marks 2)
Note: List down two most important differences in this regard.



Question No. 3

Prove right hand side equal to left hand site by using truth table
NOTE: Fill the given table and make sure the sequence of input remains same as it is given in the table below.

a. A B = AB’ + A’B (Marks 3)
b. BC’ = ABC’ + A’BC’ (Marks 3)

Print this item

  Solution of CS101
Posted by: Awais - 05-02-2010, 04:46 AM - Forum: Assignments & Solutions - No Replies

Question No. 3
Prove right hand side equal to left hand site by using truth table
NOTE: Fill the given table and make sure the sequence of input remains same as it is given in the table below.
a. A B = AB’ + A’B (Marks 3)
A B A B
AB’ A’B AB’ + A’B
0 0
0 1
1 0
1 1
b. BC’ = ABC’ + A’BC’ (Marks 3)
A B C BC’ ABC’ A’BC’ ABC’+A’BC’
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1

Print this item

  CS101 - Introduction to Computing
Posted by: Awais - 05-02-2010, 04:45 AM - Forum: Assignments & Solutions - No Replies

solved mcqs

Print this item