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

please share your current quiz...

Start date Jul 01, 2013 12:00 AM

End   date Jul 02, 2013 11:59 PM


+ 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: 5541

Replies to This Discussion

CS504 - Software Engineering - I Quiz No.4 Spring 2013


The number __________ is the most abused symbol in programs written in C or C++.

Ans = 0

Names representing methods and functions should be----and written in mixed case starting with -----case.

Ans=

STL Stnads for ------------------

Ans=Standard Template Library

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

Ans=Microsoft 

If a function changes the value of some other accessible data object along with returning its value after execution, is called 

Ans=

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.

Ans=Str = ‘\0;

Which of following is/are among ten things,which the basic template of GOF design pattern includes.

Ans= 

Problem

 Context

 Forces

All of the given

Today quiz CS 504

  • Comma is very dangerous because

Compiler does not recognize it

It creats linkage problem

Side effects

All of the above

  • C++ header files have extention----& source files have extention------

.h & .cpp

  • Names representing methods & functions should be---- & written in mixed case starting with ------

Verb & lower

  • Str=0; more inline with

Str=’\0’;

  • Code should not be

Commented

Cryptic

  • MVC stands for

Model view controller

  • Logical operators r evaluated from

Left to right

  • A self documenting code is that explains itself without need of comments & extraneous documentation, like

Flow charts

UML diagram

PFS diagram

All

  • ---- & ------- r important short circuiting logical operators a.AND, b. OR, c. NOT, d.NOR

A & b

 

 

ZaibUnnisa gud keep it up & 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.

CS504

( Quiz) 

Str = 0;// str is string Which rewritten from of above line of code is more in line with the

self-documentation philosophy than the code above.

Str = false;

Str = NULL;

Str = ‘\0; PG:169

Str = 0.0;

In the switch statement, cases should always end with a -------statment.

Switch

Go

Break 167

Stop

Bit fields are a convenient way to express many difficult operations. However, bit fields

suffer from one problem

Lack of Usability

Lack of Security

Lack of Performance

Lack of Portability 183

If(!(block < activeBlock)) is equvivalent to:

If ((block < activeBlock))

If ((block == activeBlock))

If ((block >= activeBlock))

None of the given

Bit fields allow the packing of data in a structure. Using Bit fields we can:

Read 9 bit integers

Avoid memory leakages

Avoid memory overflow PG:183

Avoid syntax errors

The order in which bytes of one word are stored is _________ dependent

Hardware

Software

Language

Syntax

In order to write a portable code which of the following guideline will be helpful:

Stick to the standards

Program in the mainstream

Size of data types

All of give options 179

Complex expressions:

Make the code easy to modify

Make the code difficult to modify

Make the code easy to understand

Does not effect understandability

x = 0; // x is floating pt Which rewritten form of above line of code is more in line with

the self-documentation philosophy than the code above.

x = false

x = NULL

x = 0.0;

x = ‘\0’

using proper paranthesis normally makes the code

easy to read

easy to understand

less ambiguous

All of the given options

The use of comments should be minimized by making the code self-documenting by

appropriate name choices and an explicit logical structure.

True

False

1) x = (a + 2 > 3)? a : a-1 ; 2) if((a + 2)> 3) x = a; else x = a - 1;

Statement (2) is more complex than (1)

Statement (2) is more complex than (1)

Both statements are very complex

None of the given options

80/20 rule states that:

you spend 80 percent of your time in 20 percent of the code 177

you spend 20 percent of your time in 80 percent of the code

We should try to optimized 80 percent or at least 20 percent of the code

None of the given options.

Be very careful when you use functions with side effects – functions that change the

values of the ________

Objects

Classes

Structures

Variables 176

Comma ( , ) is very dangerous because

Select correct option:

Compiler does not recognise this symbol

It creates linkage problem

It causes side effects

All of the given options (Not Sure)

The C/C++ language has not specified whether ____ is arithmetic or logical.

Select correct option:

Right shift >> 181

Right shift

