We have been working very hard since 2009 to facilitate in your learning Read More. We can't keep up without your support. Donate Now.

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More

CS201-Introduction to Programming Quiz No.3 Solutions and Discussions Spring 2014 Due Date: 7th July 2014 to 8th July 2014

Quiz No. 3 Dated: Jul 01, 14

Dear Students,

Quiz No. 3 of CS201 will be started from Monday, July 7, 2014 and ends at Tuesday, July 8, 2014.  

Quiz No. 3 will cover 23-27 lectures.  There will be 10 questions in the quiz.


+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)


Views: 4999

Replies to This Discussion

Please all students related this subject Share your online Quizzes here to help each other.thanks

 

Please share the question and their answers of this quiz if anyone has done.
Thanks. 

Dear Students,

Quiz No. 3 of CS201 will be started from Monday, July 7, 2014 and ends at Tuesday, July 8, 2014.  
Quiz No. 3 will cover 23-27 lectures.  There will be 10 questions in the quiz.

Quiz # 03 | Attempt Date: July 08, 2014

01. ___________ are not available in C language

User defined functions
Built in functions
Library functions
Inline functions


02. Special name which is substituted in code by its definition and as a result we get an expanded code is called

Union
Directive
Macro
Array


03. Windows operating system may itself takes memory from ___________.

stack
heap
lists

04. The heap memory structure __________.

remains constant
remains constant
constantly changes in size
is just like stack

05. there is no ovethere is no overhead of function callsrhead of system calls

macros are more efficient
there is no overhead of program calls


06. C++ was developed by _____________.

Charles Babbage
Graham Bell
Bejarne Stroustrup
Von Nuemann

07. The default visibility for the data members of the class is


private
protected
public

08. The object code of our program is combined with the _______________

source program
machine code of the operating system
object code of the library functions
with header files

09. void calloc(50,sizeof(int)) will return

char pointer
a memory chunk of 50 integers from heap
a memory chunk of 50 integers from stack.
a memory chunk with zero pointer

answers:

1=inline functions 

2=macro

3=stack 

4=constantly changes in size

6=bejarne stroustrup

7=private

8= object code of the library functions

9= a memory chunk of 50 integers from heap

10. A class is a user defined data type it takes __________________________.

4 bytes in memory
2 bytes in memory
no space in memory unless we create an object from it.
No space in memory unless we create constructors

11. When a problem is broken into small pieces or modules and each small piece corresponds to a function this technique is called __________________ approach

op-down structured programming
down-top structured programming
object oriented programming
object oriented programming

12. What will be the output of the given code #include #include void display( int = 1, float = 2.3, char = '@' ); main() { display(); // All three arguments default display( 5 ); // Provide 1st argument display( 6, 7.8 ); // Provide 1st and 2nd display( 9, 10.11, '
); // Provide all three argument get


plus +
multiplication *
dot .]
Division /

13. The difference between malloc function and calloc function is that

the space is not initialized by the malloc function.
the space is not initialized by the calloc function
the space is not allocated by the calloc function

14. getche() is a _____________ function and defined in ___________ header file. Select correct option:


built-in function , conio.h
built-in function, stlib.h
built -in function, iostream.h

15. Constructor is itself a __________ of C++ and ___________.

class , can be overloaded
function , cannot be overloaded
function, can be overloaded
object, can not be initialized


16. symbolic constant PI can be defined as:

#define PI 3.14;
#define PI 3.14
#define PI=3.14
# include pi= 3.14

17. Unix operating system was written in ________ language

C++
Java
FORTRAN
C


18. Constructor is special type of function :

which has no return type'
which returns NULL pointer
which returns zero
which returns integer type data

19. A class is

a built in function
a user defined data type
Non of these

thanks for sharing kindly some one give anawer of the quize

11. Top-down structured programming
13. the space is not initialized by the malloc function.
14. built-in function , conio.h
15. function, can be overloaded
16. #define PI 3.14
18. which has no return type
19. a user defined data type

Quiz # 03 | Attempt Date: July 08, 2014

1. Windows operating system may itself takes memory from ___________.

stack
array
list
heap

2. Look at the program code and identify the error. 1 #include 2 #define PI 3.1415926; // Defining PI 3 main() { 4 int radius = 5; 5 cout "Area of circle with radius " radius " = " PI * radius * radius; }

It will be compiled successfully and will not generate error
It will be compiled and returns nothing
Error exists in line number 2. Semi colon is not allowed with define directive
The value of PI cannot be defined in the beginning

3. getche() is a _____________ function and defined in ___________ header file.

user-define function , conio.h
built-in function , conio.h
built-in function, stlib.h
built -in function, iostream.h

4. A class is a user defined data type it takes __________________________.

4 bytes in memory
2 bytes in memory
no space in memory unless we create an object from it.
No space in memory unless we create constructors

5. For console input and output we use ___________.

conio.h header file
stdlib.h header file
process.h header file
getch.h header file


