Posts

Showing posts from August, 2023

Moksha - Test 1- Soft Skills

Image
  Soft Skills   1)       WRITE ANY THREE QUESTIONS FROM THE FOLLOWING                                                              3*5=15                 a.        What are the types of communication skills? b.       What is phone etiquette, mention important steps of it? c.        What does the term interpersonal skills mean, what are the main initiatives to improve our interpersonal skills d.       Explain Do’s and Don’ts in a debate? e.    ...

Moksha - Test 1 - HTML

Image
  HTML Test 1   1)       Write the basic structure of the HTML template? 2)       What are inline elements and block-level elements in HTML? 3)       In how many ways can a heading be written in HTML? 4)       How can we create a hyperlink in HTML? 5)       How to link an external css file to html? 6)       How to change font size of a paragraph just using HTML tags? 7)       Write all the properties of flex box? 8)       Does a <! DOCTYPE html> tag is a HTML tag? 9)       What is the use of a span tag? Give one example? 10)   How to create list with Roman numeral? 11)   What is the correct HTML for inserting an image? a.        <img alt="MyImage">image.gif</img> b. ...

Moksha - Test 1 - Core Java

Image
  Moksha - Test 1 1.       Define inheritance in Java and provide an example. 2.       Explain the concept of encapsulation and its benefits in Java. 3.       What is polymorphism? How does it relate to method overriding? 4.       Describe abstraction and provide an example from real-world scenarios. 5.       Differentiate between method overloading and method overriding. 6.       What is a constructor in Java? How is it different from a method? 7.       List and briefly explain the four access modifiers in Java. 8.       How do you declare a constant variable in Java? 9.       Define the terms "instance variable" and "class variable". 10.   Explain the purpose of the 'super' keyword in Java. 11.   Explain the term "method signat...

CoreJava-Java8 Features

Java 8   1.        What are the main features introduced in Java 8? Answer: Java 8 introduced several significant features, including Lambda expressions, Functional interfaces, Stream API, Default methods in interfaces, and the new Date and Time API (java.time package). Lambda expressions -  are anonymous functions that allow you to treat functionality as a method argument, or code as data. They provide a concise way to represent a method interface using a single abstract method (SAM). Functional interfaces -  are interfaces that have exactly one abstract method and may have any number of default or static methods. They are the target of lambda expressions and method references. Stream API -  is a powerful tool to process collections of data in a functional programming style. It allows you to perform aggregate operations (like filtering, mapping, reducing) on collections with ease. Default methods -  in interfaces...