Quiz 2 Solution - proper indentations. [5 points] main:...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Name:___________________________________ Quiz Two [10 points] 1) What value does the following expression evaluate to? Show your work for partial credit. [3 points] (3 * 5 > 10 || 2 < 1) + 3 (15 > 10 || 2 < 1) + 3 (1 || 2 < 1) + 3 (1 || 0) + 3 1 + 3 4 2) Write an algorithm in pseudocode to read in a number and print its square. Use
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: proper indentations. [5 points] main: read x set sq to x * x print sq end 3) Give one example of something that goes in a C program but not in pseudocode. [2 points] #include statements – tell you which libraries you are using variable declarations – assign data types to variables semicolons etc....
View Full Document

This note was uploaded on 08/29/2011 for the course CIS 209 taught by Professor Aren during the Spring '11 term at Kansas State University.

Ask a homework question - tutors are online