Cobol 1
Cobol 1
Cobol 1
CONCURSO PBLICO
PRODAM - PROC. DE DADOS DO MUNIC. DE SAO PAULO
17-FEV-02
www.pciconcursos.com.br
17-fev-02 PRODAM - Proc. de Dados do Munic. de Sao Paulo Cargo 1: An Prog PL (Cobol-DB2)
Cod. 28 - COBOL II - 12 questes
COBOL II
D. 100000
.10. Qual das sentenas abaixo esta sintaticamente correta?
A. MULTIPLY QTY ROUNDED BY PRICE
B. MULTIPLY ROUNDING QTY TIMES PRICE
C. MULTIPLY QTY BY PRICE ROUNDED
D. ROUND (MULTIPLY) QTY BY PRICE
www.pciconcursos.com.br
17-fev-02 PRODAM - Proc. de Dados do Munic. de Sao Paulo Cargo 1: An Prog PL (Cobol-DB2)
CSP
C. 1
D. '2001-09-09'
www.pciconcursos.com.br
17-fev-02 PRODAM - Proc. de Dados do Munic. de Sao Paulo Cargo 1: An Prog PL (Cobol-DB2)
C. PROCSEQ specifies the name of a primary index that is used
to process the database named in the DBNAME.
D. PROCSEQ specifies the name of a first index that is used to
process the database named in the DBNAME.
.36. Applications are defined as a top-down structure of
processing logic blocks called processes and statement
groups. The top level in the structure is a sequence of one or
more processes called main processes. Each process and
statement group contains CSP/AD language processing
statements. According to the text, which is the correct answer?
A. Applications isn't defined as a Top-down structure structure.
B. Applications has not defined as a Top-down structure.
C. Applications are defined as a Top-down structure.
D. Applications have not as define as a Top-down structure.
.37. A process represents the input or output of a record or map.
It consists of processing statements before and after a process
option (type of I/O operation), and a process object (name of
the defined record structure or map that the process option
uses). A process is divided logically into the processing
statements that are to be run before and after the process
option is performed. Processes can be defined as main
processes of the application or invoked from other processes
or statement groups. According to the text, which is the correct
answer?
A. A process only has records and a map
B. A process has a name
C. A process represents the input and output of a record or map
D. A process doesn't have a Top-down structure
.38. A Package is a single, bound DBRM with optimized access
paths. Prior to DB2, the only option available for binding was
at the plan level. By using packages, the table access logic is
"packaged" at a lower level of granularity, at the Package or
program level. According to the text, what is the correct
definition of a Package?
A. A Package is a single, bound DBRM with an optimized access
path.
B. A Package is not a single, bound DBRM with an optimized
access path.
C. A Package is a record and bound DBRM with an optimized
access path
D. A Package is a table and bound DBRM with an optimized
access path
.39. A DBRM is nothing more than a module containing SQL
statements extracted from a source program by the DB2
precompiler. It is stored as a member of a partitioned dataset.
According to the text, what is the correct definition of a DBRM?
A. A DBRM is not a module containing SQL statements extracted
from a source program by the DB2 precompiler.
B. A DBRM is nothing more than a module containing SQL
statements extracted from a source program by the DB2
precompiler.
C. A DBRM is a module containing SQL statements extracted
from a source program by the DB2 precompiler.
D. A DBRM is more than a module containing SQL statements
extracted from a source program by the DB2 precompiler.
.40. A plan is an executable module containing the access path
logic produced by the DB2 optimizer. It can be composed of
one or more DBRM and Packages. According to the text,
which statement best defines a Plan?
A. A Plan can be composed of one DBRM.
B. A Plan is an executable module that contains the access path
logic.
C. A Plan does not contain access path logic.
D. A Plan can be composed of one or more DBRM.
GABARITO GABARITO
DECISO
PROVISRIO DEFINITIVO
B
B
B
B
C
C
D
D
D
D
B
B
A
A
C
C
C
C
C
C
D
D
C
C
B
B
D
D
A
A
B
B
C
C
A
A
D
D
D
D
C
C
B
B
C
C
B
B
INDEFERIDO
A
A
INDEFERIDO
C
C
D
D
B
B
A
A
D
D
B
B
B
B
A
A
D
D
B
B
C
C
C
C
A
A
B
B
B
B
FIM DO CADERNO
www.pciconcursos.com.br
17-fev-02 PRODAM - Proc. de Dados do Munic. de Sao Paulo Cargo 1: An Prog PL (Cobol-DB2)
QUESTO 03 - Um motorista deseja saber o consumo mdio de seu caminho. Para isso ele anota a
quantidade (litros) de diesel, o valor (em R$) que ele paga e a quantidade de quilmetros percorridos desde
a ltima vez que abasteceu o caminho. Escreva um algoritmo para solicitar o total de litros, a
quilometragem rodada e o valor pago em cada abastecimento e calcule o preo mdio pago por litro e o
consumo mdio do caminho nos ltimos 12 abastecimentos.
QUESTO 04 - Uma fbrica deseja aplicar um aumento para seus produtos. Escreva um algoritmo para:
1- receber um percentual de reajuste
2 - reajustar todos os preos dos produtos com o percentual fornecido no item 1
3 - Imprimir uma planilha demonstrando o preo antigo, o valor do reajuste, e o preo novo.
Admita que os produtos encontram-se em um banco de dados da empresa.
www.pciconcursos.com.br