.NET Framework, Java & OS Fundamentals
Test your knowledge of core computer science fundamentals including .NET Framework, Java/JSP servlets, operating system concepts, and OSI networking model
Questions
What is the role of class loader in .Net framework?
- It manages code execution.
- It allows you to debug your application and trace the execution of the code.
- It provides marshalling to and from COM.
- It prevents the unsafe casts.
- None of the above
Which of the following CTS (Common Type System) supports 4-byte address reference of an object in .Net framework?
- System.Object
- System.Char
- System.Decimal
- Both (1) and (2)
- None of the above
CLR (Common Language Runtime) provides ____?
- Garbage collection.
- Support for custom attributes.
- Support for explicit free threading that allows creation of multithreaded, scalable applications.
- All of the above
- Only (1) and (3)
Which of the following method of the servlet is used to upload the resource on the web server?
- Get method
- Post method
- Put method
- Trace method
- None of the above
The .Net framework types have the following function like ____?
- Encapsulates data structures
- Represent base data types and exceptions
- Perform I/O
- All of the above
- Both (1) and (2)
Which of the following is/are the reference type in common type system in .NET Framework?
- Classes
- Structures
- Enumeration
- All of the above
- Only (1) and (2)
Which of the following is a false statement about delegates in .Net framework?
- Delegates are similar to function pointer in C++.
- Delegates are type safe.
- Delegates are value type.
- None of the above
- Both (2) and (3)
Which of the following types is not supported in common type system in .Net framework?
- Classes
- Interfaces
- Enumerations
- Delegates
- Unions
____ property of the class specifies that another class cannot be derived from this type in common type system of .Net framework?
- Abstract
- Inherits
- Exported
- Sealed
- None of the above
Which of the property of the class indicates that whether a class is visible outside the assembly in which it is defined in common type system of .Net framework?
- Sealed
- Exported
- Inherits
- Abstract
- None of the above
____layer is responsible for end-to-end delivery between hosts in OSI model of networking?
- Transport layer
- Physical layer
- Presentation Layer
- Session Layer
- None of the above
Which of the following layer is responsible for reading and writing data from and onto the file in the OSI model of networking?
- Physical layer
- Data link layer
- Transport layer
- Both (2) and (3)
- None of the above
Which of the following file access mechanism has address for each record to read or write that file in operating system?
- Sequential access
- Indexed sequential access
- Direct/Random access
- All of the above
- None of the above
Which of the following process has lower priority in multi queue scheduling algorithm of operating system?
- Batch process
- User process
- System process
- Interactive process
- None of the above
Which of the following file access mechanism has a pointer to various blocks to access the each file directly in operating system?
- Direct/Random access
- Sequential access
- Indexed sequential access
- Both (2) and (3)
- None of the above
PCB (Process Control Block) has the information like ___?
- Process state
- Pointer
- CPU registers
- Memory management information
- All of the above
Which of the following is a true statement?
- Get Method is restricted as URLs can only be 1024 characters.
- Get method append all the data to the URL.
- Post method is used to send files and binary data.
- All of the above
- Only (1) and (2)
Which of the following information indicates the address of the next instruction to be executed for this process in PCB (Process Control Block)?
- Accounting information
- Program counter
- Pointer
- Process State
- None of the above
Which of the following package is contained by the StringTokenizer class in java?
- java.utill
- java.lang
- java.applet
- java.io
- none of the above
Which of the following is implicit object provide information about cookies in jsp?
- Out
- Request
- Response
- Config
- Scope
Which of the following JSP session method specifies the time between client requests before the servlet container will invalidate this session?
- public int getMaxInactiveInterval()
- public void setMaxInactiveInterval(int interval)
- public long getLastAccessedTime()
- public void invalidate()
- none of the above
Which of the following implicit object in JSP is used to access the Servlet or JSP initialization parameters?
- config Object
- application Object
- pageContext Object
- out Object
- request Object
Which of the following JSP session method returns the maximum time interval that the servlet container will keep this session open between client accesses?
- public int getMaxInactiveInterval()
- public void setMaxInactiveInterval(int interval)
- public void invalidate()
- public long getLastAccessedTime()
- none of the above