Question 1 / 15:  Which line of the above code is both a definition and an initialization?

Consider the following code:

extern int x; // Statement a

int main()

{

int a, b; // Statement b

double d = 9; // Statement c

a = 1; // Statement d

b = 5; // Statement e

cout << x+ a/b + d/10 << endl;

}

A  Statement a
B  Statement b
C  Statement c
D  Statement d
E  Statement e
<< First < Previous Next > Last >>
Quiz Home Page
https://www.jobilize.com/foundations-of-software-engineering-by-prof-kevin-amaratunga-mit

Foundations of Software Engineering

Author:

Access: Public Instant Grading

Attribution:  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
Ask
Marion Cabalfin
Start Test
Tess Armstrong
Start Quiz
Copy and paste the following HTML code into your website or blog.
<iframe src="https://www.jobilize.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>