en
Feedback
Coder Baba

Coder Baba

Open in Telegram

Everything about programming for beginners. 1 and only official telegram channel of CODERBABA India. Content: .NET Developer, Programming (ASP. NET, VB. NET, C#, SQL Server), & Projects follow me https://linktr.ee/coderbaba *Programming *Coding *Note

Show more
2 231
Subscribers
-224 hours
-137 days
-3730 days
Posts Archive
4.How will you communicate between two applets? java.applet.AppletContext class provides the facility of communication between applets. We provide the name of the applet through the HTML file. It provides the getApplet() method that returns the object of Applet. Syntax: public Applet getApplet(String name) { }

3.What are the uses of Servlet? Servlets execute within the address space of a Web server. It is not necessary to create a separate process to handle each client request. Servlets are platform-independent because they are written in Java.

2.What is the use of Java web servers? It is a computer where the web content can be stored. In general web servers can be used to host the web sites but there also used some other web servers also such as FTP, email, storage, gaming etc. Examples of Web Servers are: Apache Tomcat and Resin.

1.What is meant by session tracking? Session Tracking is a way to maintain state (data) of a user. It is also known as session management in servlets.

COMPUTER ARCHITECTURE QUESTION ANSWER.pdf6.09 KB

11. What is AWT? 1. Java AWT (Abstract Window Toolkit) is an API to develop GUI or window-based applications in java. 2. Java AWT components are platform-dependent i.e. components are displayed according to the view of operating system. AWT is heavyweight i.e. its components are using the resources of OS. 3. The java.awt package provides classes for AWT api such as TextField, Label, TextArea, RadioButton, CheckBox, Choice, List etc. 12. Mention the purpose of connection interface. 1. A Connection is the session between java application and database. 2. The Connection interface is a factory of Statement, PreparedStatement, and DatabaseMetaData 3. i.e. object of Connection can be used to get the object of Statement and DatabaseMetaData. 4. The Connection interface provide many methods for transaction management like commit(), rollback() etc Follow www.youtube.com/coderbaba

JAVA Interview Question Answer: ————————————————- 1. Define abstract class? 1. A class that is declared using “abstract” keyword is known as abstract class. 2. Abstract classes are classes that contain one or more abstract methods. An abstract method is a method that is declared, but contains no implementation. Abstract classes may not be instantiated, and require subclasses to provide implementations for the abstract methods. 3. if a class has at least one pure virtual function, then the class becomes abstract. 4. an instance of an abstract class cannot be created 5. an abstract class can contain constructors in Java 2. Why does the java be a strongly typed language? a. Java is a strongly typed programming language because every variable must be declared with a data type. b. A variable cannot start off life without knowing the range of values it can hold, and once it is declared, the data type of the variable cannot change. c. A strongly typed language compiler enforces strict rules over the operations, what programmer can do, on data types and also passing parameters and return type to a method. d. An advantage of strongly typed language is it gives consistency over the results e. Example: Boolean hasDataType; For the rest of its life, hasDataType can only ever have a value of true or false. 3. Specify default priority value of a thread in Java. Default priority of a thread is 5 (NORM_PRIORITY). The value of MIN_PRIORITY is 1 and the value of MAX_PRIORITY is 10. 4. List out the advantages of exception handling. 1. Separating Error-Handling Code from "Regular" Code- Exceptions provide the means to separate the details of what to do when something out of the ordinary happens from the main logic of a program 2. Propagating Errors Up the Call Stack- is the ability to propagate error reporting up the call stack of methods. 3. Grouping and Differentiating Error Types 5. What is the usage of seek in file? Seek method sets the file-pointer offset, measured from the beginning of this file, at which the next read or write, occurs. 6. Define socket? • A socket is a software object that acts as an end point establishing a bidirectional network communication link between a server-side and a client-side program. 7. What is JDBC driver? 1. A JDBC driver is a software component enabling a Java application to interact with a database 2. The JDBC driver gives out the connection to the database and implements the protocol for transferring the query and result between client and database. 8. What is cookie? 1. is a small piece of data sent from a website and stored on the user's computer by the user's web browser while the user is browsing. 2. Cookies were designed to be a reliable mechanism for websites to remember stateful information (such as items added in the shopping cart in an online store) or to record the user's browsing activity (including clicking particular buttons, logging in, or recording which pages were visited in the past). 9. Define interface? 1. Like a class, an interface can have methods and variables, but the methods declared in interface are by default abstract (only method signature, no body). 2. To declare an interface, use interface keyword. It is used to provide total abstraction- all the methods in interface are declared with empty body and are public and all fields are public, static and final by default. 10. Give example for events? 1. Changing the state of an object is known as an event. 2. For example, click on button, dragging mouse etc. 3. The java.awt.event package provides many event classes and Listener interfaces for event handling.

+1
index1.html0.01 KB

🇮🇳

ASP.NET and Web Programming.pdf3.50 MB

+3
1.png2.66 KB

photo content
+6

____________________||——————————————————————||___________________________ Beginners course for ASP .NET Students. Who are interested Pls join our online classes from 28th Aug 2022. Details: 1. Online classes only. 2. Daily 1 hour class. 3. Duration: 35 days. 4. Fee Rs.999 5. We will provide Notes also. if you interested message me on Instagram @coderbaba

wipro Interview Questions asked 1.Introduction 2.why Wipro 3. Why non IT it IT 4. fastest skill learnt in short time 5. How can you make strangers to friends so quickly? 6. Explain a situation that you made a mistake and solved it after realising it. 7. As a team member how you solve the problems in a team 8. biggest responsibility of team leader 9. Biggest achievement in your life. 10. Any backlogs 11. Relocate 12. Bond awareness 13. Family background 14. Gap in education 15. Are you a open minded?? 16. Any questions for me..I'm done my side.!!!!

IBM INTERVIEW EXPERIENCE : My interview experience: -Show id proof -Introduce yourself -Tell about your projects -Role and responsibility in project -What languages do u know? -What is constructor in python -Diff between list and tuple -Why did u choose flask framework over django? -Difficulties faced while making project -Name three subjects that you studied in college -Asked about relocate and rotational shift - Difference between c and c++ -Any other language you known Subscribe https://www.youtube.com/coderbaba

NTT DATA Interview Experience 1) Introduce youself? 2) Tell me about your college! 3) Rate youself on the scale of 1–5(C knowlege) 4) write a number pattern generation program! 5) It’s ok! What is a pointer? Types? 6) Tell me about your mini project 7) Have you planned you major project? 8) Gave me program and asked me to find the o/p! 9) Let me test your analytical and logical skills! Gave me a puzzle 10) What is an operating system? Uses? 11) What is Kernel? 12) What is processor and Describe its operation? 13) What is a circuit?( ECE) 14) Why should we hire you being very poor in technical? subscribe https://www.youtube.com/coderbaba

