2019 Solutions T/F Flashcards

1
Q

C++ was developed by Ken Thompson and Dennis Ritchie

A

F

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

The C standard library is included in the standard C++ library

A

T

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

C++11 was the first standard released by the ISO group for the C++ language

A

F

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

A C++ program can contain a compile well-written code.

A

T

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

C++ programs are first compiled to intermediate “o-code” files.

A

T

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Hubert likes little boy wieners

A

T

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Atomic types like int cant be initialized using () as objects are

A

F

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

o-code files need to be processed to executables before being sent to the OS for execution

A

T

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Dividing a non-zero double type value by zero causes a run-time error

A

F

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

The var keyword uses type inference to type variables in C++

A

F

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

The GCC compiler is hte only c++ compiler that adheres to the ISO standards

A

F

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

The long double type uses extended precision in C++

A

T

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

It is not legal to have a pointer to an atomic type variable, like an int

A

F

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

C++ style casts are templated

A

T

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

The operator -> combines dereferencing and membership when used with a pointer

A

T

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

A reference cannot be assigned to a nullptr

A

T

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

The memory consumed by a reference depends on where you are using a 32-bit or a 64-bit compiler

A

F

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

By using pointer arithmetic it is possible to read memory locations that have not been assigned to variables

A

T

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

The operateor & acts to dereference a pointer

A

F

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

A struct can only contain members that are all of the same type

A

F

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

The STL string class is immutatable

A

F

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

A C++ array will not allow you to supply index values that are out of range of the array

A

F

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

A vector collection from the stl cannot use [] to access members

A

F

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

The operator | is the same as || except that it doesnto ues short circuit evalaution

A

F

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Only one class can be implemented at a time in a *.cpp file

A

F

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

The string member .at() will throw an exception of an attempt is made to access a character beyond the size of the string

A

T

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

In a boolean expression a non zero integer will be consider as false

A

F

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

The assignment operator returns the value being assigned

A

T

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

The goto statement is legal syntax in C++

A

T

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Constructors should always be declared as const

A

F

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

A pointer that has been assigned to nullptr will be evaluated as being true

A

F

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

The vector member function .at() can be used on the LHS of an assignment statement

A

T

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

A default constructor is invoked with a set of empty brackers ()

A

F

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Ambiguities can result from using the “using” keyword for too many namespaces

A

T

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Programs that have implementation code in the header or *.h file will not compile

A

F

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

If const is used at the ned of a member function declaration then that function cannot chang ethe values contained in the attributes of its own class.

A

T

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

The #pragma once pre compiler directive can be used to prevent the redeclaration of a header files contents

A

T

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Passing by constant reference is usually the best way to pass an argument into a function

A

T

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

The initialization section in a constructors implementation can be used to carry out error checking on the arguments supplied to the constructor

A

F

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

It is bad practice to return a reference to a variable that is local to the function returning it

A

T

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Only exceptions that extend std::Exception can be thrown

A

F

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

The *.cpp file containing the implementation of the declarations contained in a header, or *.h file must have an #include statement for that header file

A

T

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

If a single namespace is used with the “using” keyword then the scope resolution operator will not be needed t identify names from that namespace

A

T

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Variables cannot be declared outside a function or class

A

F

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Local variables cannot be declared as static

A

F

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

Default arguments must be assigned in a function prototype or declaration only

A

T

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

C++ does not allow the definition of lambda functions

A

F

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

Inline functions must be implemented in the header file

A

T

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

You cannoty change the precedence of an operator by overloading it

A

T

24
Q

Assignment operators must be overloaded as non member functions

A

F

25
Q

Conversion constructors can allow mixed type excpressions to work with overloaded binary operators

A

T

26
Q

Non member friend functions are able to invoke accessors on arguments of the class type they are friends to in order to obtain their attribute vaoues

A

T

27
Q

To differentaite between pre and post incremenet operator overloadings the post incremembt version must have an unused int type parameter

A

T

28
Q

An overloaded pre icrement function will run faster than the equivalent overloaded post increment version

A

T

29
Q

Codnig both a conversion constructor and an overloaded conversion opreator for the same type can lead to an ambiguity

A

T

30
Q

Member functions declared as explicit cannot be automaticalyl invoked to hepl evaluated mixed type expression

A

T

31
Q

Function objects can be created by overloading the [] brackets

A

F

32
Q

The amount of memory used by your program on the heap or free store is fixed at compilation time

A

F

33
Q

The new operator provides a ptr to a structure stored on the heap

A

T

33
Q

Porgram instructions are stored on the heap

A

F

34
Q

A function cdan return a stable pointer to a local variable provided that variable is stored on the heap

A

T

35
Q

New or new[] will return a nullptr if memory on the heap cannot be allocated

A

F

36
Q

The delete operator can also be used to delete an array allocated on th eheap

A

F

37
Q

A memory leak is ar esult of not properly deleting a heap allocated structure

A

T

38
Q

Memory leaks tend to manifest more often for long running programs

A

T

39
Q

The delete operator will automatically set a pointer to nullptr after deletion

A

F

40
Q

Deleting an unitialized pointer will not cause a problem because this pointer will automatically be a null ptr after deletion

