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.

CS504 Software Engneering - I Online quiz#4 solution and discussion due date 19-02-2015 to 20-02-2015

Views: 6163

Replies to This Discussion

Quiz Start Time: 03:56 PM
Time Left  
sec(s)
Question # 1 of 10 ( Start time: 03:56:29 PM ) Total Marks: 1
Global variables in C++ should always be referred to by using the
Select correct option:

 ::operator       (c)

: operator

Without an operator

None of the given


Charles Simonyi first discussed Hungarian Notation. He was of ------ .

Microsoft    (c)

IBM

Dell

Cisco

 

In case of header files, construction is to avoid ------ errors. The construction should appear in the top of the file (beforethe file header).
compilation
runtime
logical
all

Variables should be initialized where they are ------and they should be declared in the ------scope possible.
defined and medium
declared and medium
defined and smallest
declared and smallest..

Class variables should never be declared public. Public variables violate which of the following:
Information hiding
Encapsulation
Information hiding and Encapsulation..
none

Consider the following statement: int a,b=10; Which of the following is correct:
variable "a" is initialized to 10
Variable "b" is initialized to 10 

image: http://virtualinspire.com/images/smilies/thinking2.gif

:thinking
Both variables "a" and "b" are initialized to 10
variables can not be initialized this way

When a small set of functions (which use each other) is so overwhelmingly the bottleneck, there are two alternatives:

use a better algorithm OR re-write the code
debug the code OR place assertions in code
remove the functions OR add more functions
changed programming language OR compiler at least..

Exception handling provides:
Portability mechanism
Code Usability mechanism
Error Handling mechanism..
all

Code should not be
commented..
indented
cryptic
aligned

It ensures that a class only has one instance and provides a global point of access to it.
Singleton Pattern..
Observer Pattern
real
none

Names representing methods and functions should be----and written in mixed case starting with -----case.
Noun—lower
Verb----lower..
Noun ---upper

Goto statements violate the idea of
object oriented code
structured code...
control structure 
repetition structure

The order in which bytes of one word are stored is _________ dependent
hardware..
software
language
syntax
The number __________ is the most abused symbol in programs written in C or C++
1
0..
2
3


if there is any mistake then plz point out

No Description
Q:1

CS504 Quiz #4

Attachments:

Attachments:

Here goes my 3rd Quiz

By Juste

I have only saved the MCQ'S and my answers, didn't saved other options. Verify all answers yourself. Please share your quizzes as well.

The three basic principles that guide maintainability are: (a)clarity (b)enhancement (c)flexibility (d)simplicity
abc
*acd
cba
abd

Vertical partitioning is also known as…..
Balancing
Mutating
Parallelizing
*Factoring

str = 0; // str is string Which rewritten form of above line of code is more in line with the self-documentation philosophy than the code above.
*str = ‘\0’;

if a major rework is required to translate a program written for one environment to another, it means code is not or less _________
Secure
Bug Free
plateform dependent
*Portable

The C/C++ language has not specified whether ______ is arithmetic or logical.
*Right shift >>
Right shift
&&
II

Identify the TRUE statement:
Portability effects security
Size of data types vary from one machine to other
*Size of control structures vary from one machine to other
None of the given

Code should not be:
*commented
indented
cryptic
aligned

In the classical thin-client architecture, the entire processing is carried-out by -----------
*Single server
multiple servers
multiple servers
None of the given

Global variables in C++ should always be referred to by using the
* :: operator
: operator
Without an operator

None of the given

The C/C++ language does not define the alignment of items within
*structures
classes
unions
All of the given options

Just prepare this file.

Attachments:

RSS

Looking For Something? Search Below

VIP Member Badge & Others

How to Get This Badge at Your Profile DP

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

Management: Admins ::: Moderators

Other Awards Badges List Moderators Group

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

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