Skip to main content

Featured

Chemical formula

Example: Balanced Chemical Equations with Subscripts Water: $$\ce{H2O}$$ Carbon dioxide: $$\ce{CO2}$$ Iron(III) hydroxide (Rust reaction): $$\ce{4Fe + 3O2 + 6H2O -> 4Fe(OH)3}$$ Copper(II) sulfate pentahydrate: $$\ce{CuSO4 * 5H2O}$$ Chemical Formulas in Chemistry Chemical formulas are the symbolic representations of chemical substances. They show the elements present in a compound and the ratio in which the atoms of these elements combine. Chemical formulas are essential for understanding the composition, structure, and behavior of compounds in chemical reactions. 1. What is a Chemical Formula? A chemical formula uses symbols of elements and numerical subscripts to represent the composition of a substance. For example, the formula for water is: $$ \ce{H2O} $$ This indicates that each water molecule is made up of 2 atoms of hydrogen and 1 atom of oxygen. 2. Types of Chemical Formulas Empirical Formula Molecular Formula Structural Formula...

Fundamentals of Java

Here are 4 MCQs on the fundamentals of Java:
1. Which of the following is NOT a valid Java keyword?
a) static
b) interface
c) unsigned
d) abstract
2. What is the correct way to declare a constant in Java?
a) final int MAX_VALUE = 100;
b) const int MAX_VALUE = 100;
c) static int MAX_VALUE = 100;
d) int MAX_VALUE = 100;
3. Which Java access modifier provides the highest level of restriction (most private)?
a) protected
b) public
c) default (package-private)
d) private
4. What will be the output of the following Java code snippet?
public class MyClass {
    public static void main(String[] args) {
        int x = 5;
        System.out.println(x++);
    }
}

a) 5
b) 6
c) Compilation Error
d) Runtime Error
Answers:
 * c) unsigned
 * a) final int MAX_VALUE = 100;
 * d) private
 * a) 5

Comments

Popular Posts