Latest Activity In Study Groups

Join Your Study Groups

VU Past Papers, MCQs and More

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.


CS201 ALL Current Mid Term Papers

Fall 2015 at One Place

from 19 Dec 2015 to 31 Dec 2015  

 

For Important Helping Material related to this subject (Solved MCQs, Short Notes, Solved past Papers, E-Books, FAQ,Short Questions Answers & more). You must view all the featured Discussion in this subject group.

For how you can view all the Featured discussions click on the Back to Subject Name Discussions link below the title of this Discussion & then under featured Discussion corner click on the view all link.

Or visit this link 

Click Here For Detail.

 

Solutions for not opening files..
 

PDF Files downloading Solution from ning..

 
Problem in downloading PDF files..

    

Thanks and Regards!

Views: 2404

Replies to This Discussion

CS201  Paper 4:00pm 19 December 2015
80% Past papers

------------------------------------------------------------------------------
C++ is a middle-level programming language developed by Bjarne Stroustrup
starting in 1979 at Bell Labs. C++ runs on a variety of platforms, such as
Windows, Mac OS, and the various versions of UNIX.
------------------------------------------------------------------------- 
Write down the output of following code segment.
int num[10] = {2, 3, 5, 8, 9, 10, 12, 15, 19, 20} ;
int *ptr = num ;
for (int i=0; i<10; i+=2){
cout *(ptr+i) “, ”;
} (05

What will be the output of given program code?
main()
{
char province[] = "Sindh";
char s[80];
strcpy(s, "Hyderabad");
strcat(s, " and ");
-----------------------------------------------------------------------------------

In C/C++, ___________ are the doors through which data can enter and come out of a
program. 
streams 
What will be the correct syntax for initialization of pointer ptr of type int with variable x?
int ptr = &x ;
int ptr = x ;
int *ptr = &x ;
int ptr* = &x ;
Write down the output of the following code segment?
int x[10] = {0,1, 2, 3, 4, 5, 6, 7, 8, 9};
int *xptr;
xptr = &x[5];
cout *(xptr++) + 1;
The first character of a variable name must be an alphabet or ________________.
Underscore
Digit
Special character
Comma
In ________, the first pointer stores the address of the some other pointer, which contains the
address of any variable.
single dereference
double dereference
single reference
double reference
Initialization of variable at the time of definition is --------------practice.
Bad Programming
Necessary
Good Programming
Not a necessary
Which looping process checks the test condition at the end of the loop?
For
While
do-while
no looping process checks the test condition at the end
Which of the following array is the most suitable for storing a matrix structure?
Single-dimensional array
Two-dimensional array
Three-dimensional array
Four-dimensional array
Which of the following array is the most suitable for storing a matrix structure?
Single-dimensional array
Two-dimensional array
Three-dimensional array
Four-dimensional array

21/12/2015 mid term paper
Aj muje ye paper aya hay.
Q1:
Explane the meaning of given c++ statement
cons int *ptr=&x;
Q2:
Identify any logical of syntax error in statement below and explain the reson of the error
seekg(-10L,ios::beg);
Q3:
Explain the logic of given program code and also determine its output
#include <iostream.h>
#include <string.h>
main()
{
Char name[10]=”Khagan”;
Char msg[20]=”Welcome!”;
Cout ‹‹ strcat(msg,name,3);
Return 0;
}
Q4:
Consider the following program write the output:
main()
    {
    char string1[]=”introduction”;
    char string[]=”programming”;
cout ‹‹ “string 1 is”‹‹ string1‹‹endl;
cout ‹‹ “size of string 1 is”‹‹sizeof(string1)‹‹”bytes”‹‹endl;
cout ‹‹ “string 2 is”‹‹ string2‹‹endl;
cout ‹‹ “size of string 2 is”‹‹sizeof(string2)‹‹”bytes”‹‹endl;
}
Q5:
Write the output of the following program

int x=6;
int y;
x=x‹‹1;
y=y>>1;
cout ‹‹ “x=”‹‹x ‹‹ “/n”;
cout‹‹”y=”‹‹y;

Q6:
The statement int Name[2][2] defines a 2x2 array write the code which read data from keyboard for each element of array
-------------------------------------------------
Please prayers for me.
Muhammad Faisal.
Fsd@doctor.com
-------------------------------------------------
sath file attach hay agr koi symble web p show na hoto file download kr len.

Attachments:

current ccs201

RSS

© 2021   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service