Rajasthan Technical Education Second Year Paper 2016 Programming in C and Data Structure
The type of Ç’- language is
(a) High level language
(b) High & Low level language
(c) Low level language
(d) All of above
Who developed Ç’- language ?
(a) Thompson
(b) Stroustrup
(c) Dennis Ritchie
(d) Larry Wall
Which language is the predecessor of ‘C’?
(a) A
(b) BCPL
(c) CPL
(d) B
Which is not a keyword in Ç’?
(a) const
(b) main
(c) sizeof
(d) void
Which of the following is ternary operator ?
(a) ? :
(b) ++
(c) >>
(d) +=
Which is the value of expression -10%3 ?
(a) 1
(b) 3
(c) -1
(d) None of the above
Which of the following is formatted output function ?
(a) putchar()
(b) printf()
(c) puts()
(d) All of the above
Header files in Ç’contain
(a) Complier commands
(b) Operators
(c) Declaration of library functions
(d) Data types
Output of the given program will be
void main()
{
float a = 58.3967;
printf(“%-5.3f”, a);
}
(a) -58.397
(b) 58.3
(c) 58.397
(d) None of the above
Which of the following is not a control statement?
(a) goto
(b) if
(c) for
(d) int
How many loops are there in Ç’language ?
(a) 2
(b) 3
(c) 4
(d) 1
for (i=1; i<=10;i++);
printf(“%d”, i);
What will be the output of the above program ?
(a) print from 1 to 10
(b) 11
(c) 10
(d) 9
Array is sued to represent
(a) Collection of integer data types
(b) Collection of real data types
(c) Collection of different data types
(d) Collection of same data types
Two-dimentional (2-D) array is also known as
(a) Table
(b) Matrix
(c) Array of arrays
(d) All of above
Array index in Ç’always starts at
(a) 0
(b) -1
(c) 1
(d) any value
Leave a Reply