&&

||

In order to make a code more portable, Instead of using vendor specific language

extensions, use _______ as much as possible

Select correct option:

STL 179

ANSI

ISO

CMMI

When a small set of functions (which use each other) is so overwhelmingly the

bottleneck, there are two alternatives:

Select correct option:

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

_______ cause major portability issues

Select correct option:

Loops (Not Sure)

Bugs in code

Sizes of data types

Conditional Structures

Some bit field members are stored: I) left to right II) right to left III) in circular array

Select correct option:

only (I) is true

Only (II) is true

Both (I) and (II) are true 183

All of the options (I, II and III) are true

using proper paranthesis normally makes the code

easy to read

easy to understand

less ambiguous

All of the given options

The use of comments should be minimized by making the code self-documenting by

appropriate name choices and an explicit logical structure.

True

False

A test case involves

Input/output specification plus a statement of the function under test

Steps to perform the function

Expected results that the software application produces

All of the given options

If an application fulfills its specifications but deviates from users expectations or their

desired behavior. This means, software is verified but not ------------

Select correct option:

Validated Pg:192

Corrected

Checked

Traced

The raising of the imaginary error flag is simply called raising or ________ an error

Select correct option:

Catching

Casting

Throwing PG:184

None of given options

In order to make a code more portable, Instead of using vendor specific language

extensions, use _______ as much as possible

Select correct option:

STL 179

ANSI

ISO

CMMI

struct packed_struct { unsigned int f1:1; } pack; Here in "packed_struct":

Select correct option:

value of f1 = 1

size of f1 = 1 bit

value of f1 should not exceede 1

None of given options

The idea behind exception handling is to raise some error flag every time ________

Select correct option:

The code compiles

The code links

Memory is allocated

Something goes wrong

A __________ is a variance from a desired product attribute.

Select correct option:

Exception

Error

Mistake

Defect PG: 192

The C/C++ language does not define the alignment of items within

Select correct option:

structures

classes

unions

All of the given options PG: 182

Consider the following statement: int a,b=10; Which of the following is correct:

Select correct option:

variable "a" is initialized to 10

Variable "b" is initialized to 10

Both variables "a" and "b" are initialized to 10

variables can not be initialized this way

Exception handling is a powerful technique that separates error-handling code from

______ code.

Select correct option:

Normal PG: 184

Faulty

Buggy

Complex

The complexity of a program may ______ if there are exceptional paths in it

Select correct option:

Decrease

Increase PG:185

Remain same

All of given options

When an error is thrown the overall system (on the lookout for this error flag) responds

by ______ the error.

Select correct option:

Ignoring

Casting

Catching

All of the given options (Not Sure)

Comments are not syntax checked

TRUE

FALSE

Modularity is a tool that can help us in increasing the size of individual functions, making

them less readable.

True PG:170

False

Verification and validation are the processes in which we check a product against its

_________ and the __________ of the users who will be using it

specifications, expectations PG:192

specifications , arguments

statements, arguments

The greatest advantage of exception handling is its ability to handle:

Asynchronous errors PG:184

Syntax errors

Memory errors

Control Structure errors

Str = 0;// str is string Which rewritten from of above line of code is more in line with the selfdocumentation

philosophy than the code above.

Str = false;

Str = NULL;

Str = ‘\0;

Str = 0.0;

Struct packed_struct { unsigned int f1:1;} pack; Here in “packed_struct”:

Value of f1 =1

Size of f1 = 1 bit

Value of f1 should not exceede 1 (Not Sure)

None of given options

In the switch statement, cases should always end with a -------statment.

Switch

Go

Break

Stop

Bit fields are a convenient way to express many difficult operations. However, bit fields suffer

from one problem

Lack of Usability

Lack of Security

Lack of Performance

Lack of Portability

If(!(block < activeBlock)) is equvivalent to:

If ((block < activeBlock))

If ((block == activeBlock))

If ((block >= activeBlock))

None of the given

Bit fields allow the packing of data in a structure. Using Bit fields we can:

