[PDF] CS 1323-020: Introduction to Computer Programming Exam 1





Previous PDF Next PDF



CS 1323-020: Introduction to Computer Programming Exam 1

Sep 15 2014 question. Use the provided space in this exam booklet to answer the coding questions. On my honor



2020 Beaver Computing Challenge (Grade 9 & 10) Questions

computer programming language would be rejected by the computer as a syntax error. (D) Test tube G. Question. 38. Page 39. (D) Test Tube G. Answer. We know ...



A506 / C201 Computer Programming II Placement Exam Sample

A506 / C201 Computer Programming II. Placement Exam Sample Questions. For each of the following choose the most appropriate answer (2pts each). _____ 1 



A Mathematical Programming Model for Test Construction and Scoring

questions answered by the student in which the total weights of the questions in the Utilizing a computer code based on this algorithm we solve our test ...



The PRAXIS® Study Companion - Computer Science (5652)

The test consists of a variety of selected-response questions where you select one or more answer choices. You can review the possible question types in 



Analysis of Students Engagement and Learning Performance in a

questions (each correct answer = 2 points). The total score is 50. In the computer programming test students have to complete two computer programming.



2022 Beaver Computing Challenge (Grades 5 & 6) Questions

questions being answered either “yes” or “no”. The ... Logic plays a key role in computer science in a huge variety of areas: databases programming languages



2016 Beaver Computing Challenge (Grade 7 & 8) Questions

answer of each question either with either the value 0 write a computer program in a very simple programming language that consists of only four possible.



Coderunner: A Tool for Assessing Computer Programming Skills

Because it is just another Moodle question type test or exam quizzes can mix CodeRunner questions with other computer-graded ques- tion types like multi 



2019 Beaver Computing Challenge (Grade 9 & 10) Questions

allow computer programmers to program such devices in efficient and reliable ways. Question. 22. Page 23. (C) Bear. Answer. In this image the head width is ...



CS 1323-020: Introduction to Computer Programming Exam 1

Sept 15 2014 question. Use the provided space in this exam booklet to answer the coding questions. On my honor



Computer Programmer Aptitude Battery (CPAB) Test

Do your best to work out the problems but don't be afraid to take a guess if you don't know the answer to a question. 10. Questions tend to become 



2020 Beaver Computing Challenge (Grade 9 & 10) Questions

Computing. Challenge. (Grade 9 & 10). Questions. Answers



Case Study: Students Code-Tracing Skills and Calibration of

Oct 11 2020 answer 44 programming questions in a test and estimate the ... Keywords: computer adaptive testing; code tracing; basic programming skills.



Examining the Effects of Two Computer Programming Learning

explanation and reading questions and answers on learning the computer programming language JavaScript. Students' test performance and perceptions of 





AP Computer Science A 7th Edition

answer explanations and automated scoring. BARRON'S. Online. AP Exams. *This online test was Multiple-Choice Questions on Program Design and Analysis .



The Ontario Curriculum Grades 10 to 12 Computer Studies

the computer and it is much more than computer programming. complete tests or assignments or permitting oral responses to test questions.



A Computer Programming Intervention for Second Grade Math

Participants were asked to think aloud while answering test questions and while working through the activities. They were also prompted throughout the study to 



COSC 121 – Computer Programming II - Winter 2021

Full mark for correctly answering 80% of all questions). • Lab work: (total: 23%) o Lab Exercises no grade o Assignments 16 % o Project. 7 %. • Exams 

CS 1323-020: Introduction to Computer Programming

Exam 1

September 15, 2014

General instructions:

•Please wait to open this exam booklet until you are told to do so. •This examination booklet has 13 pages. You also have been issued a bubble sheet. •Write your name, university ID number and date, and sign your namebelow. Also, write your name and ID number on your bubble sheet, and fill in the bubbles for your ID. •The exam is open book and open notes, but is closed electronic device. The only exception is that you may use an electronic device to display a PDF copy of the book (all communication must be turned off and no other applications may be used). •The exam is worth a total of 100 points (and 10% of your final grade). •You have 1.25 hours to complete the exam. Be a smart test taker: ifyou get stuck on one problem go on to the next. •Use your bubble sheet to answer all multiple-choice questions. Makesure that the question number and the bubble row number match when you are answering each question. Use the provided space in this exam booklet to answer thecoding questions. On my honor, I affirm that I have neither given nor received inappropriate aid in the completion of this exam.

Signature:

Name:

ID Number:

Date:

QuestionPointsScore

Variables, Types and Conversions14

Mathematical Operations18

Conditionals18

Loops20

Coding30

Total:100

Part I. Variables, Types and Conversions

1. (2 points) What type of data would you use to count the number of times that a

baby pushed herself to the left [using the assistive robot]? A. intB. boolean C. double D. String E. Answer not shown

2. (2 points) Given the following block of code. Which line contains an error?

1intaa= 5;

2intbc= 99;

3intc1= 32;

4intd_= 7;

A. Line 1 B. Line 2 C. Line 3 D. Line 4E. There are no errors

3. (2 points) Given the following block of code. Which line contains an error?

1inta= 5;

2doubleb= 99;

3intc@= 7;

4booleand=fal se;

A. Line 1 B. Line 2C. Line 3D. Line 4 E. There are no errors

4. (2 points) What type of data would you use to measure the forward progress of the

baby during a fixed period of time (in meters)? A. int B. booleanC. doubleD. String E. Answer not shown

