PPSC BITS -EEE,AIML,ECE
PPSC BITS -EEE,AIML,ECE
Answer: c
Explanation: Dennis Ritchie is the father of C Programming Language. C programming
language was developed in 1972 at American Telephone & Telegraph Bell Laboratories of
USA.
Answer: C
Answer: D
4. C Language is a
a) General Purpose Language b)Case-Sensitive Language
c)Structural Programming d)All the Above
Answer: d
Answer: c
Explanation: C is considered a middle-level language because it supports the feature of both
low-level and high-level languages. Today, many programmers refer to C as a low-level
language because it lacks a large runtime system (no garbage collection, etc.). It supports
only scalar operations and provides direct memory addressing.
1
6. Low level language is .?
A) Human readable like language.
B) language with big program size.
C) language with small program size.
D) Difficult to understand and readability is questionable.
Answer: D
Explanation: Looks like raw data often in the form of 1's and 0's.
Answer: d
3
a) In while loop after loop b) After loop c) Compile time error d) Infinite loop
Answer: C
22. What will be the output of the following C code?#include <stdio.h>
void main()
{
int i = 2;
do
{
printf("Hi");
} while (i < 2)
}
25. Which loop is most suitable to first perform the operation and then test the condition?
a) for loop b) while loop c) do-while loop d) none of the mentioned
Answer: C
26. Which keyword can be used for coming out of recursion? (B)
a) break b) return c) exit d) both break and return
28. Which keyword is used to come out of a loop only for that iteration?(B)
a) break b) continue c) return d) none of the mentioned
a) hi b) hello c) no d) error
34. The C code ‘for(;;)’ represents an infinite loop. It can be terminated by (A)
a) break b) exit(0) c) abort() d) terminate
5
5. for (; ; ;)
6. printf("In for loop\n");
7. printf("After loop\n");8.
}
a) 2 b) 3 c) 4 d) 1
40. Which loop is most suitable to first perform the operation and then test the condition?(C)
a) for loop b) while loop c) do-while loop d) none of the mentioned
6
43. An array Index starts with.?[B]
A) -1
B) 0
C) 1
D) 2
52. Can we change the starting index of an array from 0 to 1 in any way.?[D]
A) Yes. Through pointers.
B) Yes. Through Call by Value.
C) Yes. Through Call by Reference.
D) None of the above.
55. If an integer array pointer is incremented, how many bytes will be skipped to reach next
element location.?[B]
A) 1
B) 2
C) 8
D) None of the above
56. What is the function used to allocate memory to an array at run time without initializing
array elements.?[B]
A) calloc()
B) malloc()
C) palloc()
D) kalloc()
8
59. What is the output of C Program with arrays.? [D]
int main()
{
int ary[] = {1, 3, 5};
printf("%d %d", ary[-1], ary[4]);
return 0;
}
A) 1 5
B) 0 0
C) Compiler error
D) None of the above