php mcq questions with answers
Which of the following jobs are done by Common Language Runtime?
- It provides core services such as memory management, thread management, and remoting.
- It enforces strict type safety.
- It provides Code Access Security.
- It provides Garbage Collection Services.
A.Only 1 and 2B.Only 3, 4C.Only 1, 3 and 4D.Only 2, 3 and 4E.All of the above
Which of the following statements are correct about a .NET Assembly?
- It is the smallest deployable unit.
- Each assembly has only one entry point - Main(), WinMain() or DLLMain().
- An assembly can be a Shared assembly or a Private assembly.
- An assembly can contain only code and data.
- An assembly is always in the form of an EXE file.
A.1, 2, 3B.2, 4, 5C.1, 3, 5D.1, 2
Which of the following statements are correct about JIT?
- JIT compiler compiles instructions into machine code at run time.
- The code compiler by the JIT compiler runs under CLR.
- The instructions compiled by JIT compilers are written in native code.
- The instructions compiled by JIT compilers are written in Intermediate Language (IL) code.
- The method is JIT compiled even if it is not called
A.1, 2, 3B.2, 4C.3, 4, 5D.1, 2
Which of the following are parts of the .NET Framework?
- The Common Language Runtime (CLR)
- The Framework Class Libraries (FCL)
- Microsoft Published Web Services
- Applications deployed on IIS
- Mobile Applications
A.Only 1, 2, 3B.Only 1, 2C.Only 1, 2, 4D.Only 4, 5E.All of the above
Which of the following statements are correct about data types?
- If the integer literal exceeds the range of byte, a compilation error will occur.
- We cannot implicitly convert non-literal numeric types of larger storage size to byte.
-
Byte cannot be implicitly converted to float.
- A char can be implicitly converted to only int data type.
- We can cast the integral character codes.
A.1, 3, 5B.2, 4C.3, 5D.1, 2, 5