Read 9 bit integers

Avoid memory leakages

Avoid memory overflow

Avoid syntax errors

The order in which bytes of one word are stored is _________ dependent

Hardware

Software

Language

Syntax

In order to write a portable code which of the following guideline will be helpful:

Stick to the standards

Program in the mainstream

Size of data types

All of give options

Complex expressions:

Make the code easy to modify

Make the code difficult to modify

Make the code easy to understand

Does not effect understandability

In the switch statement, cases should always end with a -------statment.

Switch

Go

Break

Stop

x = 0; // x is floating pt Which rewritten form of above line of code is more in line with the selfdocumentation

philosophy than the code above.

x = false

x = NULL

x = 0.0;

x = ‘\0’

using proper paranthesis normally makes the code

easy to read

easy to understand

less ambiguous

All of the given options

The use of comments should be minimized by making the code self-documenting by

appropriate name choices and an explicit logical structure.

True

False

Bit fields allow the packing of data in a structure. using Bit fields we can:

Read 9 bit integers

Avoid memory leakages

Avoid memory overflow

Avoid syntax errors

1) x = (a + 2 > 3)? a : a-1 ; 2) if((a + 2)> 3) x = a; else x = a - 1;

Statement (2) is more complex than (1)

Statement (2) is more complex than (1)

Both statements are very complex

None of the given options

80/20 rule states that:

you spend 80 percent of your time in 20 percent of the code

you spend 20 percent of your time in 80 percent of the code

We should try to optimized 80 percent or at least 20 percent of the code

None of the given options.

Be very careful when you use functions with side effects – functions that change the values of

the ________

Objects

Classes

Structures

Variables

Comma ( , ) is very dangerous because

Select correct option:

Compiler does not recognise this symbol

It creates linkage problem

It causes side effects

All of the given options (Not Sure)

The C/C++ language has not specified whether ____ is arithmetic or logical.

Select correct option:

Right shift >>

Right shift

&&

||

In order to make a code more portable, Instead of using vendor specific language extensions,

use _______ as much as possible

Select correct option:

STL

ANSI

ISO

CMMI

The order in which bytes of one word are stored is _________ dependent

Select correct option:

hardware

software

language

syntax

Be very careful when you use functions with side effects – functions that change the values of

the ________

Select correct option:

Objects

Classes

Structures

Variables

When a small set of functions (which use each other) is so overwhelmingly the bottleneck,

there are two alternatives:

Select correct option:

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

_______ cause major portability issues

Select correct option:

Loops (Not Sure)

Bugs in code

Sizes of data types

Conditional Structures

In the switch statement, cases should always end with a -------statment.

Select correct option:

Switch

Go

Break

Stop

Some bit field members are stored: I) left to right II) right to left III) in circular array

Select correct option:

only (I) is true

Only (II) is true

Both (I) and (II) are true

All of the options (I, II and III) are true

x = 0; // x is floating pt Which rewritten form of above line of code is more in line with the selfdocumentation

philosophy than the code above.

x = false

x = NULL

x = 0.0;

x = ‘\0’

Comma ( , ) is very dangerous because

Compiler does not recognise this symbol

It creates linkage problem

It causes side effects

All of the given options(Not sure)

using proper paranthesis normally makes the code

easy to read

easy to understand

less ambiguous

All of the given options

The use of comments should be minimized by making the code self-documenting by

appropriate name choices and an explicit logical structure.

True

False

Bit fields allow the packing of data in a structure. using Bit fields we can:

Read 9 bit integers

avoid memory leakages

avoid memory overflow

Avoid syntax errors

1) x = (a + 2 > 3)? a : a-1 ; 2) if((a + 2)> 3) x = a; else x = a - 1;

Statement (2) is more complex than (1)

Statement (2) is more complex than (1)

Both statements are very complex

None of the given options

80/20 rule states that:

you spend 80 percent of your time in 20 percent of the code

you spend 20 percent of your time in 80 percent of the code

We should try to optimized 80 percent or at least 20 percent of the code

None of the given options.

Be very careful when you use functions with side effects – functions that change the values of

the ________

Objects

Classes

Structures

Variables

A test case involves

Input/output specification plus a statement of the function under test

Steps to perform the function

Expected results that the software application produces

All of the given options

The C/C++ language has not specified whether ____ is arithmetic or logical.

Select correct option:

Right shift >>

Right shift

&&

||

If an application fulfills its specifications but deviates from users expectations or their desired

behavior. This means, software is verified but not ------------

Select correct option:

Validated

Corrected

Checked

Traced

The raising of the imaginary error flag is simply called raising or ________ an error

Select correct option:

Catching

Casting

Throwing

None of given options

In order to make a code more portable, Instead of using vendor specific language extensions,

use _______ as much as possible

Select correct option:

STL

ANSI

ISO

CMMI

struct packed_struct { unsigned int f1:1; } pack; Here in "packed_struct":

Select correct option:

value of f1 = 1

size of f1 = 1 bit

value of f1 should not exceede 1

None of given options

The idea behind exception handling is to raise some error flag every time ________

Select correct option:

The code compiles

The code links

Memory is allocated

Something goes wrong

Bit fields allow the packing of data in a structure. using Bit fields we can:

Select correct option:

Read 9 bit integers

avoid memory leakages

avoid memory overflow

Avoid syntax errors

The order in which bytes of one word are stored is _________ dependent

Select correct option:

hardware

software

language

syntax

A __________ is a variance from a desired product attribute.

Select correct option:

Exception

Error

Mistake

Defect

The C/C++ language does not define the alignment of items within

Select correct option:

structures

classes

unions

All of the given options

The raising of the imaginary error flag is simply called raising or ________ an error

Select correct option:

Catching

Casting

Throwing

None of given options

Consider the following statement: int a,b=10; Which of the following is correct:

Select correct option:

variable "a" is initialized to 10

Variable "b" is initialized to 10

Both variables "a" and "b" are initialized to 10

variables can not be initialized this way

Exception handling is a powerful technique that separates error-handling code from ______

code.

Select correct option:

Normal

Faulty

Buggy

Complex

Bit fields are a convenient way to express many difficult operations. However, bit fields suffer

from one problem

Select correct option:

Lack of usability

Lack of security

Lack of performance

Lack of portability

The complexity of a program may ______ if there are exceptional paths in it

Select correct option:

Decrease

Increase

Remain same

All of given options

80/20 rule states that:

Select correct option:

you spend 80 percent of your time in 20 percent of the code

you spend 20 percent of your time in 80 percent of the code

We should try to optimized 80 percent or at least 20 percent of the code

None of the given options.

When an error is thrown the overall system (on the lookout for this error flag) responds by

______ the error.

Select correct option:

Ignoring

Casting

Catching

All of the given options(Not Sure)

Comments are not syntax checked

TRUE

FALSE

Modularity is a tool that can help us in increasing the size of individual functions, making them

less readable.

True

False

 

its a past quiz but may help u in prepration

is main aik MCQ wrong ha

Complex Expressions make the code Difficult to modify. plz chk n corect ZaibUnnisa

g aap thek keh rahi h is m aik answer wrong h, aap n correction ki thanks 4 this

quiz...

Attachments:
thanks for sharing the quiz

my to day quiz......Best of luck allzzzzzzz
c the attached file..

Attachments:

Today quiz CS 504

  • Comma is very dangerous because

Compiler does not recognize it

It creats linkage problem

Side effects

All of the above

  • C++ header files have extention----& source files have extention------

.h & .cpp

  • Names representing methods & functions should be---- & written in mixed case starting with ------

Verb & lower

  • Str=0; more inline with

Str=’\0’;

  • Code should not be

Commented

Cryptic

  • MVC stands for

Model view controller

  • Logical operators r evaluated from

Left to right

  • A self documenting code is that explains itself without need of comments & extraneous documentation, like

