wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Principles of Programming Languages

Total questions: 100

Worksheet time: 50mins

Name
Class
Date
1.

(a)   is the systemic operations to the development operations, maintenance and retirement of software.

2.

There are two types of languages used within computer systems:

a)

High Level

b)

Low Level

c)

Mid Level

d)

Level 42

3.

A high level programming language is...

a)

very efficient on the processor

b)

easy for humans to read

c)

interpreted or compiled

d)

multiple instructions per statement

e)

assembled

4.

A low level programming language is...

a)

very efficient on the processor

b)

easy for humans to read

c)

interpreted or compiled

d)

multiple instructions per statement

e)

assembled

5.

High-level languages are faster to write than in assembly or machine language but they are harder to read and understand.

a)

True

b)

False

6.

The process of developing a sequence of instructions to enable a computer to accomplish a particular task.

a)

Iterative Algorithm

b)

Assembly Languages

c)

Computer Programming

7.

formula which gives instructions for the computer to perform a specific task

a)

Bit Depth

b)

Vector Graphic

c)

Bit-Mapped Graphic

d)

Algorithm

8.

graphic representation of the step-by-step instructions of how the computer processes data

a)

Linear Algorithm

b)

flow chart

c)

Iterative Algorithm

d)

Software Development

9.

process of computer programming, documenting, testing and big fixing through successive phases in an orderly way

a)

Linear Algorithm

b)

flow chart

c)

Iterative Algorithm

d)

Software Development

10.

Flow Charts help programmers pay attention to the logic of solution to the problem.

a)

True

b)

False

11.

Which generation?

a)

Machine Code - Low

b)

Assembly Code - Low

c)

High Level

12.

Computers must translate everything into binary

a)

True

b)

False

13.

Assembly language is better than machine code because...

a)

it is easier for humans to read

b)

it is easier to remember the instructions

c)

a person is less likely to make mistakes in assembly language

d)

it is written using English-like keywords

14.
Resolving errors in a program is known as...
a)
Debugging
b)
Refixing
c)
Error Checking
d)
Problem Solving
15.
Which of the following commands would not be found in an assembly language?
a)
LOAD
b)
STORE
c)
ADD
d)
SORT
16.
Which of the following commands would be used to end a program written in assembly language?
a)
STOP
b)
HALT
c)
END
d)
FINISH
17.
The 3 main types of translators are...
a)
Assemblers, Compilers & Interpreters 
b)
Assemblers, Compilers & Converters 
c)
Assemblers, Scripters  & Interpreters 
d)
Converters, Scripters & Interpreters 
18.

The analysis phase ____________________

a)

Determines what the program will do

b)

Determines how the program will work

c)

Determines whether or not the program works

d)

Adds new features to the delivered program

19.

The operations and maintenance phase ____________________

a)

Determines what the program will do

b)

Determines how the program will work

c)

Determines whether or not the program works

d)

Adds new features to the delivered program

20.

The implementation phase ____________________

a)

Determines whether or not the program is feasible

b)

Determines which classes are needed and what they will do

c)

Determines whether or not the program works

d)

Implements the program code

21.

The design phase ____________________

a)

Determines whether or not the program is feasible

b)

Determines which classes are needed and what they will do

c)

Determines whether or not the program works

d)

Implements the program code

22.

SDLC means

a)

Software Development life cycle

b)

System development life cycle

c)

Simple development learning cycle

d)

Non of the above

23.

Software engineering involves

a)

Using engineering tools and techniques in software development

b)

Using scientific way to software development

c)

Both A and B

d)

Non of the above

24.

Risk Assessment is part of software engineering

a)

True

b)

False

c)

Can't say

d)

Non of the above

25.

ERD means

a)

Entity relationships diagrams

b)

Every real dialog

c)

Engineering requirements diagrams

d)

Non of the above

26.

The reason for software bugs and failures is due to

a)

Software companies

b)

Software Developers

c)

Both Software companies and Developers

d)

Software

27.

