Self-test Introduction to Programming

Similar documents
Programming and Software Development CTAG Alignments

TECHNOLOGY Computer Programming II Grade: 9-12 Standard 2: Technology and Society Interaction

Thomas Jefferson High School for Science and Technology Program of Studies Foundations of Computer Science. Unit of Study / Textbook Correlation

Computer Programming I & II*

Computing Concepts with Java Essentials

I PUC - Computer Science. Practical s Syllabus. Contents

AQA GCSE in Computer Science Computer Science Microsoft IT Academy Mapping

#820 Computer Programming 1A

Chapter 6: Programming Languages

Glossary of Object Oriented Terms

EMC Publishing. Ontario Curriculum Computer and Information Science Grade 11

KITES TECHNOLOGY COURSE MODULE (C, C++, DS)

Java the UML Way: Integrating Object-Oriented Design and Programming

Java Application Developer Certificate Program Competencies

CS 141: Introduction to (Java) Programming: Exam 1 Jenny Orr Willamette University Fall 2013

Computer Programming I

Computer Programming I

RARITAN VALLEY COMMUNITY COLLEGE ACADEMIC COURSE OUTLINE. CISY 105 Foundations of Computer Science

Java 6 'th. Concepts INTERNATIONAL STUDENT VERSION. edition

High-Level Programming Languages. Nell Dale & John Lewis (adaptation by Michael Goldwasser)

Java (12 Weeks) Introduction to Java Programming Language

WESTMORELAND COUNTY PUBLIC SCHOOLS Integrated Instructional Pacing Guide and Checklist Computer Math

Instruction Set Architecture (ISA)

Stage 5 Information and Software Technology

ARIZONA CTE CAREER PREPARATION STANDARDS & MEASUREMENT CRITERIA SOFTWARE DEVELOPMENT,

Curriculum Map. Discipline: Computer Science Course: C++

PART-A Questions. 2. How does an enumerated statement differ from a typedef statement?

CHAPTER 1 ENGINEERING PROBLEM SOLVING. Copyright 2013 Pearson Education, Inc.

PROBLEM SOLVING SEVENTH EDITION WALTER SAVITCH UNIVERSITY OF CALIFORNIA, SAN DIEGO CONTRIBUTOR KENRICK MOCK UNIVERSITY OF ALASKA, ANCHORAGE PEARSON

Chapter 5 Names, Bindings, Type Checking, and Scopes

Chapter 13 Computer Programs and Programming Languages. Discovering Computers Your Interactive Guide to the Digital World

ARIZONA CTE CAREER PREPARATION STANDARDS & MEASUREMENT CRITERIA SOFTWARE DEVELOPMENT,

Introduction to Java

Topics. Introduction. Java History CS 146. Introduction to Programming and Algorithms Module 1. Module Objectives

Recovering Business Rules from Legacy Source Code for System Modernization

Sources: On the Web: Slides will be available on:

Fundamentals of Java Programming

CS 111 Classes I 1. Software Organization View to this point:

Course MS10975A Introduction to Programming. Length: 5 Days

Computer Science III Advanced Placement G/T [AP Computer Science A] Syllabus

AP Computer Science A - Syllabus Overview of AP Computer Science A Computer Facilities

Moving from CS 61A Scheme to CS 61B Java

Course Information Course Number: IWT 1229 Course Name: Web Development and Design Foundation

COWLEY COLLEGE & Area Vocational Technical School

Object Oriented Software Design

Basic Programming and PC Skills: Basic Programming and PC Skills:

Object Oriented Software Design

Chapter 1. Dr. Chris Irwin Davis Phone: (972) Office: ECSS CS-4337 Organization of Programming Languages

QUIZ-II QUIZ-II. Chapter 5: Control Structures II (Repetition) Objectives. Objectives (cont d.) 20/11/2015. EEE 117 Computer Programming Fall

Course Structure of Three Year Degree B.A Programme in Computer Application under Semester System of Dibrugarh University (General Programme)

An Introduction to Assembly Programming with the ARM 32-bit Processor Family

Lecture 1: Introduction