5. (2 points) What type of data would you use to store the name of the baby?

A. int B. boolean C. doubleD. StringE. Answer not shown

6. (2 points) Given the following block of code. Which line contains an error?

1intm= 5;

2doublen= 99;

3doubleo=m;

4intp=n;

A. Line 1 B. Line 2 C. Line 3D. Line 4E. There are no errors

Page 2

7. (2 points) Given the following block of code. Which line contains an error?

1intfoo= 5;

2intbar= 42;

3intfoo= 3;

4intbaz= 1138;

A. Line 1 B. Line 2C. Line 3D. Line 4 E. There are no errors

Page 3

Part II. Mathematical Operations

8. (2 points) What result is printed by this block of code? Answers within a small

delta from the true answer are considered true. inti= 23; intj= 7; intk=i%j;

System.out.println("The result is : "+k) ;

A. 0B. 2C. 7 D. There is an error E. Answer not shown

9. (2 points) What result is printed by this block of code? Answers within a small

delta from the true answer are considered true. intfoo= 8; doublebar= 11; bar=foo;

System.out.println("The result is : "+bar/ 3) ;

A. 2B. 2.666666666C. 3 D. 3.333333333 E. Answer not shown

10. (2 points) What result is printed by this block of code? Answers within a small

delta from the true answer are considered true. inth= 7; doublei= 2.5; doublec=h/i;

System.out.println("The result is : "+ (c+ 1) ) ;

A. 2 B. 2.8C. 3.8D. There is an error E. Answer not shown

11. (2 points) What result is printed by this block of code?

intfoo= 42; intbar= 1138; bar=bar?2; intbaz= 3; bar=baz+foo;

System.out.println("The result is : "+bar) ;

A. 42B. 45C. 1138 D. 2276 E. Answer not shown

Page 4

12. (2 points) What result is printed by this block of code? Answers within a small

delta from the true answer are considered true. inta= 42; intb= 10; doublek=a%b+ 1;

System.out.println("The result is : "+k) ;

A. 1 B. 2C. 3D. There is an error E. Answer not shown

13. (2 points) What result is printed by this block of code? Answers within a small

delta from the true answer are considered true. intr= 9; doubles= 3.2; doublet= 4.0; doubleu=s+r/t;

System.out.println("The result is : "+u) ;

A. 5 B. 5.2C. 5.45D. There is an error E. Answer not shown

14. (2 points) What result is printed by this block of code? Answers within a small

delta from the true answer are considered true. doublea= 9.0 intb= 4; intc=a/b;

System.out.println("The result is : "+ (c+ 1) ) ;

A. 2 B. 3 C. 3.25D. There is an errorE. Answer not shown

15. (2 points) What result is printed by this block of code? Answers within a small

delta from the true answer are considered true. doublea= 36.3; intb= 93; b= (int)a;

System.out.println("The result is : "+b/ 3) ;

A. 12B. 12.1 C. 31 D. There is an error E. Answer not shown

Page 5

16. (2 points) What result is printed by this block of code? Answers within a small

delta from the true answer are considered true. intm= 29; intn= 3; doublep= 2.7; doubleq=p+m/n;

System.out.println("The result is : "+q) ;

A. 11 B. 12.36666 C. 12.7 D. There is an errorE. Answer not shown

Page 6

Part III. Conditionals

17. (3 points) What result is printed by this block of code?

intn= 21; i f(n>16) i f(n>32)

System.out.println(n+ 5) ;

else

System.out.println(n/ 3) ;

else i f(n<-10)

System.out.println(a?2) ;

else

System.out.println(a-3) ;

A. 7 B. 18 C. 26D. There is an errorE. Answer not shown

18. (3 points) What result is printed by this block of code?

intprice= 1138; i f(price>= 1000) price+=price/ 10; else i f(price>= 100) price+=price/ 20; else price+=price/ 100;

System.out.println(price) ;

A. 1149 B. 1194C. 1251D. There is an error E. Answer not shown

Page 7

19. (3 points) What result is printed by this block of code?

intk= 6; booleanflag= ((k% 2) == 1) ; i f(flag) i f(k== 7)

System.out.println(k) ;

else

System.out.println(k?3) ;

else i f(k<-2)

System.out.println(k-5) ;

A. 1 B. 6 C. 18 D. There is an errorE. Answer not shown

20. (3 points) What result is printed by this block of code?

inta= 43; i f(a>67)

System.out.println(a-2) ;

else

System.out.println(a/2) ;

A. 21B. 21.5 C. 41 D. There is an error E. Answer not shown

Page 8

21. (3 points) What result is printed by this block of code?

doubleval= 16.0; i f(val<10.0) i f(val<17.0 )

System.out.println('A') ;

else

System.out.println('B') ;

else i f(val<= 2.0)

System.out.println('C') ;

quotesdbs_dbs2.pdfusesText_4
[PDF] computer science curriculum for elementary school

[PDF] computer science curriculum pdf

[PDF] computer science project topics on database

[PDF] computer science technical writing example

[PDF] computer science write up

[PDF] computer science writing assignment

[PDF] computer script example

[PDF] computer training institute prospectus pdf

[PDF] computer troubleshooting pdf

[PDF] computer troubleshooting questions and answers pdf

[PDF] computer use in schools

[PDF] computer vision algorithms and applications 2nd edition

[PDF] computer vision algorithms and applications pdf github

[PDF] computer vision: algorithms and applications citation

[PDF] computer vision: models