A

F

41
Q

Passing a child class instance by value into a function using a parent type parameter will result in object slicing

A

T

42
Q

A dynamic_cast<type> throws an exception if a pointer cannot be cast to the specified type</type>

A

T

43
Q

Copy constructors and overloaded assignment operator implementations are also responsible for preventing the aliasing of object contents

A

T

44
Q

The use of private as a base class access modifier will not change the access of members inherited from the base class

A

F

45
Q

C+= does not allow for multiple inheritance

A

F

46
Q

You can overload an inherited function by using the same function name and a different parameter list in the child class

A

F

46
Q

Polymorphism must be enabled by declaring the parent class version of the function of interest to be virtual

A

T

47
Q

Static binding is determined by the pointer type at compilation

A

T

48
Q

Pure virtual function declarations must be implemented by the class that declares them

A

F

49
Q

Use of the heap in any class in a hierarchy requires a virtual destructor be declared in the base class of that hreiarchy

A

T

50
Q

In a hierarchy that uses the heap, a child class copy constructor needs to invoke the parent class copy constructor

A

T

51
Q

A virtual function that overrides a parent class version of itself can also change the default arguments used by the parent class version F

A

F

52
Q

Template declarations are able to restrict possible types supplied to the template in code

A

F

53
Q

Templated functions are type dand built with that type during compilation in order to minimize execution times

A

T

54
Q

Templates can only be written to accept a single type

A

F

55
Q

Smart pointers implement “nearly complete” automatic garbage collection.

A

t

56
Q

It is possible to have many unique_ptr<> pointers pointing to the same object on the heap.

A

f

57
Q

The operators, * and ->, can still be used with smart pointers from the STL.

A

t

58
Q

The function make_unique<>() does not require the use of the new operator to put the
object being pointed to on the heap.

A

t

59
Q

You still have to invoke the delete operator to start the destruction process of a smart
pointer.

A

f

60
Q

The “CLI” in C++/CLI stands for “Common Language Interpreter”.

A

f

61
Q

A CIL file created by the CLR in C++/CLI is not only too many acronyms, but is also written
as executable binary code in a *.exe file.

A

f

62
Q

Managed code in C++/CL Irequires the use of handles and gcnew instead of pointers and
new.

A

t

62
Q

An agile team expects to be coding, designing and testing all at the same time.

A

t

63
Q

Any programming language used in .NET must follow the CLS rules which includes the
mandated use of shared object types for what ISO C++ considers atomic types.t

A

t

64
Q

Functional requirements must describe “how well” a feature must be implemented by the
system.

A

f

64
Q

System architecture details are described in the RAD.

A

f

65
Q

A git repository only stores the newest version of any file. Older versions are deleted.f

A

f

65
Q

Any use of a git repository requires an internet connection.f

A

f

66
Q

The SDD cannot change once it has been written.f

A

f

67
Q

It is good practice to provide a comment for every git commit to provide the reason for the
commit.

A

t

67
Q

The creation of a branch in a git repository allows you to choose a subset of the available
files to work on.

A

t

68
Q

A git repository relies on the use of a centralized server to store all files.

A

f

69
Q

____ A UML Statechart diagram is used to display the possible states of an object used for
polymorphism.

A

f

70
Q

A UML Sequence diagram is used to display the dynamic interactions of objects along a
timeline.

A

t

70
Q

A Sequence diagram must be initiated by an actor (typically a “human”).

A

t

71
Q

A UML Class diagram presents a static view of classes in a system, their members and the
inheritance structure.t

A

t

71
Q

Design goals are extracted from Non-Functional requirements.

A

t

72
Q

fThe goal of a good code structure design is to have strong coupling between systems and
weak cohesion within each system.

A

f

72
Q

If issue progress is not tracked using changing time estimates then the burndown chart
shown by Jira will be meaningless.

A

t

73
Q

User stories are always translated into Jira as a single issue.

A

f

74
Q

Task type issues that are not completed in a sprint are deleted and then re-created for the
next sprint.

A

f

75
Q

In order for an issue to be created it must be assigned to a sprint.

A

f

76
Q

Issue priorities must be assigned once activity is underway for that issue.

A

f

77
Q

Gantt charts are used by Jira for sprint planning purposes.

A

f

78
Q

A sprint should always result in a demonstrable deliverable.

A

t

79
Q

A SCRUM meeting is the same as what students call a “Codeathon”.

A

f

80
Q

It is possible to create a link from an issue in Jira to a file in Bitbucket.

A

t

81
Q

Branches in Bitbucket should be merged back to the master when a sprint is completed.

A

t

82
Q

It is common practice for a team to have more than one sprint underway at the same time.

A

f

83
Q

Many of our teams faced the problem of excessive merge conflicts in their repositories as
a result of too many people working on the same files at the same time.

A
84
Q

All of our teams planned, carried out and recorded the results of thorough integration
testing on their product before their presentations.

A

F

85
Q

Most teams that split up into sub-teams (back-end and GUI, for example) faced integration
issues right before their presentations usually due to poor communications between the
sub-teams.

A

T

86
Q

None of our teams had any difficulty using their git repositories.

A

F

87
Q
A