Pretest.UNF

Pretest.UNF - Assessment of Prior Programming Experience...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Assessment of Prior Programming Experience The purpose of this is to give a brief assessment of your prior knowledge of computer programming and/or Java or C++. There are not any 'trick' questions. Don't worry if the material is completely unfamiliar to you -- simply say so. It is impossible to fail this exam. What follows is a sequence of programs written in the mythical language DOBOL , which is similar to Pascal , BASIC , and C/C++ and Java. . You are to describe what you think will be output when the program is run. PROGRAM One DECLARE VARIABLE x---------------------------------------- START SET x = ((5 + 4)*2/3 ) WRITE( screen : x ) DONE PROGRAM Two DECLARE VARIABLES x, y---------------------------------------- START WRITE( screen : "Input two integers" ) READ ( keyboard : x, y ) WRITE( screen : x, y, x+y ) DONE INPUT: 5 7 PROGRAM Three DECLARE VARIABLES a, b, c---------------------------------------- START WRITE( screen : "Input two integers" ) READ ( keyboard : a, b ) IF ( a > b ) THEN SET c = b ELSE SET c = a WRITE( screen : a, b, c ) DONE INPUT: 4 2 PROGRAM Four...
View Full Document

{[ snackBarMessage ]}

Page1 / 5

Pretest.UNF - Assessment of Prior Programming Experience...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online