Home About Contact
vustudents.org
Connect with Facebook



CS201 CS201 Introduction to Programming Download/upload Video Lectures, Handouts, Helping Materials, Assignments Solution, Online Quizzes, GDB, Past Papers, Solved Papers and more….

Download/upload Video Lectures, Handouts, Helping Materials, Assignments Solution, Online Quizzes, GDB, Past Papers, Solved Papers and more….
Reply
  #1  
Old 11-18-2011, 04:57 PM
um abdullah's Avatar
Senior Member
 
Join Date: Nov 2011
Posts: 265
Default current midterm papers cs201

What will be the range of numbers generated by function rand () % 9?
(a) 0 to 9
(b) 1 to 9
(c) 0 to 8
(d) 1 to 8
-------------------------
If the file is not properly closed in the program, the program ____________.
(a) Terminate normally
(b) Indicate Runtime error
(c) Indicate Compile time error
(d) Crashe
---------------------------------
Which of the following is correct way to initialize a variable x of int type with value
10?
(a) int x ; x = 10 ;
(b) int x = 10 ;
(c) int x, x = 10;
(d) x = 10 ;
--------------------------------
Which of the following function(s) is/are included in stdlib.h header file?
(a) double atof(const char *nptr)
(b) int atoi(const char *nptr)
(c) char *strcpy ( char *s1, const char *s2)
(d) 1 and 2 only
-------------------------------
Which of the following is used with bit manipulation?
(a) Signed integer
(b) Un-signed integer
(c) Signed double
(d) Un-signed double
------------------------------------
The object _______________may be used both for file input and file output
(a) fstream,
(b) ifstream,
(c) ofstream,
(d) none of the given options.
-----------------------------------
C is widely known as development language of _______ operating system.
(a) Linux
(b) Windows
(c) Unix
(d) Mac OS
-----------------------------------
Operating system is a
(a) System software
(b) Application Software
(c) Driver
(d) Editor
-----------------------------------
What is diffrent between pointer and variable.
-----------------------------------

another paper
Write a C/C++ program which defines an array of 10 elements.

This program should ask a number from the user and search this number in the array if the number exists in the array, it should display the location of the number otherwise display the message The number is not in the given array.

- what are function pointers
- Diference between tellg() and tellp()
- difference between random access file and sequence access file
- why do u close a file>

long Questions
Code for the programme prints diognals elements of matrix n by n, n is any number.
WRITE note on char strng.
programme out put was asked.
types of pointers and their uses.
one dimentional and two dimentional aray par note.

1)Differentiate between Random access and Sequential access 5marks

2)Write a declaration statement for an array of 10 elements of type float. Include an initialization statement of the first four elements to 1.0, 2.0, 3.0 and 4.0. 5marks
Attached Files
File Type: pdf cs2012011.pdf (181.6 KB, 29 views)
Reply With Quote
  #2  
Old 11-27-2011, 03:42 PM
Sheathanaich's Avatar
Junior Member
 
Join Date: Nov 2011
Posts: 2
Default

Thank you, great share!
Reply With Quote
  #3  
Old 11-27-2011, 04:01 PM
sher Ali's Avatar
Junior Member
 
Join Date: Nov 2011
Posts: 2
Default

man this is very nice man thanck you so muchos muchas grasias
Reply With Quote
  #4  
Old 11-30-2011, 09:48 PM
mOazZam mUnir's Avatar
Junior Member
 
Join Date: Nov 2011
Posts: 5
Default

thanks bro,,
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +5. The time now is 02:14 PM.
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.

 

Gravatar as Default Avatar by 1e2.it