Skip to main content

Posts

Mobile Application Development(mad) Short Question

1) Define Bluetooth technology. Bluetooth technology is a wireless communication standard that allows devices to connect and exchange data over short distances using radio waves. It is commonly used for connecting devices like smartphones, headphones, and other peripherals. 2)How to write comment in XML? In XML, you can write comments by enclosing the text within <!-- and -->, like this: <!-- This is a comment in XML --> 3) What is Android Virtual Device? An Android Virtual Device (AVD) is an emulation of an Android device, created and managed by the Android Emulator. It allows developers to test and run Android applications on a computer without the need for physical hardware. 4) Listout declaration rules of XML. Declaration rules in XML: XML documents must have a single root element. Element names are case-sensitive. Attribute values must be enclosed in quotes. Nesting of elements should be well-formed, with proper opening and closing tags. Special characters like <, ...

9. Jumps Statement in c++

➢ Jumps in Loops:- ➢ C++ break and continue Statement:-                     There are two statements (break; and continue ;) built in C++ programming to alter the normal flow of program.                     Loops are used to perform repetitive task until test expression is false but sometimes it is desirable to skip some statement/s inside loop or terminate the loop immediately with checking test condition. On these type of scenarios, continue; statement and break; statement is used respectively. The break; statement is also used to terminate switch statement. 1) break Statement :-                       The break; statement terminates the loop(for, while and do..while loop) and switch statement immediately when it appears . Syntax of break :- break;              ...

8. Looping Statement

  ➢ Looping Statement  :-                In computer programming, loop cause a certain piece of program to be executed a certain number of times. Consider these scenarios:                 • You want to execute some code/s certain number of time.                 • You want to execute some code/s certain number of times depending upon input from user.                 These types of task can be solved in programming using loops.                 There are 3 types of loops in C++ Programming:                                • for Loop                            ...

7. Switch Statement in c++

 ❖ C++ switch Statement :-                Consider a situation in which, only one block of code needs to be executed among many blocks. This type of situation can be handled using nested if...else statement but, the better way of handling this type of problem is using switch...case statement.  Syntax of switch:-      Switch(expression) {            Case value1 : statement1;                       Break;             Case value2 : statement2;                      Break;             Default : default statements;  }               The expression is either an integer or a character in above syntax. If the expression matches constant in case, the relevant codes a...

6. Conditional Statements

●  Conditional Statements:-                 The if, if...else and nested if...else statement are used to make one-time decisions in C++ Programming, that is, to execute some code/s and ignore some code/s depending upon the test condition. Without decision making, the program runs in similar way every time. Decision making is an important feature of every programming language using C++ programming.  1) Simple if Statement:-                 The if statement checks whether the test condition is true or not. If the test condition is true, it executes the code/s inside the body of if statement. But it the test condition is false, it skips the code/s inside the body of if statement.  Structure of if Statement:-   if (Boolean Expresson)  {  /* if Expression is true */  Statements;  }  ●  Flowchart of if :- Example program:- #include  <iostream.h...

5. Operator of c++

  Operators:-               An operator is a symbol that tells the compiler to perform specific mathematical operation or logical manipulations. C++ provides the following type of operators. 1) Arithmetic Operators  2) Relational Operators  3) Logical Operators  4) Bitwise Operators  5) Assignment Operators  6) Misc Operators  1) Arithmatic Operators:-              There are following arithmetic operators supported by c++ language. Assume variable A holds 10 and variable b holds 20 then, Operator Description Example + Adds two operands A+B will give 30 - Subtracts second operand from the first A - B will give -10 * Multiplies both operands A * B will give 200 / Divid...

4. Data types of c++

  •  Data Types :-                While writing program in any language, you need to use various variables to store various information. Variables are nothing but reserved memory locations to store values. This means that when you create a variable you reserve some space in memory. The following table shows the variable type, how much memory it takes to store the value in memory, and what is maximum and minimum value which can be stored in such type of variables. •  Types of Data types:- 1.Primary (fundamental) data types.  2.Derived data types.  3.User-defined data types