Showing posts with label B.Sc.(IT). Show all posts
Showing posts with label B.Sc.(IT). Show all posts

Saturday, December 12, 2020

J2EE 1 MARK Question and Answer for B.C.A , B.Sc.(IT) , M.C.A and all IT Students

 


----------------------------------------------------------------------------------------------------------------------------

Prepared By : Uday Shah  (HOD-IT)
Contact No : 7600044051
E-Mail : rupareleducation@gmail.com


J2EE 1 MARK Question and Answer 


1          Which components run on the client Machine.

            a) Business Tier                       b) Middle Tier             c) Client Tier                  d) None          

 

2.         Which layer is stand on 5th Position

            a) Business Layer                    b) Database Logic      c) Database Manager              d) None

 

3.         Which of the following is tag of hibernate.cfg.xml?

a) SQL variant to generate   b) Size of database      c) Both                                    d) Non

 

4.         OOD is stand for.

            a) Object Design Diagram      b) Object Oriented Design    c) Object Oriented Data   d) None

 

5.         MOM is stand for.

            a) Message Object Model                                           b) Middleware Object Modem          

c) Message Oriented Middleware                            d) Middleware Oriented Message.

 

6.         JNDI is stand for.

            a) Java Naming and Directory Interface.               b) Just Naming and Directory Interface.

            c) Java National and Directory Interface.                   c) None

 

7.         How many modules are there in spring?

            a) 3                                          b) 4                              c) 5                                          d) 6

 

8.         Which of the following statement is false about MVC?

            a) Complete control over your HTML Markup     

             b) Makes Test Driven Development (TDD) very difficult

c) Allows you to create SEO-friendly URLs for your site            

d) Enables rich AJAX and jQuery integration

 

9.         Which tag library Struts does not support ?

a) Logic                                   b) bens                         c) html                                                 d) JSP

 

10.       JSTL is stand for.

            a) Java Server Page Standard Tag Library           b) Java Standard Tag Library

            c) Java Server Tag Library                                          d) None

 

11.       EJB is stand for.

            a) Enternational Java Beans    b) Enterprise Java Beans   c) Exicise Java Beans    d) None

 

12.       ERP is stand for.

            a) Enterprise Resource Planning                             b) Enterprise Require Planning

c) Enterprise Resource Plan                                        d) None

 

13.       Java Servlets are efficient and powerful solution for creating ............. for the web.
            a) Dynamic content   b) static content                      c) hardware                             d) None

 

14.       To Know Database name or Database File Name used.

            a) getDatabase()          b) getName()               c) getCatlog( )            d) getDatabaeCatlog()

 

15.       Which Method return the number of column in this resultset object.

            a) getColumn( )           b) getCountColumn()     c) getColumnCount()        d) None.

 

16.       Which method is used to retrieve parameter’s Name and Value.

            a) getParameter( )                                                 b) getNameAndValue( )         

           c) getInitParameterNames( )                             d) None           

17.       ________ method is used to send and HTTP Response code to the Client.

            a) setResponce( )         b) getResponce ( )       c) setStatus( )              d) getStatus( )

 

18.       Where is MetaData Stored in mysql.

            a) Mysql database metadata   b) Mysql database metasql      c) Mysql database mysql  d ) None

 

19.       Which JDBC Driver Type can be used in either applet or Servlet Code?

            a) Type 1 and Type 2                                     b) Type 1 and Type 3  

            c ) Type 3 and Type 4                                  d) Type 3 and Type 1

 

20.       A JSP is transformed into a(n) 

            a) Java Applet             b) Java Servlet           c) a and b                    d) None

 

21        Which API is used for distributed transaction application?

            a) JSF                         b) JMS                         c) JTA                                     d) JAVA Mail

 

22.       ______ method is used to identify remote object.

            a) Bind                                    b) Lookup                  c) List                                      d) Rebind

 

23.       An object on another computer is known as __________.

a) Server Object                                         b) Client Object          

c) Remote Object                                     d) Client and Server object

 

24.       What is the name of Hibernate’s own query language?

            a) SQL                        b) HQL                       c) HHQL                                 d) None

 

25.       The syntax of scriplets is

            a) <%  %>                 b) <!  %>                     c) <@!  %>                             d) <%!  %>

 

26.       Hibernate have ______ type of exceptions.

            a) Un-checked exceptions                               b) Checked exception