Flow charts

UML diagram

PFS diagram

All

  • ---- & ------- r important short circuiting logical operators a.AND, b. OR, c. NOT, d.NOR

A & b

CS504

( Quiz)  

Str = 0;// str is string Which rewritten from of above line of code is more in line with the

self-documentation philosophy than the code above.

Str = false;

Str = NULL;

Str = ‘\0; PG:169

Str = 0.0;

In the switch statement, cases should always end with a -------statment.

Switch

Go

Break 167

Stop

Bit fields are a convenient way to express many difficult operations. However, bit fields

suffer from one problem

Lack of Usability

Lack of Security

Lack of Performance

Lack of Portability 183

If(!(block < activeBlock)) is equvivalent to:

If ((block < activeBlock))

If ((block == activeBlock))

If ((block >= activeBlock))

None of the given

Bit fields allow the packing of data in a structure. Using Bit fields we can:

Read 9 bit integers

Avoid memory leakages

Avoid memory overflow PG:183

Avoid syntax errors

The order in which bytes of one word are stored is _________ dependent

Hardware

Software

Language

Syntax

In order to write a portable code which of the following guideline will be helpful:

Stick to the standards

Program in the mainstream

Size of data types

All of give options 179

Complex expressions:

Make the code easy to modify

Make the code difficult to modify

Make the code easy to understand

Does not effect understandability

x = 0; // x is floating pt Which rewritten form of above line of code is more in line with

the self-documentation philosophy than the code above.

x = false

x = NULL

x = 0.0;

x = ‘\0’

using proper paranthesis normally makes the code

easy to read

easy to understand

less ambiguous

All of the given options

The use of comments should be minimized by making the code self-documenting by

appropriate name choices and an explicit logical structure.

True

False

1) x = (a + 2 > 3)? a : a-1 ; 2) if((a + 2)> 3) x = a; else x = a - 1;

Statement (2) is more complex than (1)

Statement (2) is more complex than (1)

Both statements are very complex

None of the given options

80/20 rule states that:

you spend 80 percent of your time in 20 percent of the code 177

you spend 20 percent of your time in 80 percent of the code

We should try to optimized 80 percent or at least 20 percent of the code

None of the given options.

Be very careful when you use functions with side effects – functions that change the

values of the ________

Objects

Classes

Structures

Variables 176

Comma ( , ) is very dangerous because

Select correct option:

Compiler does not recognise this symbol

It creates linkage problem

It causes side effects

All of the given options (Not Sure)

The C/C++ language has not specified whether ____ is arithmetic or logical.

Select correct option:

Right shift >> 181

Right shift

&&

||

In order to make a code more portable, Instead of using vendor specific language

extensions, use _______ as much as possible

Select correct option:

STL 179

ANSI

ISO

CMMI

When a small set of functions (which use each other) is so overwhelmingly the

bottleneck, there are two alternatives:

Select correct option:

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

_______ cause major portability issues

Select correct option:

Loops (Not Sure)

Bugs in code

Sizes of data types

Conditional Structures

Some bit field members are stored: I) left to right II) right to left III) in circular array

Select correct option:

only (I) is true

Only (II) is true

Both (I) and (II) are true 183

All of the options (I, II and III) are true

using proper paranthesis normally makes the code

easy to read

easy to understand

less ambiguous

All of the given options

The use of comments should be minimized by making the code self-documenting by

appropriate name choices and an explicit logical structure.

True

False

A test case involves

Input/output specification plus a statement of the function under test

Steps to perform the function

Expected results that the software application produces

All of the given options

If an application fulfills its specifications but deviates from users expectations or their

desired behavior. This means, software is verified but not ------------

Select correct option:

Validated Pg:192

Corrected

Checked

Traced

The raising of the imaginary error flag is simply called raising or ________ an error

Select correct option:

Catching

Casting

Throwing PG:184

None of given options

In order to make a code more portable, Instead of using vendor specific language

extensions, use _______ as much as possible

Select correct option:

