Vous êtes sur la page 1sur 9

1- Return type of a function that does not return any value must be ________.

Char
Void
Int
void
2- Null character is used to indicate the __________ of string.
Start
End
Begin
middle
3- _________ will be used for enclosing function statements into a block.
" "
()
4- What is the output of the following code, if the first case is true switch (var) { case
a: coutappleendl; case b: coutbananaendl; case m: coutmangoendl;
default: coutany fruitendl; } Select correct option:
Apple
apple anyfruit
apple banana mango anyfruit
none of above
5- When we access a multidimensional array, each array index is surrounded by
__________.
Single quotes ' '
Double quotes " "
Brackets []
Commas , ,
6- If an array has 50 elements, what is allowable range of subscripts?
0 49
1 49
0 50
1 50
7- What will be the size of the array declared as int array[1000];
999
1000
1001
1002
8- All elements of an array must be of_________ data type(s).
char and int
Same
Different
9- If we pass more than one arguments to a function then they are separated by
___________.
Comma ,
Colon :
semicolon
10- To manipulate n-dimensional array ________ nested loops are required.
n-2
n-1
n+1
n

Permalink Reply by Fairy on May 15, 2014 at 10:36pm
CS201-quiz_1. Solved with reference Date 15.5.14. by Masoom Fairy (All in One
file)
Attachments:
CS201-quiz_1. Solved with reference Date 15.5.14. by Masoom Fairy.pdf, 564 KB

Permalink Reply by M.Tariq Malik on May 15, 2014 at 10:57pm
Fairy gud keep it up & thanks for sharing

Permalink Reply by Ali khalid on May 16, 2014 at 12:16am
file open nahi ho rahi.

Permalink Reply by M.Tariq Malik on May 16, 2014 at 6:27pm
Ali khalid
Files are ok
Download PDF Files without IDM.
Internet download manager ko uninstall karo
then downlaod kro, IDM files ko damage kar daita ha

Or

PDf files IDM (Internet Download Manger) k sath download kerty waqt ALT Key
Use krain means Alt push kye rkhyn jub tak fil download na ho jae to PDF files
sahi open hon gi

Or Check these links
Problem in downloading .pdf files or Past Papers Solved

PDF File Downloading Solution from Ning

Or
Download files without Uninstall IDM

Permalink Reply by M.Tariq Malik on May 16, 2014 at 6:26pm
CS201 Introduction to Programming Quiz # 1
Posted by Rooman Hayat on May 15, 2014 at 6:35pm in CS201 Introduction to
Programming
Back to CS201 Introduction to Programming Discussions
Q1-In C-language the string AZMAT is equal to
option
Azmat
azmat
AZMAT *
NONE
Q2- For breaking complex problems into smaller pieces we use
IF ELSE
FUNCTIONS *
Breaks
Q3- Default mechanism of calling a function by passing it array is call by ________ and
in case of passing variable is call by ________.
Reference, reference
Reference, value
Value, reference *
value, value
Q4-What will be the size of the following character array? char name[] = Adeel;
5
6
4 *
7
Q5- A functions prototype is written __________the function call.
Before *
After
With
Q6- What is the correct syntax to declare an array of 15 elements of type float?
flost array[15]
float[15] array
flost [15]array
float aray[14] *
Q7- The ASCHI code of null character is___________
000 *
010
111
110
Q8- In C/C++; by default arguments are passed by _______ to a function.
Reference
Value *
Type
Data
Q9- The data type before a function name represents its,
return type *
function data
function arguments
functioon name
Q10- What will be the size of the array declared as int array[1000];
999*
1000
1001
1002


Read more: CS201 Introduction to Programming Quiz # 1 - Virtual University of
... http://vustudents.ning.com/group/cs201introductiontoprogramming/for...
Read more at http://vustudents.ning.com/group/cs201introductiontoprogramming/for...

Permalink Reply by M.Tariq Malik on May 16, 2014 at 6:27pm
Quiz of CS201
1. For breaking complex problems into smaller pieces we use _______.
2. In C/C++, by default arguments are passed by _______ to a function.
3. In C-language the string AZMAT is equal to______________
4. __________ of a variable means the locations within a program from where it can be
accessed.
5. If an array has 50 elements, what is allowable range of subscripts?
6. Null character is used to indicate the __________ of string.
7. We can access a global variable
8. We can define a matrix as__________ array.
9. Switch support_______________ data
10. What will be the size of following array? int arr[29];

Permalink Reply by M.Tariq Malik on May 16, 2014 at 6:28pm
Today's CS 201 Quiz
Q.1 char name [] = Hello World ; In the above statement, a memory of _________
characters will be allocated
13
11
12
Q.2 A function is a block of statements that can be defined once and used ________ in
the program.
one time
2 time
three time
as many times as user wants
Q.3 What will be the size of following array? int arr[29]
0
30
29
28
Q.4 Which of the following function call is call by reference for the following function
prototype? int add (int *)
add(&x);
add(int x);
add(x);
add(*x);
Q.5 if
statement is used to terminate the processing of a particular case and exit from switch
structure.
if
goto
break
continue
break i think
Q.6 will be used for enclosing function statements into a block.
""
()
[]
{}
Q.7 Default mechanism of calling a function by passing it array is call by ________ and
in case of passing variable is call by ________
Reference, Reference
Reference, value
Value, Reference
Value, Value
Q. 8 What is the output of the following code, if the first case is true switch (var) { case
a: coutappleendl; case b: coutbananaendl; case m: coutmangoendl; default:
coutany fruitendl; }

apple anyfruit
apple banana mango*
none of above
apple only?
Q. 9 Null character is represented by _________ in C++.
/0
\0
\n

Permalink Reply by M.Tariq Malik on May 16, 2014 at 6:28pm

Vous aimerez peut-être aussi