Someone who solves complex problems with mathematical and scientific application is Called

a)

BCA students

b)

Donald Trump

c)

Engineer

d)

Sportsmen

28.

What is software quality?

a)

Satisfying client needs

b)

Proving Best Lunch

c)

Conducting Semester Exam

d)

Reopening university And Colleges

29.

What do you understand by software?

a)

New Movie

b)

Set of sports items

c)

Set of food items

d)

Set of programs

30.

First step in Requirement Engineering

a)

Gathering Requirement

b)

Feasibility Study

c)

Elicitation

d)

requirement analysis

31.

Expand SRS

a)

System Requirement Specification

b)

System Requirement Software

c)

Software Requirement Specification

d)

Software Requesting Service

32.

Computer Works on which cycle?

a)

Process,Output,Input

b)

Output, Process Input

c)

Input, Process,Output

d)

None of the Above.

33.

CPU is .........................................of a computer.

a)

Heart

b)

Brain

c)

BOth A & B

d)

None of the Above

34.

How many types of computer generation ?

a)

3

b)

5

c)

6

d)

4

35.

What is the Brain of Computer?

a)

UPS

b)

CPU

c)

SMPS

d)

RAM

36.
Computers are made up of ________ and ________?
a)
Hardware and Software
b)
Bits and Pieces
c)
Inputs and Outputs
d)
Plastic and Metal 
37.

whose person is this picture

(a)  

38.

please lisyen audio for question

a)

printer

b)

plotter

c)

monitor

d)

keyboard

39.

What is the name of this device?

a)

Scanner

b)

MICR

c)

Bar code reader

d)

Zip Code reader

40.

Programmers write programs to satisfy the needs of others called

a)

Coders

b)

End Users

c)

Program Developers

41.

A phase in the Program Development Cycle that involves the consideration of what the end users want or need.

a)

Understanding the Problem

b)

Planning the Logic

c)

Coding the Program

42.

A phase in the Program Development Cycle that involves the creation of Source Codes

a)

Understanding the Problem

b)

Planning the Logic

c)

Coding the Program

43.

What part of an experiment contains the data tables and graphs?

a)

Analysis

b)

Conclusion

c)

Hypothesis

d)

Materials

44.

Using one of these will help your group decide on which model to build:

a)

Design Brief

b)

Design Evaluator

c)

Decision Matrix

45.

If I find flaws in my solution I should....

a)

Create a technical drawing instead

b)

Be formal and perfect

c)

go back and make modifications before moving forward

46.

Why are there arrows going in all directions here?

a)

To show that many ideas come from everyone

b)

To show that the chart is incomplete

c)

To show that you can go back to previous steps if needed

47.

In software design three levels of design exist, which are-

a)

External Design

b)

Architectural Design

c)

Detailed Design

d)

Program Design

48.

Software can be described as Fit for Purpose if it:

a)

Fulfils the requirements set out during the Analysis stage

b)

Fulfils the requirements set out during the Design stage

c)

Fulfils the requirements set out during the Implementation stage

d)

Fulfils the requirements set out during the Testing stage

49.

A syntax error is caused by:

a)

A large font size in your code

b)

A typing error in your code

c)

Using internal commentary in your code

d)

Using indentation in your code

50.

Which system modelling tool best describes the hierarchy of subroutines and the sequence in which they are executed?

a)

Dataflow diagram

b)

System flowcharts

c)

IPO diagrams

d)

Structure charts

51.

What is shown on context diagrams?

a)

The movement of data between processes.

b)

The movement of data into and information out of a system.

c)

The order in which processes occur in a system.

d)

The nature of data structures used by processes within the system.

52.

What form of documentation/diagram is the most appropriate for showing the schedule and timelines for activity in a project?

a)

Gantt chart

b)

Storyboard

c)

Data flow diagram

d)

System flowchart

53.

The command STOP is used in a software language as a debugging tool to halt a program. The program cannot resume until the debugging command RUN is issued.

a)

Program trace

b)

Breakpoint

c)

Stub