EPAM Interview Experience - 2022 1. Tell me about yourself. 2. Can you tell us about the last project you worked on? 3. Tell us about a time something went wrong in a project you were managing. 4. How do you prioritize tasks in a project? 5. What was your most successful project? 6. What’s your experience with budget management? 7. How would you describe a project plan? 8. How would you create an environment of 9. What tools do you use to plan a project? 10. Describe your experience in this industry. 11. One of your team members is asking for more time 12. How would you deal with a difficult stakeholder? follow @coder_baba

TECH MAHINDRA Interview - 2022 Online TR : Explain the Project ! Tell me about your family ! Why I have to pay for you? Why IT ? (As I am from ECE) Asked like " I have only one job offer , can you sacrifice it to your friend rather than to you?" Online HR : Tell me about yourself and about project apart from the technical part What do you know about Tech Mahindra? Are you willing to accept the 2 years service agreement? Can you work for more hours? Ready to relocate? At present any Offers? follow @coder_baba

9-If Retry Count > 3 then (Invalid credential Attempts) User Account will be locked automatically and returns "Your account has been locked by invalid credential attempts". 10-If Email Id and Password matched against Database then Retry count = 0 (Clears previous invalid attempts) returns "Logged Successfully" If Role is Admin then Populate Admin Form 11-else If Role is Employee then Populate Employee Form.

Advanced Login System Create Stored Procedures in MS SQL Server 2012 1- create a stored procedure with name "spAuthentication" Go to, DBLoginSystem ->> Programmability ->> Stored Procedures Right Click and Create new Stored Procedure 2-You will see pre-defined template as shown below.Just delete everthing in pre-defined template, copy the follwing script and paste it. 3-SQL Script: Store Procedure Authentication ——————————— USE [DBLoginSystem] GO /****** Object: StoredProcedure [dbo].[spAuthentication] Script Date: 01-12-2018 8.58.15 PM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE PROCEDURE [dbo].[spAuthentication] (@Email varchar(50), @Password varchar(50), @Result varchar(100) OUTPUT, @Role varchar(50) OUTPUT, @userName varchar(50) OUTPUT) AS BEGIN DECLARE @isActivated bit, @isReAttempLoked bit, @Count int, @RetryCount int, @RoleId int, @UserInfo varchar(50); SET NOCOUNT ON; IF EXISTS (SELECT * FROM Users WHERE Email = @Email) BEGIN --select @Result = 'Valid Credential'; SELECT @isActivated = isActivated, @RoleID = RoleID, @UserInfo = UserName FROM Users WHERE Email = @Email IF (@isActivated = 0) BEGIN SELECT @Result = 'Your Account is locked by Admin.', @Role = '', @userName = ''; END ELSE BEGIN --select @Result = 'Unlocked'; SELECT @isReAttempLoked = isLocked FROM Users WHERE Email = @Email IF (@isReAttempLoked = 1) BEGIN SELECT @Result = 'Account has been locked by invalid credential attempt.', @Role = '', @userName = ''; END ELSE BEGIN SELECT @Count = COUNT(Email) FROM Users WHERE ([Email] = @Email) AND [Password] = @Password IF (@Count = 1) BEGIN -- Reset RetryAttempts UPDATE Users SET RetryAttempts = 0, LastLogin = GETDATE() WHERE Email = @Email SELECT @Result = 'Logged Successfully!', @Role = (SELECT RoleName FROM Roles WHERE RoleID = @RoleID), @userName = @UserInfo; END ELSE BEGIN -- If a match is not found SELECT @RetryCount = ISNULL(RetryAttempts, 0) FROM Users WHERE Email = @Email SET @RetryCount = @RetryCount + 1 IF (@RetryCount <= 3) BEGIN -- If re-try attempts are not completed UPDATE Users SET RetryAttempts = @RetryCount WHERE Email = @Email SELECT @Result = 'Invalid Password, No of attemps ' + CONVERT(varchar(50), @RetryCount) + ' out of 3.', @Role = '', @userName = ''; END ELSE BEGIN -- If re-try attempts are completed UPDATE Users SET RetryAttempts = @RetryCount, IsLocked = 1, LockedDateTime = GETDATE() WHERE Email = @Email SELECT @Result = 'Your account is locked.', @Role = '', @userName = ''; END END END END END ELSE BEGIN SELECT @Result = 'Invalid email Id.', @Role = '', @userName = ''; END END GO —————————————————————————-Subscribe @coderbaba 4- run script 5-Check Email against database if false returns "Invalid Email Id". 6-If user account is blocked then it returns "Your account has been blocked by Admin. Please contact Administrator". 7-If user account is locked due to invalid credential attempts then it returns "Account has been locked by invalid credential attempts." 8-If Email Id and Password not matched against Database then Retry count increase by 1