Foundations of Software Engineering

Author:

Access: Public Instant Grading

Start FlashCards Download PDF

Get the best College algebra course in your pocket!

This is a foundation subject in modern software development techniques for engineering and information technology. The design and development of component-based software (using C# and .NET) is covered; data structures and algorithms for modeling, analysis, and visualization; basic problem-solving techniques; web services; and the management and maintenance of software. Includes a treatment of topics such as sorting and searching algorithms; and numerical simulation techniques. Foundation for in-depth exploration of image processing, computational geometry, finite element methods, network methods and e-business applications. This course is a core requirement for the Information Technology M. Eng. program.

This class was also offered in Course 13 (Department of Ocean Engineering) as 13.470J. In 2005, ocean engineering subjects became part of Course 2 (Department of Mechanical Engineering), and the 13.470J designation was dropped in lieu of 2.159J.

Quiz PDF eBook: 
Foundations of Software Engineering
Download Software Engineering Quiz PDF eBook
15 Pages
2014
English US
Educational Materials



Sample Questions from the Foundations of Software Engineering Quiz

Question: Which lines of the above code are assignments? Consider the following code:

Choices:

Statement a

Statement b

Statement c

Statement d

Statement e

Question: Which line of the above code declares a variable without allocating memory for it? Consider the following code:

Choices:

Statement a

Statement b

Statement c

Statement d

Statement e

Question: When the following logical test is true? ( x>=y && ! x && x* y < 0 && y==0)

Choices:

if x is greater than y, and y is equal to zero

if both x and y are equal to zero

if x is positive, and y is equal to zero

always

never

Question: What is the result of the statement following the definitions given below? char c='b'; char *pc=&c; char *&rc=pc ; (*rc)++;

Choices:

it increases &rc

it stores 'b' in variable c

it increases *rc

it increases pc, by one byte

none of the above

Question: What will be the value of x after the execution of the following line? int x = (7>6 ? 1+8 : 8)

Choices:

6

7

1

8

9

Question: Considering the following definitions, which of the provided statements (if any) are invalid? double x= 0.5, y=4.9; double *px, *py, &rx=x;

Choices:

px =&x; double &rx = *px ;

px = py;

double &ry = rx;

px = px = rx;

px = py = *x;

Question: Considering the following definitions, which of the provided statements (if any), would give the value of x, assuming that x is a double that has been properly defined and initialized to a value? void *pp = &x; double *px=&x; double **ppx=&px;

Choices:

**ppx

*(static_cast <double*>(pp))

*pp

*(*(&px))

*( (double*)pp)

Question: Which line of the above code is both a definition and an initialization? Consider the following code:

Choices:

Statement a

Statement b

Statement c

Statement d

Statement e

Question: Which of the following cases of mixed expressions is/are correct (circle the correct one(s)), considering the following definition: double d; float f; int i; char c;

Choices:

’f’ - ’d’ is a double

f / 3.33 is a float

’f’ - ’d’ is an int

’f’ - ’d’ is a char

none of the above

Question: Which of the following expressions give(s) as result an int equal to 6?

Choices:

’z’ - ’t’

13 % 7

7 % 2

29/5

55 % 7

Question: According to the following statement: const int *p;

Choices:

the value of the pointer p cannot change

the value of the integer that p points to cannot change

both pointer p and the value of the integer that p points tocannot change

both pointer p and the value of the integer that p points to can change

p is a constant pointer to int

Start FlashCards Download PDF
Source:  Amaratunga, Kevin. 1.124J Foundations of Software Engineering, Fall 2000. (MIT OpenCourseWare: Massachusetts Institute of Technology), http://ocw.mit.edu/courses/civil-and-environmental-engineering/1-124j-foundations-of-software-engineering-fall-2000 (Accessed 2 May, 2014). License: Creative Commons BY-NC-SA
Copy and paste the following HTML code into your website or blog.
<iframe src="https://www.quizover.com/embed/foundations-of-software-engineering-by-prof-kevin-amaratunga-mit" width="600" height="600" frameborder="0" marginwidth="0" marginheight="0" scrolling="yes" style="border:1px solid #CCC; border-width:1px 1px 0; margin-bottom:5px" allowfullscreen webkitallowfullscreen mozallowfullscreen> </iframe>