How To Exam?

a knowledge trading engine...


The Global Open University 2012-1st Year B.Sc Computer Science Global open University of Programming in C - Question Paper

Wednesday, 06 February 2013 07:55Web
d. %
47) Which of the subsequent operators in
'C' does not associate
from the right ?
a. ,
b. =
c. +=
d. ++
48) Which is the output of the subsequent
program fragment (in C) ?
int x,y = 2, z, a;
x=(y*=2) + (z= a= y);
printf("%d",x);
a. prints 7
b. prints 6
c. prints 8
d. is syntactically wrong
49) What does the statement
printf("%d", 10 ? 0 ? 5:1:12); print ?
a. 10
b. 0
c. 12
d. 11
50) what does the subsequent C statement
print ?
printf("%d",++5);
a. 5
b. 6
c. 7
d. An fault message
51 ) The statement printf("%d", (a++));
prints
a. The current value of a
b. The value of a+1
c. An fault message
d. Garbage
52) What is the output of the subsequent
'C' fragment ?
int a = 4; b = 6;
printf("%d", a==b);
a. Outputs an fault message
b. Prints 0
c. Prints 1
d. None of the above
53) Which of the subsequent comments
regarding the studying of a
string, using scanf(with option) and gets
is actual ?
a. both can be used interchangeably
b. Scanf is delimited by end of line, while
gets is not
c. Scanf is delimited by blank, while gets is
not
d. None of the above
54) in C programming language x -= y+1;
means
a. x= x- y + 1
b. x = -x-y -1
c. x= -x+ y + 1
d. x= x- y - 1
55) Which of the subsequent comments
about the ++ operators is/are
correct?
a. It is unary operator
b. the operand can come before or after the
operator
c. It cannot be applied to an expression
d. All of the above
56) printf("%c", 100) statement in 'C'
a. prints 100
b. prints the ascii equivalent of 100*
c. prints garbage
d. None of the above
57 ) Which of the subsequent C statements
is syntactically accurate ?
a. for();;
b. for(;);
c. for(,);
d. for(;;);
58) A design approach to solve issue
which is based on the
Dictum "Divide and rule " is
a. Top-Down design
b. Bottom -up design
c. Structural design
d. Objected oriented design
59) A basic approach of a issue
solving technique which includes
solving the most basic (smallest) units in
the hierarchy 1st and then use them to
build more sophisticated bigger units is :
a. Top-Down design
b. Bottom-up design
c. Structural design
d. OOPs design
60) __________is a finite list of welldefined
steps for solving a
particular issue. These instructions,
when executed in the specified
order to solve a issue
a. Flowchart
b. Pert chart
c. Data flow chart
d. Algorithm
61) An algorithm has subsequent
execution-sequences
a. Sequence Logic or Sequential Logic
b. Selection or Conditional Logic
c. Iteration or Repetitive Logic
d. All of the above
62) choose unconditional Loop instruction
used in algorithm
a. If instruction
b. Do-while
c. Repeat-until
d. Goto
63) If f(n) and g(n) are functions described
over '+ve' integers then
the order of complexity of an algorithm
may also be expressed in
terms of 'O' notation as
a. f(n) > o (g(n))
b. f(n) = o(g(n))
c. g(n) = o (f(n))
d. None of these
64) Binary search requires
_____________ before searching
a. Array elements organizes 1 beneath the
other.
b. Array elements organizes in random order
c. Array elements sorted in Ascending or
descending order
d. All of the above
65) Executing an algorithm may be
thought of as calling the algorithm
passing values to it and receiving what it
returns after execution. When an
algorithm uses or calls itself within its
definition, it is known as
a. Recursive Algorithms
b. Searching algorithm
c. Traversal algorithm
d. Dynamic algorithm
66) A flow chart is a
a. Pictorial representation using computer
language like BASIC
b. A chart with control flow of a program.
c. Pictorial representation of the variables
used.
d. Pictorial representation of an algorithm
67) A rectangle symbol is used for
a. Decision making
b. Computational steps
c. Branching the flow of control
d. End of the program.
68) Input or output is represented by
__________ symbol in a flowchart
a. Square
b. Parallelogram
c. Rectangle
d. Circle
69) The decision table contains the
subsequent part
a. Condition part
b. Action part
c. Rule part
d. All of the above
70) A Pseudo code is a
a. An algorithm written in computer language
b. Coding from algorithm into a program with
an intermediate language
c. Coding with a programming language
d. Coding with English language.





( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER The Global Open University 2012-1st Year B.Sc Computer Science Global open University of Programming in C - Question Paper