Comment and like to get the source code
- Home
- Archives for2021
image এর উপর মাউস রাখার সাথে সাথে কিভাবে তার পাশে Image টি display হয় তার source code টি নিম্নে উল্লেখ করা হল-
<========================================================>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Image Change</title>
<link rel="stylesheet" type="text/css" href="style1.css">
</head>
<body>
<div class="container">
<ul class="thumb">
<li> <a href="ant1.jpg" targer="imgBox"><img src="ant.jpg"/></a></li>
<li> <a href="apple1.jpg" targer="imgBox"><img src="apple.jpg"/></a></li>
<li> <a href="arrow1.jpg" targer="imgBox"><img src="arrow.jpg"/></a></li>
<li> <a href="aunt1.jpg" targer="imgBox"><img src="aunt.png"/></a></li>
</ul>
<div class="imgBox"><img src="ant1.jpg"/></div>
</div>
<script src="https://code.jquery.com/jquery-3.6.0.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('.thumb a').mouseover(function(e)
{
e.preventDefault();
$('.imgBox img').attr("src",$(this).attr("href"));
})
})
</script>
</body>
</html>
CSS source Code
body{
margin: 0;
padding:0;
}
.container
{
position:absolute;
top:50%;
left:50%;
transform:translate(-50%,-50%);
}
ul. thumb
{
margin: 0 auto;
padding:0;
float:left;
}
ul.thumb li
{
list-style: none;
margin:5px;
width:100px;
height: 100px;
border:1px solid rgba(134, 74, 74, 0.2);
overflow:hidden;
}
ul.thumb li img{
width:100%;
}
.imgBox{
float:left;
width:500px;
height:500px;
border:1px solid rgba(124, 78, 78, 0.2);
overflow:hidden;
}
Call by Value এবং Call by Reference ব্যাখ্যা কর ।
Call By Value | Call By Reference |
---|---|
Original Value এর কোনো পরিবর্তন হয় না। | এখানে Original Value এর পরিবর্তন হয় । |
এখানে ভেরিয়েবলের অনুলিপি (Copy of variable) পাস হয়ে থাকে। | এখানে ভেরিয়েবল নিজেই পাস হয়ে থাকে। |
Actual এবং Formal Argument ভিন্ন ভিন্ন Memory Location এ তৈরি হয় । | Actual এবং Formal Argument একই Memory Location এ তৈরি হয়। |
ভেরিয়েবলের মান কে একটি সরল পদ্ধতি ব্যবহার করে পাস করা হয় | ভেরিয়েবলের ঠিকানা (Address of Variable)সঞ্চয় করতে পয়েন্টার এর প্রয়োজন হয় । |
int main() { int x = 10; | int main() { int x = 10; |
Sequential Logic Circuit
What is Sequential Logic Circuit (সিকোয়েন্সিয়াল লজিক সার্কিট কি)?
The sequential Logic Circuit has a memory so output depends on the input. Sequential Logic Circuits use flip-flops as memory elements.
[সিকোয়েন্সিয়াল লজিক সার্কিটের মেমরি রয়েছে তাই আউটপুট ইনপুটের উপর নির্ভর করে। সিকোয়েন্সিয়াল লজিক সার্কিট মেমরি উপাদান হিসাবে ফ্লিপ ফ্লপ ব্যবহার করে ।]
Flip Flop vs Latch
What is Flip Flop (Flip flop কাকে বলে )?
What is Latch (Latch কাকে বলে )?
S-R FlipFlop কাকে বলে ?
D(Data or Delay)-FlipFlop
J-K-FlipFlop
Register, Clock Pulse, and Trigger
নিম্নলিখিত ভিডিও র মাধ্যমে গুরুত্বপূর্ন কয়েকটি Register -এর সম্পূর্ণ ব্যাখা দেওয়া হয়েছে।
Counter In Digital Electronics: Asynchronous Counter
Year Basis Question and Answer Of C++
[2015]
1) Do the Following Task using C++ language in OOP
[2016]
a) Write a program in C++ that accepts two number as input and find the sum using class and object
Answer:
b) What is Polymorphism? Explain with example
Answer:
polymorphism is an important concept of object-oriented programming.it means having many forms. Inheritance lets us inherit attributes and methods from another class. Polymorphism uses those methods to perform different tasks. This allows us to perform a single action in different ways.
Example:
[2017]
a) Write a program in C++ to check an integer whether it is odd or even using class and object?
Answer:
b) What do you mean by Data Member? Give example?
Data Members are variable which are declared in any class by using any fundamental data types
(like int, char, float etc) or derived data type (like class, structure, pointer etc.).
There are two types of data member
1) Private 2) Public
Example:
OR
a) Give the difference between public and private member of the class in C++
Answer:
Public | Private |
---|---|
1. All the class members and functions are available to everyone. |
1.The class members can be accessed only by the functions inside the class. |
2. The public member can be accessed from anywhere in the program using the dot operator(.)with the object |
2.the member functions or the friend functions are allowed to access the private data members of a class |
Example: |
Example: |
b) Describe the characteristic of destructor in C++
Answer:
The destructor has the same name as that of the class prefixed by the tilde character ‘~’.
The destructor cannot have parameters.
It has no return type
-
there can be only one destructor in a class
The destructor is executed automatically when the control reaches the end of the class scope to destroy the object
c) What do you mean by "get from" Operator in C++? Give example?
Ans: Extraction Operator (>>) sometimes known as "get from" operator which is usually used for input data from the user.
[2018]
a) Write a program in C++ using class and object to check an integer whether is a prime number or not.
Answer:
b) What is the member function? Give example?
A member function of a class is a function that has its definition or its prototype within or outside the class. member function knows as a method also.
There are two way to define a function
1) inside the class-defined directly
2) outside of the class- using scope resolution operator(::) along with class name
Example:
OR
a) Write a program in C++ to find out the factorial of a given integer (N!= 1x2x3x........N)
Answer:
b) How a member function can be declared outside of the class? Give example?
Anwser:
A member function can be declared outside of the class using the scope resolution operator (::) along with the class name.
Example:
[2019]
a) Write a program in C++ using class and object to find out the sum 1 to N where N is an integer given as input.
Answer:b)Write a function of setw and endl manipulator.
Answer:
endl
This manipulator has the same functionality as ‘\n’(newline character). But this also flushes the output stream.
setw()
This manipulator declare in imanip.h . it changes the width of the output field. When used in an expression out << setw(n)output field.
Example:
OR
a) Write a program in C++ to print the reverse of given number.
Answer:
b) what do you mean by reference variable? Give example?
Answer:
When a variable is declared as a reference, it becomes an alternative name for an existing variable. A variable can be declared as a reference by putting '&' in the declaration.
Example: