php mcq questions with answers


                                

Which of the following jobs are done by Common Language Runtime?

  1. It provides core services such as memory management, thread management, and remoting.
  2. It enforces strict type safety.
  3. It provides Code Access Security.
  4. It provides Garbage Collection Services.

A.Only 1 and 2
B.Only 3, 4
C.Only 1, 3 and 4
D.Only 2, 3 and 4
E.All of the above
                                

Which of the following statements are correct about a .NET Assembly?

  1. It is the smallest deployable unit.
  2. Each assembly has only one entry point - Main(), WinMain() or DLLMain().
  3. An assembly can be a Shared assembly or a Private assembly.
  4. An assembly can contain only code and data.
  5. An assembly is always in the form of an EXE file.

A.1, 2, 3
B.2, 4, 5
C.1, 3, 5
D.1, 2
                                

Which of the following statements are correct about JIT?

  1. JIT compiler compiles instructions into machine code at run time.
  2. The code compiler by the JIT compiler runs under CLR.
  3. The instructions compiled by JIT compilers are written in native code.
  4. The instructions compiled by JIT compilers are written in Intermediate Language (IL) code.
  5. The method is JIT compiled even if it is not called

A.1, 2, 3
B.2, 4
C.3, 4, 5
D.1, 2
                                

Which of the following are parts of the .NET Framework?

  1. The Common Language Runtime (CLR)
  2. The Framework Class Libraries (FCL)
  3. Microsoft Published Web Services
  4. Applications deployed on IIS
  5. Mobile Applications

A.Only 1, 2, 3
B.Only 1, 2
C.Only 1, 2, 4
D.Only 4, 5
E.All of the above
                                

Which of the following statements are correct about data types?

  1. If the integer literal exceeds the range of byte, a compilation error will occur.
  2. We cannot implicitly convert non-literal numeric types of larger storage size to byte.
  3. Byte cannot be implicitly converted to float.
  4. A char can be implicitly converted to only int data type.
  5. We can cast the integral character codes.

A.1, 3, 5
B.2, 4
C.3, 5
D.1, 2, 5