www.vustudents.ning.com

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

# Quiz #2 of Cs_201, 21st May 2013

See the attached file for my today's quiz....! But im not sure about my answers!

Views: 938

Attachments:

### Replies to This Discussion

i answered it as 'small units'

My Quiz

Attachments:

Ali Raza Marchal BSCS[Hons] 2nd thanks for sharing ur quiz

Attention Students: You don’t need to go any other site for this assignment/GDB/Online Quiz solution, Because All discussed data of our members in this discussion are going from here to other sites. You can judge this at other sites yourself. So don’t waste your precious time with different links.

Ali Raza Marchal kia ye sare ans correct hain jo aap ne choose kie hain.

Quiz # 2

CS201_Introduction to Programming

Cs_201Quiz2

Attachments:

_______________are conventional names of the command line parameters of the ‘main()’ function.
Select correct option:

1. ‘argb’ and ‘argv’
2. ‘argc’ and ‘argv’
3. argc’ and ‘argu’
4. None of the given

In_________, we try to have a precise problem statement
Select correct option:

1. Analysis
2. Design
3. Coding
4. None of the given

Pointers are a special type of __________in which a memory address is stored
Select correct option:

1. variables
2. Location
3. Characters
4. None of the given

At the design phase, we try to break up the problem into___________
Select correct option:

1. functional units
2. non-functional units
3. small units
4. None of the given

char name [] = “Hello World” ; In the above statement, a memory of _________ characters will be allocated
Select correct option:

1. 13
2. 11
3. 12
4. 10

Pointers work by pointing to a particular___________
Select correct option:

1. Value
2. variable
3. data type(doubtful)
4. None of the given

___________ Returns true if c is a digit and false otherwise.
Select correct option:

1. int isalpha( int c )
2. int isalnum( int c )
3. int isxdigit( int c )
4. int isdigit( int c )

The ASCHI code of null character is___________
Select correct option:

1. 000
2. 010
3. 111
4. 110

The increment of a pointer depends on its___________.
Select correct option:

1. variable
2. value
3. data type
4. None of the given

At the___________, we try to break up the problem into functional units
Select correct option:

1. analysis phase
2. design phase
3. Implementation phase
4. None of the given

To get the value stored at a memory address, we use the________________
Select correct option:

1. referencing operator
2. dereferencing operator
3. simple operator
4. None of the given

suppose we have int y[10]; To access the 4th element of the array we write_________
Select correct option:

1. y[4];
2. y[3];
3. y[2];
4. none of given

A character is stored in the memory in _________
Select correct option:

1. byte
2. integer
3. string
4. None of the given
The statement cout yptr will show the __________the yptr points to.
Value
Variabvle
None of given

char **argv can be read as__________________.
Pointer to Pimter
Pointer to Char
Pointer to Pointer to Char  (page 177)
None of given
_______________are conventional names of the command line parameters of the ‘main()’ function.
‘argb’ and ‘argv’
‘argc’ and ‘argv’
‘argc’ and ‘argu’
None of Given
___________ Returns true if c is a digit and false otherwise.
int isalpha( int c )
int isalnum( int c )
int isxdigit( int c )
int isdigit( int c )

In the case of pointer to pointer or _______________, the first pointer contains the address of the second pointer, which contains the address of the variable, which contains the desired value.
double dereference (page 175)
Single dereference
dereference
None of the given
_______________________ contains functions for manipulations of character data.
ctype.h
iostream.h
string.h
None of the given

dereferencing operator is represented by _______
*
+
-
None of the given

In_________, we try to have a precise problem statement
Analysis
Design
Coding
None of the given

Sariya thanks for info

Mu quizz (Today) .

Q1. Pointers stores the ------------------

Q2.What will be the Size of char array char name[] = "adeel"

Ans.  4

Q. char name [] = “Hello World” ; In the above statement, a memory of _________ characters will be allocated
Select correct option:

1. 13
2. 11
3. 12  Ans
4. 10

Q. The ASCHI code of null character is___________
Select correct option:

1. 000
2. 010
3. 111
4. 110

Q. suppose we have int y[10]; To access the 4th element of the array we write_________
Select correct option:

1. y[4];
2. y[3]; Ans
3. y[2];

none of given

Q3. In the case of pointer to pointer or _______________, the first pointer contains the address of the second pointer, which contains the address of the variable, which contains the desired value.
double dereference (page 175)
Single dereference
dereference
None of the given
Q4.In_________, we try to have a precise problem statement
Analysis
Design
Coding
None of the given

Pari Gul thanks for sharing

Attention Students: You don’t need to go any other site for this assignment/GDB/Online Quiz solution, Because All discussed data of our members in this discussion are going from here to other sites. You can judge this at other sites yourself. So don’t waste your precious time with different links.

1

2

3

4

5

## VIP Member Badge & Others

------------------------------------

## Latest Activity

1 hour ago
Ishrat Shaheen joined + M.Tariq Malik's group

### CS607 Artificial Intelligence

2 hours ago
MUHAMMAD USMAN added a discussion to the group CS101 Introduction to Computing

5 hours ago
Pizza updated their profile
14 hours ago
naveed asmat mirza and Zain Arshad joined + M.Tariq Malik's group

### CS304 Object Oriented Programming

15 hours ago
15 hours ago
Asad waqas joined + M.Tariq Malik's group

15 hours ago
16 hours ago