STL 179

ANSI

ISO

CMMI

struct packed_struct { unsigned int f1:1; } pack; Here in "packed_struct":

Select correct option:

value of f1 = 1

size of f1 = 1 bit

value of f1 should not exceede 1

None of given options

The idea behind exception handling is to raise some error flag every time ________

Select correct option:

The code compiles

The code links

Memory is allocated

Something goes wrong

A __________ is a variance from a desired product attribute.

Select correct option:

Exception

Error

Mistake

Defect PG: 192

The C/C++ language does not define the alignment of items within

Select correct option:

structures

classes

unions

All of the given options PG: 182

Consider the following statement: int a,b=10; Which of the following is correct:

Select correct option:

variable "a" is initialized to 10

Variable "b" is initialized to 10

Both variables "a" and "b" are initialized to 10

variables can not be initialized this way

Exception handling is a powerful technique that separates error-handling code from

______ code.

Select correct option:

Normal PG: 184

Faulty

Buggy

Complex

The complexity of a program may ______ if there are exceptional paths in it

Select correct option:

Decrease

Increase PG:185

Remain same

All of given options

When an error is thrown the overall system (on the lookout for this error flag) responds

by ______ the error.

Select correct option:

Ignoring

Casting

Catching

All of the given options (Not Sure)

Comments are not syntax checked

TRUE

FALSE

Modularity is a tool that can help us in increasing the size of individual functions, making

them less readable.

True PG:170

False

Verification and validation are the processes in which we check a product against its

_________ and the __________ of the users who will be using it

specifications, expectations PG:192

specifications , arguments

statements, arguments

The greatest advantage of exception handling is its ability to handle:

Asynchronous errors PG:184

Syntax errors

Memory errors

Control Structure errors

Str = 0;// str is string Which rewritten from of above line of code is more in line with the selfdocumentation

philosophy than the code above.

Str = false;

Str = NULL;

Str = ‘\0;

Str = 0.0;

Struct packed_struct { unsigned int f1:1;} pack; Here in “packed_struct”:

Value of f1 =1

Size of f1 = 1 bit

Value of f1 should not exceede 1 (Not Sure)

None of given options

In the switch statement, cases should always end with a -------statment.

Switch

Go

Break

Stop

Bit fields are a convenient way to express many difficult operations. However, bit fields suffer

from one problem

Lack of Usability

Lack of Security

Lack of Performance

Lack of Portability

If(!(block < activeBlock)) is equvivalent to:

If ((block < activeBlock))

If ((block == activeBlock))

If ((block >= activeBlock))

None of the given

Bit fields allow the packing of data in a structure. Using Bit fields we can:

Read 9 bit integers

Avoid memory leakages

Avoid memory overflow

Avoid syntax errors

The order in which bytes of one word are stored is _________ dependent

Hardware

Software

Language

Syntax

In order to write a portable code which of the following guideline will be helpful:

Stick to the standards

Program in the mainstream

Size of data types

All of give options

Complex expressions:

Make the code easy to modify

Make the code difficult to modify

Make the code easy to understand

Does not effect understandability

In the switch statement, cases should always end with a -------statment.

Switch

Go

Break

Stop

x = 0; // x is floating pt Which rewritten form of above line of code is more in line with the selfdocumentation

philosophy than the code above.

x = false

x = NULL

x = 0.0;

x = ‘\0’

using proper paranthesis normally makes the code

easy to read

easy to understand

less ambiguous

All of the given options

The use of comments should be minimized by making the code self-documenting by

appropriate name choices and an explicit logical structure.

True

False

Bit fields allow the packing of data in a structure. using Bit fields we can:

Read 9 bit integers

Avoid memory leakages

Avoid memory overflow

Avoid syntax errors

1) x = (a + 2 > 3)? a : a-1 ; 2) if((a + 2)> 3) x = a; else x = a - 1;

Statement (2) is more complex than (1)

Statement (2) is more complex than (1)

Both statements are very complex

None of the given options