Cobol. By: Steven Conner. COBOL, COmmon Business Oriented Language, one of the. oldest programming languages, was designed in the last six

Figure 1: Graphical example of a mergesort 1.

CSC Software II: Principles of Programming Languages

Domains and Competencies

VIRTUAL LABORATORY: MULTI-STYLE CODE EDITOR

Computers. An Introduction to Programming with Python. Programming Languages. Programs and Programming. CCHSG Visit June Dr.-Ing.

Chapter 12 Programming Concepts and Languages

COURSE SYLLABUS EDG 6931: Designing Integrated Media Environments 2 Educational Technology Program University of Florida

McGraw-Hill The McGraw-Hill Companies, Inc.,

The Elective Part of the NSS ICT Curriculum D. Software Development

Lewis, Loftus, and Cocking. Java Software Solutions for AP Computer Science 3rd Edition. Boston, Mass. Addison-Wesley, 2011.

C Programming. for Embedded Microcontrollers. Warwick A. Smith. Postbus 11. Elektor International Media BV. 6114ZG Susteren The Netherlands

The Sun Certified Associate for the Java Platform, Standard Edition, Exam Version 1.0

Object-Oriented Design Lecture 4 CSU 370 Fall 2007 (Pucella) Tuesday, Sep 18, 2007

Informatica e Sistemi in Tempo Reale

Symbol Tables. Introduction

Summit Public Schools Summit, New Jersey Grade Level / Content Area: Mathematics Length of Course: 1 Academic Year Curriculum: AP Computer Science A

Embedded Systems. Review of ANSI C Topics. A Review of ANSI C and Considerations for Embedded C Programming. Basic features of C

THE OPEN UNIVERSITY OF TANZANIA

1/20/2016 INTRODUCTION

Programming Language Pragmatics

Semantic Analysis: Types and Type Checking

ADVANCED SCHOOL OF SYSTEMS AND DATA STUDIES (ASSDAS) PROGRAM: CTech in Computer Science

Fundamentals of Programming and Software Development Lesson Objectives

COMPUTER SCIENCE (5651) Test at a Glance

Java Basics: Data Types, Variables, and Loops

River Dell Regional School District. Computer Programming with Python Curriculum

Management Information Systems 260 Web Programming Fall 2006 (CRN: 42459)

Database Programming with PL/SQL: Learning Objectives

Some programming experience in a high-level structured programming language is recommended.

Computer Science 217

JavaScript: Control Statements I

We will learn the Python programming language. Why? Because it is easy to learn and many people write programs in Python so we can share.

Chapter 2: Elements of Java

6.170 Tutorial 3 - Ruby Basics

Java Interview Questions and Answers

Chapter 1 Fundamentals of Java Programming

COURSE CSE1010: COMPUTER SCIENCE 1. Prerequisite:

Charles Dierbach. Wiley

BUSINESS RULES CONCEPTS... 2 BUSINESS RULE ENGINE ARCHITECTURE By using the RETE Algorithm Benefits of RETE Algorithm...

C++FA 5.1 PRACTICE MID-TERM EXAM

Android Application Development Course Program

PROBLEMS (Cap. 4 - Istruzioni macchina)

Programming and Software Development (PSD)

Transcription:

Self-test Introduction to Programming Document: e0824test.fm 22/01/2013 ABIS Training & Consulting P.O. Box 220 B-3000 Leuven Belgium TRAINING & CONSULTING

INTRODUCTION TO THE SELF-TEST INTRODUCTION TO PROGRAMMING This test consists of multiple-choice questions. With some questions, the correct answer contains several alternatives (as indicated). Write down your answer(s) and compare with the given solutions. 22/01/2013 Self-test Introduction to Programming 2