d)

Value watching

54.
Pseudocode should be generic -
It should not use any specific programming language
a)
True
b)
False
55.
What does the word Pseudo mean?
a)
False/Fake
b)
Unfinished
56.

What symbol is shown here

a)

Process

b)

Decision

c)

Terminator

d)

Input/Output

57.
What's missing from this part of a flowchart?
a)
An Arrow
b)
A Line
c)
A Square
d)
A Diamond
58.

If

a)

To provide a response if a statement is not met

b)

To provide a response if a statement is met

c)

A loop with a condition set at the start

d)

Used in a question as part of the decision process

59.

Else

a)

To provide a response if a statement is not met

b)

To provide a response if a statement is met

c)

A loop with a condition set at the start

d)

Used in a question as part of the decision process

60.

Then

a)

To provide a response if a statement is not met

b)

To provide a response if a statement is met

c)

A loop with a condition set at the start

d)

Used in a question as part of the decision process

61.
What is the Output if the user enters:
Yes
a)
Leave umbrella at home
b)
Take an umbrella
62.

For

a)

Used to create a counting loop

b)

To display a response on screen to the user

c)

A loop with a condition set at the start

d)

Requires an entry from the user in response to a question

63.

Print

a)

Used to create a counting loop

b)

To display a response on screen to the user

c)

A loop with a condition set at the start

d)

Requires an entry from the user in response to a question

64.

While

a)

To provide a response if a statement is not met

b)

To provide a response if a statement is met

c)

A loop with a condition set at the start

d)

Used in a question as part of the decision process

65.
A flow chart should be drawn from the ______ to the ______ of the page
a)
top to the bottom
b)
left to the right
c)
right to the left
d)
bottom to the top
66.

A decision tree uses _________ to calculate likely outcomes.

a)

stakeholder information

b)

facts and statistics

c)

estimates and probabilities

d)

shareholder data

67.

BENEFITS OF USING DECISION TREES include:

a)

Uses quantitative data only – ignores qualitative aspects of decisions

b)

It is based on assumptions and estimates

c)

Choices are set out in a logical way

d)

Assignment of probabilities and expected values prone to bias

68.

DRAWBACKS OF USING DECISION TREES include:

a)

Probabilities are just estimates – always prone to error

b)

Choices are set out in a logical way

c)

Potential options & choices are considered at the same time

d)

Use of probabilities enables the “risk” of the options to be addressed

69.

When a sub-node splits into further sub-nodes, then it is called

a)

Decision Node

b)

Splitting

c)

Pruning

d)

Terminal Node

70.
What is the FIRST step of the decision-making process?
a)
make a plan! 
b)
make a decision 
c)
evaluate choices 
d)
determine need or want 
71.
Last step in the decision-making process is...
a)
gather information 
b)
make a decision 
c)
plan how to reach your goal 
d)
evaluate your choices
72.
Which statement below is NOT correct?
a)
Decision trees are only useful if the choices at each decision point are binary
b)
Both decision trees and tables can have redundancy, if not carefully designed
c)
Both decision trees and tables are good for modelling complex logic
73.

(a)   can be used to specify complex decision logic in a high level software specification?

74.

The 2 types of Software are:

a)

Operating System

b)

System

c)

Business

d)

Application

75.

Types of application software:

a)

Business

b)

Operating System

c)

Robotics

d)

Educational

e)

Computer Games and Environment

76.
An advantage of programming in Low Level is
a)
Easier for us to understand
b)
Easier to debug
c)
Programs require less file space
77.
A disadvantage of programming in Low Level is
a)
No technical skill is required
b)
Needs to be translated before it can be executed
c)
Difficult for humans to debug
78.

Are closer to human language. Like oracle, VB, VC++, SQL etc. Most of them are used to access database, they allow the programmer to define “what” is required without telling the computer and “How” to implement it.

a)

Machine

b)

Assembly

c)

High Level

d)

4GL

79.

Programming Methods- the use for programming (a)   it depends upon the size and the complexity of the program. When a program beyond a particular size and complexity, a traditional methodology may fail to give efficient results and in the case one has to either use a new method which will satisfy the need.

80.

The programmers may use them in other parts of the programs knowing that only their abstract properties without concern for the details of their implementation

a)

Simplicity, Clarity and Unity

b)

Orthogonality

c)

Naturalness for Application

d)

Support for Abstraction

81.

A program may be tested by executing it with text input data and checking the output results against the specifications. For verification and troubleshoot the programs.

a)

Ease of Program Verification

b)

Programming Environment

c)

Portability of Program

d)

Cost

82.

Analyse or Defined the Problem – analyse problem, consists of reviewing program specifications, meeting with the analysts and users; and identifying program components.

a)

TRUE

b)

FALSE

83.

A (a)   is an artificial language designed to express computations that can be performed by a machine, particularly computer.

84.

Why study programming language?

a)

To improve your understanding of the language you are using

b)

To increase your vocabulary of useful programming constructs

c)

To make is easier to learn a new language

d)

To make it easier to design a new language

85.

Abstraction is:

a)

adding to a problem

b)

filtering out all irrelevant characteristics and unnecessary details

c)

finding characteristics

d)

looking for similarities

86.

Select all that applies in Abstraction?

a)

is a problem solving tool

b)

removes unimportant information

c)

adds important information

d)

simplifies a situation

e)

focuses on what is important

87.
Breaking a complex problem down into smaller problems and solving each one individually.
a)
Decomposition
b)
Abstraction
c)
Programming
d)
Algorithmic Thinking
88.

The widely used abstraction mechanisms in software design are-

a)

Functional Abstraction

b)

Data Abstraction

c)

Control Abstraction

d)

Procedure Abstraction

89.

Which one is not the benefit from using modularization ?

a)

Ease of Understanding

b)

Reusable of code

c)

Increasing algorithm performance

d)

Elimination of redundancy

90.

Which one of cohesion level that has the strongest internal strength of a module ?

a)

Logical cohesion

b)

Temporal cohesion

c)

Sequential cohesion

d)

Functional cohesion

91.

In which one of the following types of coupling, complete data structures are passed from one module to another?

a)

Control Coupling

b)

Stamp Coupling

c)

External Coupling

d)

Content Coupling

92.

Which one of the following is the correct ordering of the coupling of modules from strongest (least desirable) to weakest (most desirable)?

a)

content, common, control, stamp, data

b)

common, content, control, stamp, data

c)

content, data, common ,stamp, common

d)

data, control, common, stamp, content

93.

Consider the sentence: A book has one or more pages. Which of the following best characterizes the relationship between the Book class and the Page class?

a)

Inheritance

b)

Specialization

c)

Association

d)

Composition

94.

What is Top Down Design?

a)

start function at the top, break down into parts, definitions at the bottom

b)

Put the steps at the top and put the explanation in layers at the bottom

c)

Write a 10 page story about how to run the code and break it into chapters to help you organize.

95.

Stepwise refinement is:

a)

Identifying the main steps needed in your program

b)

Breaking down each step until it becomes easy to code

96.

Which of these is not a reason for breaking problems down into modules

a)

Reusability

b)

Easier to test and debug

c)

Allows only one programmer to work on a solution

d)

Individual modules are easier to maintain.

97.

A graphical representation of the modular structure of a solution is a

a)

Structure chart

b)

Modular diagram

c)

Top down design

d)

Identfier table

98.

What is a software design strategy?

a)

A graphical or textual description of the software

b)

A fundamental idea that can be applied to designing a system.

c)

A systematic approach for producing a design.

d)

An overall plan and direction for developing a design.

99.

What is “white box” testing?

a)

Unit testing

b)

Integration testing

c)

Testing with knowledge of the system internals

d)

Testing without knowledge of the software internals

100.

What is “black box” testing?

a)

System testing

b)

Integration testing

c)

Testing with knowledge of the system internals

d)

Testing without knowledge of the software internals