c) Un-checked and checked exception         d) None

27.       Which method is not the method of Connection Interface?

            a) Close()                     b) getMetaData()        c) getConnection                    d) commit()

 

28.       doGet() and doPost() methods are called via _____.

            a) Service()                 b) init()                        c) Destroy                                d) None

 

29.       Which method returns current session?

a) getSession()            b) getQueryString()     c) getHeaders                          d) None

 

30.       The stub is a _____ side proxy of the remote object.

            a) Client                      b) Servet                      c) Both                                                d) None

 

31.       Struts2 framework is based on the _____ design pattern.

            a) MVC                      b) Client-Server           c) Peer to Peer                         d) None

 

32.       The key unit of modularity in Aspect Oriented Programming (AOP) is ____.

            a) Class                        b) Aspect                     c) Object                                 d) None

 

33.       Scope of out object is ______.
            a) Application scope   b) Page scope                         c) Session Scope                     d) None

 

34.       Business logic is resides at _____ tier in three tier architecture.

            a) Client Tier               b) Business Tier         c) Database Tier                      d) None

 

35.       The Spring web model-view-controller (MVC) framework is designed around a ______ that handles all the HTTP requests and responses.

            a) Dispatcher Servlet b) Dispatch Servlet     c) Disp Servlet                        d) None.

 

36.       Which method is used to set time for cookie?

            a) set time out             b) set Max Age           c) set Max time                       d) None

 

37.       Hibernate is an _____ solution for JAVA.

            a) Object-Oriented Mapping(OOM)               b) Mode-Relational Mapping(MRM)                      

c) Object-Relational Mapping(ORM)          d) None

 

38.       Which tag in the JSP is used to define the error page?

            a) Error Page               b) Is Error Page        c) Exception Page                   d) All of above

 

39.       Which one of following is not types of EJB?

            a) Session Beans         b) Entity Beans           c ) Message-driven beans       d) Cookie Beans

 

40.       Which one is compatible with java Environment?

            a) DCE                        b) DCOM                    c) CORBA                              d) RMI

 

41.       How Many Type of Enterprise Architecture.

            a) 2                             b) 4                             c) 6                                         d) 8

 

42.       What is Full Form of JSP?

           a) Java Second Page    b) Just Server Page   c) Java Server Page           d) None of This


43.       A link between the RRL on the server side and the RRL on the client side.

           a) Stub                        b) Skeleton                c) Transport Layer            d) All

 

44.       Client Side Proxy is known as.

            a) Stub                        b) Skeleton                c) Transport Layer               d) All

 

45.       Server Side proxy is known as.

            a) Stub                         b) Skeleton               c) Transport Layer               d) All

 

46.       RMI Stand For.

             a) Remote Machine Interface                                 b) Random Method Invocation

             c) Remote Method Invocation                             d) None of this

 

47.       The bridge between a Java program and a database is known as.

             a) JDBC                    b) ODBC                    c) JDBC-ODBC                   d) All

 

48.       Type – 1 Driver is.

            a) Native Protocol Driver                           b) Native – API Driver

            c) Network Protocol Driver                                    d) JDBC-ODBC Driver

 

49.       Type – 4 Driver is.

            a) Native Protocol Driver                         b) Network Protocol Driver

           c) Native – API Driver                               d) JDBC-ODBC Driver

 

50.       From Which following is not JDBC API Class/Interface?

            a) Javax.sql.Connection                           b) Java.sql.Driver    

           c) java.sql.ResultSet                                    d) None

 

51.       From Which following is not The Connection Interface Method?

           a) rollback()                 b) isClosed()         c) Commit()                d) None

 

52.     From Which following is The Statement Interface Method.

          a) rollback()                 b) close()              c) createStatement()              d) None

 

53.     registerOutParameter Method is Used in?

          a) Statement Interface                               b) Callable Statement Interface             

          c) Prepared Statement Interface                d) None

 

54.     Java Server Side Component is?

          a) JDBC                                 b) JSP                         c) Servlet                              d) All

 

55.    What is SSL?

         a) Secure Space Layer      b) Socket Secure Layer    c) Secure Socket Layer    d) None

 

56.     EJB Stand For.

         a) Enternate Java Beans   b) Enterprise JavaBeans   c) Enterprise Java Base   d) None

 

57.      What is the Web Address of Tomcat Server.

           a) HTTP:://localhost:8080              b) HTTP:/localhost:8080   

           c) HTTP://Localhost:8080              d) http://localhost:8080

 

58.      <%! …… %> tag is know is.

          a) Scriptlet Tag            b) Expression Tag    c) Declaration Tag            d)None

 

59.     Try.. Catch is Used for?

          a) Error                       b) Exception              c) Session                  d) All

 

60.     What is Full form of DD.?

          a) Dynamic Design                                                  b) Descriptor Development           

          c) Deployment Descriptor                                    d) None

 

61.     XML is Stand For.

          a) Excises Markup Language                     b) Extensible Markup Language

          c) Extension Madeup Language                d) Executable Markup Language

 

62.     Meaning of JAF is

          a) Java Activation Framework                   b)  Java Bean Advance Framework

         c) Java Beans Activation Framework     c) Java Bean Active Framework

 

63.       What are the scopes available in struts?

           a) Session , request                                         b) Page, request,session         

          c) Page, request, session, application             d) request, session, application

 

64.     The IDL compiler generates ..................... and .........................
a) runnable code, stubs                             b) client, stubs        

           c) stubs, client                                            d) stubs, skeleton

 

65.       For loop is written in JSP using

           a) Scriptlet               b) Express                 c) Expressions          d) Declaration

 

66.       Want to declare variable in JSP used.

          a) Scriptlet                 b) Express                 c) Expressions          d) Declaration

 

67.       To use applet code using JSP which tag is used.

        a) jsp:param                b) jsp:plugin              c) jsp:include            d) None

 

68.       isPageError return __________ type value.

            a)int                 b) float                        c) Boolean                  d) all

 

69.       In Database Driver Type – 2 Driver is

           a) Native Protocol Driver                           b) Network Protocol Driver

         c) Native – API Driver                              d) JDBC-ODBC Driver

 

70.      RPC Stand for

           a) Remote Program Check                              b) Remote Procedure Check

           c) Remote Procedure Call                            d) None

 

71.       IDL Stand for

           a) Internet Definition Language                     b) Interface Definition Language

           c) Internal Definition Language                     d) None

72.   JSP embeds in ................ in ......................

           a) Servlet, HTML             b) HTML, Java        c) HTML, Servlet         d) Java, HTML

 

73.      In connection Interface which method is used for undo all the changes made to the database?

          a)  void commit()        b) void rollback()                   c) void undoall()         d) none

 

74.     In Prepared Statement which method is used to execute insert, update and delete statement.

          a) int executeQuery()      b) int executeUpdate()           c) boolean execute()    d) None

 

75.     How we get Username of current database user.

          a) Result Set Metadata           b) Database Metadata c) Dataset Metadata             d) None

 

76.     By which user can create dynamic web site.

          a) Servlet                                 b) JSP                         c) Html                        d) None

77.   The class string belongs to ................... package.

          a) java.awt                            b) java.lang            c) java.applet           c) java.string

 

78.     Which sign is used for In Operator in Query.

          a)  $                                      b)   =                            c)  ?                             d)  All

 

79.     To Check Cursor is on Lastrow which method is used.

          a)  EOF ()                            b) isEOF()                   c) isLast()                    d) isFinished()

 

80.     Which method is return current row number?

          a) next ()                                  b) Row()                      c) getRow()                 d) getNext()

 

Please Share and Comment it...  Thank You

:: Best Of Luck :: 


https://myshopprime.com/uday.shah3/shop




Sunday, January 19, 2020

Android Unit 5 : Introduction To iPhone for B.C.A.,B.Sc.(IT),M.C.A. Students


--------------------------------------------------------------------------------------------------------------------------
Prepared By : Uday Shah (HOD - IT)
E-Mail : udayshah80@gmail.com
Contact No : 7600044051

:: Introduction To iPhone ::


Q-1:  Explain I-phone?
·        I-phone is combination of i-Pod, tablet PC and cellular phone made by the apple that pair the easy of use of and i-pad with rubbished multimedia internet browsing network capabilities and many more.
·       It is also known as smart phone.
·       It is extremely think wider and longer than many comparable device.
·     Generally  the display area is 3.5 inch wide screen multi touch interface with high resolution like other smart phones, I-phone does not use hardware keyboard and or other component.
·        User can use multiple apps and also navigate application through mobile version of apples OS X operating system.
·        It automatic detect WIFI networks.
·        It support high speed data transfer and also support 4 to 8 GB.

