Docsity

Solved Exam 1 for Computing for Engineers | CS 1371, Exams of Computer Science

Partial preview of the text

Download Solved Exam 1 for Computing for Engineers | CS 1371 and more Exams Computer Science in PDF only on Docsity!

CS1371 Test 1 Problem 1 ta. Which of the following is the comment character in MATLAB? (a) % (b)! (c)* (d)# 1b. Considering the following script 4 2; 3; (b*e)==a) ((a23)== FO TD a —Touan Ns else a=btc end bear(, Gals? = Ih What is the value of b after this is run? ) 15 {c) 16 (d)3 amen 0 : 8+4)<11) 4th—(((644*3) > 20)) Mt. ™((47=4)1C(6<(4*2/84+4)))) Which one(s) evaluate to a logical(boolean) 'true' ? {a} E only (b) Tl only x (yi only"> / (d) | and Ill (e) Il and Ill (f) all of them September 17" 2004 a oo. us N,