80/20 rule states that:

you spend 80 percent of your time in 20 percent of the code

you spend 20 percent of your time in 80 percent of the code

We should try to optimized 80 percent or at least 20 percent of the code

None of the given options.

Be very careful when you use functions with side effects – functions that change the values of

the ________

Objects

Classes

Structures

Variables

Comma ( , ) is very dangerous because

Select correct option:

Compiler does not recognise this symbol

It creates linkage problem

It causes side effects

All of the given options (Not Sure)

The C/C++ language has not specified whether ____ is arithmetic or logical.

Select correct option:

Right shift >>

Right shift

&&

||

In order to make a code more portable, Instead of using vendor specific language extensions,

use _______ as much as possible

Select correct option:

STL

ANSI

ISO

CMMI

The order in which bytes of one word are stored is _________ dependent

Select correct option:

hardware

software

language

syntax

Be very careful when you use functions with side effects – functions that change the values of

the ________

Select correct option:

Objects

Classes

Structures

Variables

When a small set of functions (which use each other) is so overwhelmingly the bottleneck,

there are two alternatives:

Select correct option:

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

_______ cause major portability issues

Select correct option:

Loops (Not Sure)

Bugs in code

Sizes of data types

Conditional Structures

In the switch statement, cases should always end with a -------statment.

Select correct option:

Switch

Go

Break

Stop

Some bit field members are stored: I) left to right II) right to left III) in circular array

Select correct option:

only (I) is true

Only (II) is true

Both (I) and (II) are true

All of the options (I, II and III) are true

x = 0; // x is floating pt Which rewritten form of above line of code is more in line with the selfdocumentation

philosophy than the code above.

x = false

x = NULL

x = 0.0;

x = ‘\0’

Comma ( , ) is very dangerous because

Compiler does not recognise this symbol

It creates linkage problem

It causes side effects

All of the given options(Not sure)

using proper paranthesis normally makes the code

easy to read

easy to understand

less ambiguous

All of the given options

The use of comments should be minimized by making the code self-documenting by

appropriate name choices and an explicit logical structure.

True

False

Bit fields allow the packing of data in a structure. using Bit fields we can:

Read 9 bit integers

avoid memory leakages

avoid memory overflow

Avoid syntax errors

1) x = (a + 2 > 3)? a : a-1 ; 2) if((a + 2)> 3) x = a; else x = a - 1;

Statement (2) is more complex than (1)

Statement (2) is more complex than (1)

Both statements are very complex

None of the given options

80/20 rule states that:

you spend 80 percent of your time in 20 percent of the code

you spend 20 percent of your time in 80 percent of the code

We should try to optimized 80 percent or at least 20 percent of the code

None of the given options.

Be very careful when you use functions with side effects – functions that change the values of

the ________

Objects

Classes

Structures

Variables

A test case involves

Input/output specification plus a statement of the function under test

Steps to perform the function

Expected results that the software application produces

All of the given options

The C/C++ language has not specified whether ____ is arithmetic or logical.

Select correct option:

Right shift >>

Right shift

&&

||

If an application fulfills its specifications but deviates from users expectations or their desired

behavior. This means, software is verified but not ------------

Select correct option:

Validated

Corrected

Checked

Traced

The raising of the imaginary error flag is simply called raising or ________ an error

Select correct option:

Catching

Casting

Throwing

None of given options

In order to make a code more portable, Instead of using vendor specific language extensions,

use _______ as much as possible

Select correct option:

STL

ANSI

ISO

CMMI

struct packed_struct { unsigned int f1:1; } pack; Here in "packed_struct":

Select correct option:

value of f1 = 1

size of f1 = 1 bit

value of f1 should not exceede 1

None of given options

The idea behind exception handling is to raise some error flag every time ________

Select correct option:

The code compiles

The code links

Memory is allocated

Something goes wrong

Bit fields allow the packing of data in a structure. using Bit fields we can:

Select correct option:

Read 9 bit integers

avoid memory leakages

avoid memory overflow

Avoid syntax errors

The order in which bytes of one word are stored is _________ dependent

Select correct option:

hardware

software

language

syntax

A __________ is a variance from a desired product attribute.

Select correct option:

Exception

Error

Mistake

Defect

The C/C++ language does not define the alignment of items within

Select correct option:

structures

classes

unions

All of the given options

The raising of the imaginary error flag is simply called raising or ________ an error

Select correct option:

Catching

Casting

Throwing

None of given options

Consider the following statement: int a,b=10; Which of the following is correct:

Select correct option:

variable "a" is initialized to 10

Variable "b" is initialized to 10

Both variables "a" and "b" are initialized to 10

variables can not be initialized this way

Exception handling is a powerful technique that separates error-handling code from ______

code.

Select correct option:

Normal

Faulty

Buggy

Complex

Bit fields are a convenient way to express many difficult operations. However, bit fields suffer

from one problem

Select correct option:

Lack of usability

Lack of security

Lack of performance

Lack of portability

The complexity of a program may ______ if there are exceptional paths in it

Select correct option:

Decrease

Increase

Remain same

All of given options

80/20 rule states that:

Select correct option:

you spend 80 percent of your time in 20 percent of the code

you spend 20 percent of your time in 80 percent of the code

We should try to optimized 80 percent or at least 20 percent of the code

None of the given options.

When an error is thrown the overall system (on the lookout for this error flag) responds by

______ the error.

Select correct option:

Ignoring

Casting

Catching

All of the given options(Not Sure)

Comments are not syntax checked

TRUE

FALSE

Modularity is a tool that can help us in increasing the size of individual functions, making them

less readable.

True

False

 

RSS

Looking For Something? Search Here

Latest Activity

+!!! Walker'$ Inception!!! updated their profile
14 minutes ago
Syeda joined +M.Tariq Malik's group
42 minutes ago
+!!! Walker'$ Inception!!! liked +M.Tariq Malik's discussion Waqar Siddhu Solved Final Term Papers, Waqar Siddhu Solved MCQs, Waqar Siddhu Solved Final Term Papers Subjective Questions,
1 hour ago
+ıllıllı ᎶᏋᏁᎥᏬᏕ ᏰᎥᏒᎴ ıllıllı+ liked +ıllıllı ᎶᏋᏁᎥᏬᏕ ᏰᎥᏒᎴ ıllıllı+'s discussion let's celebrate birthday of our beloved MahRose
1 hour ago
+ıllıllı ᎶᏋᏁᎥᏬᏕ ᏰᎥᏒᎴ ıllıllı+ liked +M.Tariq Malik's discussion FPSC CSS Past Papers Questions Papers 2017 - Past Papers 2017 fpsc css - css past papers 2017 - CSS Past Papers - CSS Past Papers, Solved FPSC - CSS Past Papers Free Download
1 hour ago
+ıllıllı ᎶᏋᏁᎥᏬᏕ ᏰᎥᏒᎴ ıllıllı+ liked +M.Tariq Malik's discussion FPSC CSS Past Papers Questions Papers 2018 - Past Papers 2018 fpsc css - css past papers 2018 - CSS Past Papers - CSS Past Papers, Solved FPSC - CSS Past Papers Free Download
1 hour ago
+ıllıllı ᎶᏋᏁᎥᏬᏕ ᏰᎥᏒᎴ ıllıllı+ liked +M.Tariq Malik's discussion FPSC CSS Past Papers Questions Papers 2019 - Past Papers 2019 fpsc css - css past papers 2019 - CSS Past Papers - CSS Past Papers, Solved FPSC - CSS Past Papers Free Download
1 hour ago
+ıllıllı ᎶᏋᏁᎥᏬᏕ ᏰᎥᏒᎴ ıllıllı+ liked +M.Tariq Malik's discussion Free Download The FPSC CSS Notes For COMPULSORY & OPTIONAL SUBJECTS NOTES
1 hour ago

Today Top Members 

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

.