QUESTIONS SELF-TEST INTRODUCTION TO PROGRAMMING 1. Which of the following are object oriented languages? [3 answers] [_] [a] [_] [b] Java Cobol [_] [c] C# [_] [d] [_] [e] C++ C 2. In programming, a series of logically ordered steps that lead to a required result is called O (a) a compiler O (b) a program O (c) a data structure O (d) an algorithm 3. What kind of languages are Cobol, Java, C# and Basic? O (a) 1GL O (b) 2GL O (c) 3GL O (d) 4GL 4. Which is a typical language for programming inside Web pages? O (a) JavaScript O (b) HTML O (c) Cobol O (d) XML 5. Which of the following converts source code into machine code at each runtime? O (a) linker O (b) compiler O (c) interpreter O (d) object encoder 22/01/2013 Self-test Introduction to Programming 3

6. Which of the following commonly happens to variables (in most languages)? [3 answers] [_] [a] [_] [b] [_] [c] [_] [d] [_] [e] declaration assignment expansion initialization derivation 7. Assuming that + and * are arithmetic operators (addition and multiplication), to what does the expression 2 + 4 * 5 + 1 evaluate? O (a) 36 O (b) 31 O (c) 26 O (d) 23 8. Assuming that = and / are the assignment and division operators, what will be the outcome of the following code in most programming languages: x = 3 y = 7 z = x / (y-7) O (a) runtime error O (b) syntax error O (c) logic error O (d) compiler error 9. Today is Tuesday. It is raining. Which of the following is True? [2 answers] [_] [a] [_] [b] [_] [c] [_] [d] Raining OR Tuesday Raining XOR Tuesday Raining AND Tuesday NOT (Raining OR Tuesday) 22/01/2013 Self-test Introduction to Programming 4

10. Which is a typical kind of variable for keeping an ordered set of values in memory, that can be referenced as e.g. A[3], A[n+1] etc.? O (a) file O (b) array O (c) string O (d) container 11. AND, OR and NOT are logical operators. What data type is expected for their operands? O (a) integer O (b) boolean O (c) decimal O (d) character 12. In many programming languages, otherwise and else are part of which building block? O (a) loop O (b) counter O (c) selection O (d) list structure 13. What building block does the following Nassi-Shneiderman diagram represent? O (a) sequence O (b) selection O (c) iteration O (d) function 22/01/2013 Self-test Introduction to Programming 5

14. Structurally the following is a typical example of? O (a) tracing O (b) recursion O (c) hatching O (d) nesting 15. Which is a working solution for producing the following output: 1 4 9 16 25? A B C D N = 0 N = 0 N = 1 N = 1 while N < 5 while N < 5 while N < = 5 until N = 5 print N * N N = N + 1 N = N + 1 N = N + 1 N = N + 1 print N * N print N * N print N * N O (a) A O (b) B O (c) C O (d) D 22/01/2013 Self-test Introduction to Programming 6

16. Assume a random population. You want to send a birthday card to all women that have a birthday next week. Which is a correct and probably most efficient algorithm? O (a) A O (b) B O (c) C O (d) D 17. The following is a typical pattern for reading and processing data from a sequential file. What is hidden behind the question marks? [2 answers] [_] [a] [_] [b] [_] [c] [_] [d] while not EOF if count = end until EOF count until end 18. (In most programming languages), which statement would be used in the definition of a function, to indicate the resulting value when this function is called? O (a) result = x O (b) reply x O (c) send x O (d) return x 22/01/2013 Self-test Introduction to Programming 7

19. Tracing, stepping and breakpoint are typical terms belonging to which programming development aspect? O (a) debugging O (b) compilation O (c) version control O (d) project planning 20. Which term describes the mechanism of a function calling itself? O (a) encapsulation O (b) inheritance O (c) recursion O (d) polymorphism 22/01/2013 Self-test Introduction to Programming 8

EVALUATION. Here are the correct answers to all questions: 1. a c d 2. d 3. c 4. a 5. c 6. a b d 7. d 8. a 9. a c 10. b 11. b 12. c 13. c 14. d 15. b 16. a 17. a c 18. d 19. a 20. c Give 1 point per correctly answered question, also for questions with multiple correct answers. If your score is more than 80%, you do not have to follow the course Introduction to programming. When you have a score between 50% and 80%, following the course Introduction to programming can improve your knowledge. When your score is less than 50%, we strongly suggest you follow this course Introduction to programming. 22/01/2013 Self-test Introduction to Programming 9