jagomart
digital resources
picture1_Python Pdf 183215 | Quiz1 Item Download 2023-01-31 17-13-17


 154x       Filetype PDF       File size 0.06 MB       Source: db.cs.pitt.edu


File: Python Pdf 183215 | Quiz1 Item Download 2023-01-31 17-13-17
cs0008 introduction to computer programming with python spring 2019 department of computer science university of pittsburgh dr constantinos costa costa c cs pitt edu quiz01 monday feb10 2019 your name ...

icon picture PDF Filetype PDF | Posted on 31 Jan 2023 | 2 years ago
Partial capture of text on file.
                 CS0008: Introduction to Computer Programming with Python (Spring 2019)
                                Department of Computer Science, University of Pittsburgh
                                        Dr. Constantinos Costa (costa.c@cs.pitt.edu)
                                        Quiz01–Monday,Feb10,2019
                   Your name: ANSWER                                   Email:
                                                  Instructions
             • Please write your name and your email on this booklet now
             • This is a closed-book test. No books, notes or other external material or electronic devices are allowed. The
                standard academic honesty policies apply.
             • There are 6 questions on the test for a total of 100 points.
             • Considering the multiple-choice questions, please read the question and all the suggested answers carefully
                before deciding your answer. All questions have a single correct answer.
             • Feel free to use the white space in this booklet for your notes.
             • Youmustuseapentowriteyouranswersinthisbooklet.
             • Youmustreturnthis booklet in order for your exam to be graded and you to pass the class.
             • Youhaveexactly 25 minutes to complete the test. Good luck!
                                       Questions    Points Achieved  MaxPoints
                                          1–6                            100
                                         Total                           100
                                     ExamTotal                          100
                                                          1
                    1 [15points] Which of the following commands is correct?
                        A. First Name = Costas
                        B. 1Name=Costas
                        C. Name1=Costas
                        D. Name%=Costas
                        ANSWER:C
                    2 [15points] How many different values can we represent with a group of 4 bits?
                        A. 15
                        B. 16
                        C. 31
                        D. 32
                        ANSWER:B
                    3 [20points] What will be printed on the screen when the following loop is executed?
                        counter = 0
                        while counter <= 10:
                            counter = counter + 2
                             if  (counter % 2 == 0):
                                 print(counter, end = ’ ’)
                        A. 0246810
                        B. 24681012
                        C. Nothing.
                        D. 246810
                        ANSWER:B
                    4 [20points] How many times will the following loop repeat?
                        counter = 0
                        while counter < 10:
                            counter = counter - 1
                        A. 9
                        B. 10
                        C. 11
                        D. Infinite times. It will never end.
                        ANSWER:D
                                                                                    2
       5 [15points] The -= operator is an example of one:
         A. Priming Read
         B. Pretest
         C. AugmentedAssignment
        D. Nested Loop
        ANSWER:C
       6 [15 points] Short notes placed in different parts of a program explaining how those parts of the program
        work:
         A. Operands
         B. Algorithm
         C. Comments
        D. Logic Error
        ANSWER:C
         Congratulations - you finished the test!
                             3
The words contained in this file might help you see if this file matches what you are looking for:

...Cs introduction to computer programming with python spring department of science university pittsburgh dr constantinos costa c pitt edu quiz monday feb your name answer email instructions please write and on this booklet now is a closed book test no books notes or other external material electronic devices are allowed the standard academic honesty policies apply there questions for total points considering multiple choice read question all suggested answers carefully before deciding have single correct feel free use white space in youmustuseapentowriteyouranswersinthisbooklet youmustreturnthis order exam be graded you pass class youhaveexactly minutes complete good luck achieved maxpoints examtotal which following commands first costas b d how many different values can we represent group bits what will printed screen when loop executed counter while...

no reviews yet
Please Login to review.