Q-2:  Intro to X-code
·   X-code is an integrated development environment for developing I-phone and makes application.
·  It content suit of software development tools to development by apple for developing software for OS X and IOS.
·        It latest version is available in MAC application store.
·   The X-code interface integrates code for editing user interface design assets management, testing and debugging with single work space window.
·    The window can reconfigure bytes content E.g. to select a find in one aria and use appropriate editor open it another area.
·        Developer can focus on task by display only what you needed such as only your source code or only your user interface.
·        Layout or you can work with your code and user interface layout side by side.
·   Than after you can further customize your environment by opening multiple windows multiple tab per windows.
Following is diagram of X-code IDE.




·   According to above diagram developer can build apple application In X code interface. X code can check your source code as you type when X code notice a mistake than source code editor highlight the errors.
·   The source code editor offer to fix it X code speed up your with intelligent code compilation.
·   X code reduce your typing by offering ready to use code.
·   User can easily configure the source code editor to display multiple view of the same file.

Q-3:  What is framework?
·        The Android Framework is the entire stack of stuff that makes up the OS. This is the underlying Native libraries that are not directly accessible, the layer above that that you actually interact with and the code that developers write to run on the system.
·        Multiple application can be used for this resource simultaneously and the system load them into memory as needed and share one copy of the resource among all the application.
·        A framework is also the bundle and its content  can be access using core foundation bundle service or the COCOA touch bundle class.
·        A framework bundle is a stand by directory that user can navigate that make it easier for developer to browse the framework content.
·        Framework serve the same purpose as static and dynamic share library.
·        They provide a library of routines and that can be call by the application to perform a specific task.
·        E.g. the application kit and foundation framework provide the programmatic interface for the COCOA class and method.
·        Framework provide some advantages over a static link library and other dynamic share library.

Advantages
·        Frame work is a group related but it also works separate. This grouping makes it easier to install, uninstall and rotate that resource.
·        Framework can include a wide verity of resource type then library.
·        Framework can include any relative header file and documentation.
·        Multiple version of framework can be included in the same bundle. This makes it possible to be background compatibility with other programming.
·        Only one copy of a framework as reads only resources.

Create a frame work
·        Once you decide that you need to create a framework for your code you can do it easily with X code.
·        You can add a major version of the framework and you can also need to be able to maintain your projects.
·        From the X code file menu select new project and follow the prompts to select the type of framework that you want to add in your project directory.
·        The default templates that come with X code use specific weather you want to create a carbon or COCOA framework.

Configure framework
·        When you create a new framework there are several configuration option that you may want to modify.
·        This option make it easier to distribute your framework to customer and guaranty it’s a compatibility after feature development cycle.
·        Following is some list of option that you should set for your framework.
1.     Framework identifier
2.     Framework version
3.     Current version
4.     Compatibility version
5.     Expiated symbol
6.      Installation path
7.     Preferred addresses etc.

User interface control
·        A control is a combination tools between a user and an application.
·        Control convey a particular action or interaction to the app to user interaction and can be use to manipulate content provide user navigate with act or execute other pre define action.
·   Control are simple start forward and familiar to user because the appear throughout IOS app.
·   The user interface control class is base class for all controls on IOS and defines the functionality that is common to all control.
·     You should never use it directly instead one of its some class each sub class of user interface control define appearance behavior and intended usage specific to the control.

Behavior of the control
·        A control state behavior of the control.
·     Control state also describes the current interactive state of control like normal selected enable highlighted etc.
·        A control can have more than one state at a time.
·        When user interact with control the control state change appropriate.
·   Developer can configure control to have different appearance for different state to provide user with a feedback.
·   Control event is also the behavior of control where control event represent various physical interface that user can make their own control such as leafing a finger form control, dragging a finger into a control and touching down within a text field.
·    When the control is enable user can interact with it otherwise it is a disable and it appear grayed out and does not respond to user interaction.

Target action mechanism
·        The target action mechanism is also on of the behavior of control it is model for configuring a control to send and action message to a target object.
·        E.g. when user interact with a slider it generate user interface control event value change control event.
·        You could use this event to update a label text to the current value of the slider.

