PPSC Computer Science Full Book test With Answers

PPSC Computer Science Full Book test

Sr. # Questions Answers Choice
1 What's wrong in the statement ? (x == 4 && y == 5) ? (a=5):(b=6): The question mark should be an equal sign. The first semicolon should be a colon There are too many variables in the statement None of abvoe
2 Find teh output of the following program
void main (){
int i = ' hello";
print f (i):
}
Syntax error Runtime error h Hello
3 Which of the following is not a valid name for a C variable. Hairaj Hello _ raj Hello raj None of above
4 Which of the following is a LOOP statement of a C language. Repeat until For While -Do Do-while Both b and d above
5 The size of an int must be greater than or equal to that of a Long int Short int Float Char
6 What is the associatively of the conditional operator. Left to Right Right to left Top to bottom None of the above
7 Information will be passed to the function via special identifier is called. Arguments Parameters Both A and B above Elements
8 What is the output of the following program.
#include <studio. h>
int c [10]={1,2,3,4,5,6,7,8,9,10}
main ()
{int a, b =0:
for {a<10;++a)
if c[a]:
[romt f (%d" . n);}

20 24 25 30
9 What is the fifth element of the array
Int a [3][4] ={1,2,3,4,5,6,7,8,9,10,11}
4 5 6 7
10 Which is the following is not a storage class in C. Auto Struct Extern Static
11 How would you declared constant of 5 called 'MYCONST"? Constant MYCONST =5 Int my const =5 # define MYCONST 5 #define MYCONST =5
12 Which command is used to skip the rest of a loop and carry on from the top of the loop again. Break Resume Continue Skip
13 Suppose the return type of function f is void. Which one of the following statements is true. Function f does not contain a return statement. Function f does not have parameters Function f return a generic value Function f does not work correctly
14 Which of the following is a not a keyword of C langauge. Void Volatile Getchar Short
15 Which of the following correctly access the seventh element stored in foo, an array with 100 elements. foo{6}: Foo {7}: Foo Foo():
16 Which of the following is not a correct variable type. Float Real Int Double
17 What is the only function all C program must contain. Start () System () Main () <sup>Program ()</sup>
18 What is the correct value to return to the operating system upon the successful completion of a program 1 1 0 2
19 Every C program consists of _____________ functions. Only one Only two One or many None of the above
20 Give one word common type system is built into which of the following. CLR RCT RCW GAC
21 The type of code found in code behind class is Server side code Clinet side code Both A and B None
22 The actual work process of ASP NET is taken care by Inetinfo exe aspnet _ isapi .dill aspnet _ wp .exe None
23 Which of the following allow writing formatted output. Response write() Response output write () Both A and B None
24 Which of the following denote the property in every validation control cont4rol to validate property Text property Both A and B None
25 How many classes can single NET DLL cONTAIN. One Two Many Done
26 In ASP NET the sessions can be dumped by using. Session dump session Abandon Session Exit None
27 Which of the following method used to obtain details about information types of assembly. Get types Get type Both A and B None
28 The name space with in the Microsoft NET Frame work which provides the functionality to implement transaction processing is. System Enterprise services. System Security System Diagnostics System Data
29 The technique that allow code to make function calls to .NET applications on other process and on other machines is. .NET Threading .NET Remoting .NET RMT None
30 Support a NET programmer wants to convert an object into a stream by bytes then the process is called. Serialization Threading RCW App Doman
Download This Set

Is this page helpful?