Practice Test1 - CS303E (Mitra) Test 1 Fall 2005 Ques 1 (...

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

View Full Document Right Arrow Icon
CS303E (Mitra) Test 1 Fall 2005 Ques 1 ( 10 pt ) a) Convert 113 in decimal to hexadecimal, octal, and binary. b) Convert DEF in hexadecimal to binary, octal, and decimal. Ques 2 ( 10 pt ) Define variables from the following descriptions. The variables should have a type, a descriptive name and a value. a) The sales tax rate in Austin. b) The number of loaves of bread in a baker’s dozen. c) The character corresponding to the asterisk. d) The book For Whom the Bells Toll . e) The result of determining if the toss of a coin is a head. 1
Background image of page 1

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

View Full DocumentRight Arrow Icon
Ques 3 ( 10 pt ) Use truth tables to verify or disprove the following relationships: a) b) 2
Background image of page 2
Ques 4 ( 6 pt ) Suppose a, b, and c are int variables initialized respectively to 1, 2, and 3. What values are assigned to e, f, and g and the values of a, b, and c at the end of the evaluation? Each expression is independent of the others, i.e. at the beginning of each assignment the values of a, b, and c are 1, 2, and 3 respectively. a)
Background image of page 3

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

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

This homework help was uploaded on 04/16/2008 for the course CS 303e taught by Professor Mitra during the Fall '07 term at University of Texas.

Page1 / 7

Practice Test1 - CS303E (Mitra) Test 1 Fall 2005 Ques 1 (...

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

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