Control alignment
·        Control alignment like button, text field can content images or text.
·        For this control you can specify the alignment of that content by using the horizontal alignment or vertical alignment option in attributes.
·        Using the vertical alignment option you can specify whether the content  appear align with top, center or bottom and this is a great tool for ensuring that the content appear exactly.

Buttons
·        Button late the user intent behavior with a tap.
·        You communicate a button function through a text user table all with an image.
·        Your app change button appearance based upon user touch interaction.
·  Changing in the table or image color and state to indicate button action  dynamically.
·        Button object can be specified as one of five standard types system.
·    The info and context button type are supplied with standard image graphics to indicate type purpose.
·        Button do not need to delegate a function properly.
·   View control or define their behavior and functionality without implement any delegate protocol.
·    User can customize the appearance of the button by setting various properties of it.
·    If the button has custom image then it highlight adjust and disable adjust image option in it.
·  Button has for state to configure for appearance that is default highlighted selected and disable.
·     A button can have two types of text a plain or attributed plain text support single set of formatting while attributed text support multiple set of attribute.

Text field
·        The text field allow user to input a single line of text into an application.
·        Typically user text field is small amount of text from the user and perform some immediate action like search operation based on text.
·        A set of content of the text field can select weather a plain text or attributed text.
·        The place holder appearance of the text whenever the text field has no character.
·        User can use clear button to delete text in the text field.
·        Text field need to delegate custom behavior such as display additional view and also whenever begin edited it. The text field sends user interface components event editing binding method.
·        Developer can response this method by performing some corresponding action in your application.
·        Such as update information as the user type.
·        The text file enable auto correct field that allow user to input a text in a text field.
·        Developer can customize the appearance for text field by setting the property describes in it.
·        There are verities of border style.
·        A text field can have background image that store under the content of the text field.
Text view
·        User can create auto layout consist between a text field and other user interface element.
·        You will generally need to specify a text field intended for the application.
·        The text view accept and display multiple line of text, text view support scrolling and text editing typically use a text view to display large amount of list such as body of an email message.
·        Following is some important property of text view that is
1.     Delegate
2.     Editable
3.     Data directory type
4.     Input accessories
5.     Input view
6.     Text
7.     Text alignment
8.     Text color
·        The text view has same property event and method like text field.
·        It define a set of optional method that you can receive editing related message.
·        All of the method in this protocol are optional.

COCOA Touch
·        Cocoa touch is user interface framework for building software program to run on IOS for the I-phone, I-pod and I-pad.
·        Cocoa touch provides and abstraction layer of IOS.
·        The operating system from the I-phone, I-pod and I-pad.
·        Cocoa touch is based on the MAC OS API. Toolset and like primary language object of C.
·        Cocoa touch allows the use of hardware and a feature that are not found in MAC OS.
·        Just like a cocoa, cocoa touch follow model view control (MVC) software architecture.
·        Cocoa touch contents a different set of graphical control element of cocoa.
·        Tools for developing based on cocoa touch are including in the IOS SDK.
·        An IOS technology can be sync as a set of layer with cocoa touch at the highest level and the core OS and IOS kernel at the bottom.
·        The hierarchical view of IOS technology can be show as
1.     Cocoa touch
2.     Media application service
3.     Core service
4.     Core OS and IOS kernel
·        Some of the main feature and technology of cocoa touch are core animation multi tasking etc.

MVC
·        MVC means the model view controller design assign object in an application one of three roles that is model view and controller.
·        The patterns define not only the role object play in the application it define the way object communicate with each other.
·        Each of the three types of object is separated from the others by abstract boundaries and communicates with object of the other type across the boundary. The collection of object of certain MVC type in an application is sometime referring to as a layer.
·        MVC is a central to a good design for cocoa touch.
·        The benefit of adopting these patterns is numerous.
·        Many object in this application tend to be more reusable and their interface tend to be better define application having MVC.
·        MVC design is also more easily extensible then other application.
·        More ever many cocoa technology and architecture are based on MVC and require that your custom object to play one of the MVC roles.
·        Following is a diagram to denote MVC pattern in an application.



·        According to above diagram the model represent the data in your application it is responsible for show tend validating and organizing your data.
·        The view is user interface or what the user see and interact with you can create a view programmatically through code using apple class such as user interface view.
·        The controller manages communication between the view and model.
·        It takes the data from the model and communicates it to the view for display.   


Please Share and Comment it... Thank You

:: Best Of Luck ::