Course Hero Logo

midterm exam SOL (spring16_17).pdf - ITEC114 Structured...

Course Hero uses AI to attempt to automatically extract content from documents to surface to you and others so you can study better, e.g., in search results, to enrich docs, and more. This preview shows page 1 - 3 out of 6 pages.

ITEC114Structured ProgrammingMidterm Exam, Spring 2016/201712 April 2017Instructor: Akile OdayStudent Name: ________________________Student Number: ______________________Group No: _____QuestionPointsScorePart120Part225Part320Part435Total100Duration of the exam is 75 minutesAsk if any question in first 30 minutesYou are not allowed to leave the class within first 30 minutes
Part1 - Multiple Choice (2 each)1) What is the output of the program?#include"stdafx.h"voidmain( ){inti=12, z=8;if(i=5 && z>50)printf("bye");elseprintf("hello");printf("bye");}
2) What is the output of the program?#include"stdafx.h"voidmain( ){intx = 9, y, z;y = x++;z = x++;printf("%3d",y++);printf("%3d",z);}911
3) What is the output of the program?#include"stdafx.h"voidmain(){intx [6]= {0,0,10,20,30};printf (" \n %d %d %d %d %d %d", x[5], x[4] ,x[3] ,x[2] ,x[1] ,x[0] );}
2 |P a g e

Upload your study docs or become a

Course Hero member to access this document

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 6 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Fall
Professor
N/A
Tags

Newly uploaded documents

Show More

Newly uploaded documents

Show More

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture