0% found this document useful (0 votes)
27 views5 pages

Basic Programming Exam

The document presents a test of 15 questions on basic programming concepts such as algorithms, data types, control statements, programming paradigms, and data structures.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views5 pages

Basic Programming Exam

The document presents a test of 15 questions on basic programming concepts such as algorithms, data types, control statements, programming paradigms, and data structures.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

January 22, 2013 Basci Programmn

i gExam

Basic programming

Question 1:

What is an algorithm?

a) A set of well-defined, ordered instructions or rules,


finites that allow an activity to be carried out through successive steps that
do not raise doubts for those who must perform that activity

b) It is an equality between two algebraic expressions, called


members, in which known values or data appear, and unknown ones
or unknowns, related through operations

c) It is a relationship of variables that can be quantified to


calculate the value of others that are very difficult or impossible to calculate and that
provides a solution to a problem

d) The previous answers are not correct

Question 2:

What does EOF mean?

a) Empty or full

b) End of file

c) End of floop

d) The previous answers are not correct

Question 3:

What is the ASCII decimal code for 'new line' (line feed)?

a) 10

b) 13

c) 32

d) The previous answers are not correct

gplsi.dlsi.ua.es/proyectos/examinador/test.php?id=45&lang=en 1/5
January 22, 2013 Basci Programmn
i gExam

Question 4:

The number 1010 in binary is represented in decimal as

a) 8

b) 12

c) 16

d) The previous answers are not correct

Question 5:

if, else, for and while are

a) Data access functions

b) Control statements

c) Data types

d) The previous answers are not correct

Question 6:

In a weakly typed language

a) A value of one type can be treated as another type

b) A value of one type can never be treated as another type

c) A value of one type can always be treated as another type


that an explicit conversion is made

d) The previous answers are not correct

Question 7:

It is believed that the first high-level language was

Ada

b) C

c) Fortran
gplsi.dlsi.ua.es/projects/examinator/test.php?id=45&lang=en 2/5
22/01/13 Basci Programmn
i gExam

d) Java

Question 8:

A queue is

a) A data structure in which insertions are made by a


extreme and the extractions at the other end

b) A data structure in which insertions and extractions are


they are carried out from the same end

c) A data structure in which only operations can be performed


insertions, but never extractions

d) The previous answers are not correct

Question 9:

Programming can be defined as...

the process of designing, coding, debugging, and maintaining the code


source of computer programs

b) the execution of computer programs from the command line

c) the installation of programs on operating systems from the command line


of commands

d) The previous answers are not correct

Question 10:

int, char, float, string and boolean are

a) Data access functions

b) Access data instructions

c) Control statements

d) Data types

Question 11:
gplsi.dlsi.ua.es/projects/examinator/test.php?id=45&lang=en 3/5
January 22, 2013 Basci Programmn
i gExam

Assembly language is situated

a) Closer to machine language than to high-level languages

b) Closer to high-level languages than to machine language

c) It is not a programming language

d) The previous answers are not correct.

Question 12:

Given the following pseudocode, where read() allows the user


introduce an integer value, what will be the final value of the variable "i"?
i:=1;
read(n);
while i < n do begin
i := i + 1
end;

a) 1 if the entered value is equal to or less than 0; the entered value


less one in any other case

b) 1 if the entered value is equal to or less than 1; the entered value


in any other case

c) 1 if the entered value is equal to or less than 1; the entered value


plus one in any other case

d) The previous answers are not correct.

Question 13:

Imperative, declarative, and object-oriented are

a) Ways to compile the source code of a computer program

b) Ways to define the pseudocode of a computer program

c) Programming paradigms

d) The previous answers are not correct

Question 14:

A loop or cycle is
The provided text is a URL and does not contain content to translate. 4/5
22/01/13 Basci Programmn
i gExam

a) A statement that allows deciding whether to execute or not to execute a


only once an isolated block of code

b) A sentence that executes another sentence that in turn executes the


first sentence

c) A statement that allows executing an isolated block of code


several times until the condition is met (or is no longer met)
assigned to the loop

d) The previous answers are not correct

Question 15:

What is the decimal ASCII code for the uppercase letter A?

32

b) 65

97

d) 126

Correct exam StartDelete responses

The provided input is a URL and does not contain translatable text. 5/5

You might also like