{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

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

Info icon This 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
Image of page 1

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

View Full Document Right Arrow Icon
Ques 3 ( 10 pt ) Use truth tables to verify or disprove the following relationships: a) A || (!A && B) = A && B b) A && (!A || B) = A && B 2
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.
Image of page 3

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

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

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern