Self-test Programming Fundamentals

Similar documents
Introduction to Programming Using Java (98-388)

1) What is the first step of the system development life cycle (SDLC)? A) Design B) Analysis C) Problem and Opportunity Identification D) Development


Programming for the Web with PHP

Self-test TSO/E REXX. Document: e0167test.fm 19/04/2012. ABIS Training & Consulting P.O. Box 220 B-3000 Leuven Belgium

Self-test Java Programming

Discover how to get up and running with the Java Development Environment and with the Eclipse IDE to create Java programs.

GO MOCK TEST GO MOCK TEST I

Appendix A: Objectives and Courseware Locations

Principles of Programming Languages. Lecture Outline

Chapter1 Overview of computers

Sri Vidya College of Engineering & Technology

UNIT 3

Theory of control structures

Com S 541. Programming Languages I

Year 12 Computer Science Learning Cycle 2 Overview

EDIABAS BEST/2 LANGUAGE DESCRIPTION. VERSION 6b. Electronic Diagnostic Basic System EDIABAS - BEST/2 LANGUAGE DESCRIPTION

Exam 1 Prep. Dr. Demetrios Glinos University of Central Florida. COP3330 Object Oriented Programming

CS201 - Introduction to Programming Glossary By

Al al-bayt University Prince Hussein Bin Abdullah College for Information Technology Computer Science Department

Object Oriented Programming with Java

Chapter 7. Expressions and Assignment Statements (updated edition 11) ISBN

Working with JavaScript

Absolute C++ Walter Savitch

Reviewing for the Midterm Covers chapters 1 to 5, 7 to 9. Instructor: Scott Kristjanson CMPT 125/125 SFU Burnaby, Fall 2013

CERTIFICATE IN WEB PROGRAMMING

Introduction to Visual Basic and Visual C++ Arithmetic Expression. Arithmetic Expression. Using Arithmetic Expression. Lesson 4.


The Java language has a wide variety of modifiers, including the following:

C++ (Non for C Programmer) (BT307) 40 Hours

Course Text. Course Description. Course Objectives. StraighterLine Introduction to Programming in C++

Chapter 7. Expressions and Assignment Statements ISBN

Indicate the answer choice that best completes the statement or answers the question. Enter the appropriate word(s) to complete the statement.

Java Primer 1: Types, Classes and Operators

Selenium with Java Syllabus

Short Notes of CS201

COURSE OUTCOMES OF M.Sc(IT)

NOTE: Answer ANY FOUR of the following 6 sections:

An overview about DroidBasic For Android

Chapter 7. Expressions and Assignment Statements

PLD Semester Exam Study Guide Dec. 2018

COMP 202 Java in one week

Weiss Chapter 1 terminology (parenthesized numbers are page numbers)

MATVEC: MATRIX-VECTOR COMPUTATION LANGUAGE REFERENCE MANUAL. John C. Murphy jcm2105 Programming Languages and Translators Professor Stephen Edwards

Computer Programming IA

JAVA CONCEPTS Early Objects

Darshan Institute of Engineering & Technology for Diploma Studies

CS 112 Introduction to Computing II. Wayne Snyder Computer Science Department Boston University

Java Software Solutions for AP Computer Science 3rd Edition, Lewis et al. 2011

JVA-103. Java Programming

COMP 202. Java in one week

MARS AREA SCHOOL DISTRICT Curriculum TECHNOLOGY EDUCATION

DEPARTMENT OF COMPUTER AND MATHEMATICAL SCIENCES UNIVERSITI TEKNOLOGI MARA CAWANGAN PULAU PINANG

COP 1220 Introduction to Programming in C++ Course Justification

Internet & World Wide Web How to Program, 5/e by Pearson Education, Inc. All Rights Reserved.

Course materials Reges, Stuart, and Stepp, Martin. Building Java Programs: A Back to Basics Approach. 2d ed. (Boston: Addison-Wesley, 2011).

COMP 202 Recursion. CONTENTS: Recursion. COMP Recursion 1

Chapter 1. Preliminaries

JavaScript I Language Basics

Expressions & Assignment Statements

(800) Toll Free (804) Fax Introduction to Java and Enterprise Java using Eclipse IDE Duration: 5 days

Expressions and Assignment Statements

Boca Raton Community High School AP Computer Science A - Syllabus 2009/10

Pace University. Fundamental Concepts of CS121 1

Chapter 2 Working with Data Types and Operators

Computer Programming C++ (wg) CCOs

An Introduction to Software Engineering. David Greenstein Monta Vista High School

CSE115 / CSE503 Introduction to Computer Science I Dr. Carl Alphonce 343 Davis Hall Office hours:

Object Orientated Analysis and Design. Benjamin Kenwright

Information Science 1

Information Science 1

CONTENTS. PART 1 Structured Programming 1. 1 Getting started 3. 2 Basic programming elements 17

Computer Components. Software{ User Programs. Operating System. Hardware

CSE 452: Programming Languages. Outline of Today s Lecture. Expressions. Expressions and Control Flow

CS313D: ADVANCED PROGRAMMING LANGUAGE

FRAC: Language Reference Manual

ARIZONA CTE CAREER PREPARATION STANDARDS & MEASUREMENT CRITERIA SOFTWARE DEVELOPMENT,

Programming Fundamentals (CS 302 ) Dr. Ihsan Ullah. Lecturer Department of Computer Science & IT University of Balochistan

Introduction to Programming Microsoft.NET Applications with Visual Studio 2008 (C#)

Unit 3. Operators. School of Science and Technology INTRODUCTION

SAMPLE CURRICULUM GUIDE June 2014

CHIL CSS HTML Integrated Language

AP Computer Science A Syllabus

PROGRAMMING FUNDAMENTALS

Curriculum Map Grade(s): Subject: AP Computer Science

Python The way of a program. Srinidhi H Asst Professor Dept of CSE, MSRIT

Syllabus & Curriculum for Certificate Course in Java. CALL: , for Queries

COMS 469: Interactive Media II

Chapter 17. Fundamental Concepts Expressed in JavaScript

Web services (GSE NL)

Introduction to Computer Science Midterm 3 Fall, Points

[CHAPTER] 1 INTRODUCTION 1

Chapter 7:: Data Types. Mid-Term Test. Mid-Term Test (cont.) Administrative Notes

General Concepts. Abstraction Computational Paradigms Implementation Application Domains Influence on Success Influences on Design

age = 23 age = age + 1 data types Integers Floating-point numbers Strings Booleans loosely typed age = In my 20s

Simple Java Programming Constructs 4


6.096 Introduction to C++ January (IAP) 2009

Arrays: Higher Dimensional Arrays. CS0007: Introduction to Computer Programming

CSE 20. Lecture 4: Number System and Boolean Function. CSE 20: Lecture2

Transcription:

Self-test Programming Fundamentals Document: e0824test.fm 16 January 2018 ABIS Training & Consulting Diestsevest 32 / 4b B-3000 Leuven Belgium TRAINING & CONSULTING

INTRODUCTION TO THE SELF-TEST PROGRAMMING FUNDAMENTALS 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. 16/01/2018 Self-test Programming Fundamentals 2

QUESTIONS SELF-TEST PROGRAMMING FUNDAMENTALS 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 16/01/2018 Self-test Programming Fundamentals 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) 16/01/2018 Self-test Programming Fundamentals 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 16/01/2018 Self-test Programming Fundamentals 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 16/01/2018 Self-test Programming Fundamentals 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 16/01/2018 Self-test Programming Fundamentals 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 16/01/2018 Self-test Programming Fundamentals 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 Programming funcamentals. When you have a score between 50% and 80%, following the course Programming fundamentals can improve your knowledge. When your score is less than 50%, we strongly suggest you follow the course Programming fundamentals. 16/01/2018 Self-test Programming Fundamentals 9