6. The compiler use a name mangling technique to _______________________.

Generate a unique token that is assigned to each function
Generate unique functions
Compile the functions
Run the functions

7. A class is _____________

a built in function
a user defined data type
an array
a member function

8. Macros are categorized into _________ type(s).

one
four
two
none of the given


9. void calloc(50,sizeof(int)) will return

char pointer
a memory chunk of 50 integers from heap
a memory chunk of 50 integers from stack.
a memory chunk with zero pointer

10. What will be the output of the given code ? #include inline int max( int a, int b ) { if ( a > b ) return a; return b; } main() { int i, x, y; x = 23; y = 45; i = max( x++, y++ ); cout "x = " x " y = " y '\n'; }

x= 23 y= 45
x = 24 y = 46
x= 22 y= 46
x=23 y= 47

ans plz ahmed

4. no space in memory unless we create an object from it.

5. conio.h header file

6. Generate a unique token that is assigned to each function

8. two

10. x = 24 y = 46

Quiz # 03 | Attempt Date: July 08, 2014


1. An instance of a class is called ________________.

structure
data type
object
member function

2. With the use of dynamic allocation of memory, the system resources can be ________________.

wasted
use efectively


3. We cannot use ______________ pointer for storing and reading data from it.

NULL integer double zero
NULL, integer, double, zero,
NULL


4. The constructor contains _____________.

return type
no return type
objects
classes


5. The function overloading requires__________________.

no arguments,,,,
the argument list to be the same,,,,
the arguments of integer type only,,,,,,
the argument list to be different.

6. For casting, we normally declare a pointer of type _____________.

void
NULL


7. A class is a user defined data type it takes __________________________.

4 bytes in memory
2 bytes in memory
no space in memory unless we create an object from it.

8. If you create a header file of your own and you save it in the “Headerfiles” folder which is located on the current working directory then you must enclose your header file within _________

braces
quotation marks # sign
angle brackets

9. Macros are categorized into _________ type(s).


one
four
two
none of the given

10. Overloading means :

Using the same name to perform multiple tasks or different tasks depending on the situation.
Using the different name to perform multiple tasks or different tasks depending on the situation
Using the same name to perform multiple tasks or same tasks depending on the situation
Using the same name to perform difficult tasks or complex tasks and it does not depend on the situation


11. The data members of the class are initialized ______________.

within main program
outside the function
at runtime
at compile time

12. The function overloading requires_________________

no arguments
the argument list to be the same
the arguments of integer type only
the argument list to be different.

1. object
2. use efectively
3. NULL
4. no return type
5. the argument list to be different
6. void
8. quotation marks # sign
10. Using the same name to perform multiple tasks or different tasks depending on the situation.
11. at runtime

RSS

Looking For Something? Search Here

Latest Activity

memon replied to +M.Tariq Malik's discussion ECO403 Current Final Term Papers Spring 2020 & Solved MCQs, Short Notes, Solved Past Papers, Solved Online Quizzes, E-Books, FAQs, Short Questions Answers & More in the group ECO403 Macroeconomics
12 hours ago
memon replied to +M.Tariq Malik's discussion ECO403 Current Final Term Papers Spring 2020 & Solved MCQs, Short Notes, Solved Past Papers, Solved Online Quizzes, E-Books, FAQs, Short Questions Answers & More in the group ECO403 Macroeconomics
12 hours ago
memon replied to +M.Tariq Malik's discussion PSY101 Final Term Papers Spring 2020 & Past Solved Papers, MCQs for Exam Preparation in the group PSY101 Introduction to Psychology
12 hours ago
memon replied to +M.Tariq Malik's discussion ENG301 Current Final Term Papers Spring 2020 & Solved MCQs, Short Notes, Solved Past Papers, Solved Online Quizzes, E-Books, FAQs, Short Questions Answers & More in the group ENG301 Business Communication
12 hours ago
memon replied to +M.Tariq Malik's discussion ENG301 Current Final Term Papers Spring 2020 & Solved MCQs, Short Notes, Solved Past Papers, Solved Online Quizzes, E-Books, FAQs, Short Questions Answers & More in the group ENG301 Business Communication
12 hours ago
memon replied to +M.Tariq Malik's discussion ENG301 Current Final Term Papers Spring 2020 & Solved MCQs, Short Notes, Solved Past Papers, Solved Online Quizzes, E-Books, FAQs, Short Questions Answers & More in the group ENG301 Business Communication
12 hours ago
memon replied to +M.Tariq Malik's discussion ENG301 Current Final Term Papers Spring 2020 & Solved MCQs, Short Notes, Solved Past Papers, Solved Online Quizzes, E-Books, FAQs, Short Questions Answers & More in the group ENG301 Business Communication
12 hours ago
++ ! !!*ARhum* ! ! !++ and ASAM are now friends
13 hours ago

HELP SUPPORT

This is a member-supported website. Your contribution is greatly appreciated!

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

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

.