What are the difference between vb studio and vbnet?
VB can be run with native support means you don't have to install any framework, library, run time environment etc in order to run an App which is built by VB.
Whereas VB.Net must requires a Dotnet Framework as a prerequisite for VB.Net app.........
VB app is run efficiently as compared to VB.Net......Because there VB app runs directly On OS kernel whereas VB.Net is firstly run on .Net Framework (CLR)* and then this CLR(Common Language Runtime) executes it on Os kernel so For VB.Net there is an extra of one layer for executing......
*CLR is a .Net Framework core component which translates the VB.Net app (or any other app which is built using .Net) into Machine language code.
1. Estimates (i.e. budget, schedule, etc.) become more realistic as work progresses, because important issues are discovered earlier.
2. It is more able to cope with the (nearly inevitable) changes that software development generally entails.
3. Software engineers (who can get restless with protracted design processes) can get their hands in and start working on a project earlier.
What is the difference between Visual Basic and Visual Basic.NET?
Differences between .Net and Java include
Functionality wise, there is not a lot of difference between the two, at least not when used to develop web applications.
For desktop applications, .Net naturally has an edge in Windows integration.
note: Oracle bought Sun Microsystems (Sun).
Explain the differences between Assembly Language and High Level Language?
Assembly language is used to write programs using the instruction set for a particular processor/controller.(example : 8051 or 8086 or MIPS).
Assembly Language require an ASSEMBLER to convert the assembly code to machine level code(HEX CODE)
High Level Language require a Compiler to convert into ASSEMBLY THEN machine level code.(Now-a-days compilers are smart enough to generate the machine code directly)
To write assembly code it is necessary to know the architecture of the processor or controller.
To write an High Level Program it is not neccessay to know the architecture completly.
Assembly language is not protable.
High Level Language is Portable.
with regards
Mohan Kumar.J
MCIS,
MANIPAL.
Assembly language is used to write programs using the instruction set for a particular processor/controller.(example : 8051 or 8086 or MIPS).
High Level Language is used to write programs using some grammer rules or languages created like C,PASCAL,FORTRN,JAVA.
Assembly Language require an ASSEMBLER to convert the assembly code to machine level code(HEX CODE)
High Level Language require a Compiler to convert into ASSEMBLY THEN machine level code.(Now-a-days compilers are smart enough to generate the machine code directly)
To write assembly code it is necessary to know the architecture of the processor or controller.
To write an High Level Program it is not neccessay to know the architecture completly.
Assembly language is not protable.
High Level Language is Portable.
with regards
Mohan Kumar.,
MCIS,
MANIPAL.
EACH HLL INSTRUCTION SPECIFY SEVERAL INSTRUCTIONS IN isa OF COMPUTER. WHEREAS EACH aSSEMBLY LEVEL INSTRUCTION SPECIFIES A SINGLE INSTRUCTION IN ISA OR MACHINE LEVEL LANGUAGE
PRIYA BAJAJ
WIPRO TECHNOLOGIES
BANGALORE
Answer--Assembly language :-A programming language that is once removed from a computer's machine language. Machine languages consist entirely of numbers and are almost impossible for humans to read and write. Assembly languages have the same structure and set of commands as machine languages, but they enable a programmer to use names instead of numbers.
Each type of CPU has its own machine language and assembly language, so an assembly language program written for one type of CPU won't run on another. In the early days of programming, all programs were written in assembly language. Now, most programs are written in a high-level language such as FORTRAN or C. Programmers still use assembly language when speed is essential or when they need to perform an operation that isn't possible in a high-level language.
High-level language:-
-JP Morgan
A programming language such as C, FORTRAN, or Pascal that enables a programmer to write programs that are more or less independent of a particular type of computer. Such languages are considered high-level because they are closer to human languages and further from machine languages. In contrast, assembly languages are considered low-level because they are very close to machine languages.
The main advantage of high-level languages over low-level languages is that they are easier to read, write, and maintain. Ultimately, programs written in a high-level language must be translated into machine language by a compiler or interpreter.
The first high-level programming languages were designed in the 1950s. Now there are dozens of different languages, including Ada, Algol, BASIC, COBOL, C, C++, FORTRAN, LISP, Pascal, and Prolog.
An assembly language is where each statement corresponds to one machine instruction. A high level language is where each statement corresponds to more than one, sometimes many, machine instructions.
Pointer is a variable holding a memory address?
pointer is a derived datatype which contains memory addresses as their values.
program:-
#include<stdio.h>
#include<conio.h>
void main()
{
int m=5,*p;
clrscr();
p=&m;
printf("address of variable m is %p",(void *)p);
}
Write a Java program to find occurrences of given word in a text?
/*this block of code fineds any given string in tree different file
displays the string and prints the number of occurences in these file....thats all:)*/
package useToken;
import java.io.*;
class readFile extends StreamTokenizer {
readFile(InputStream in ){
super(in);
}
public static void main (String argv[]){
try {
int ret;
String string;
BufferedReader in =
new BufferedReader (newInputStreamReader(System.in));
System.out.print("Enter some text: ");
string = in.readLine();
String[] file = {"file1.txt","file2.txt","file3.txt"};
for(int i=0;i<3;i++){
FileInputStream fin = new FileInputStream(file[i]);
readFile rt = new readFile(fin);
int counter =0;
while((ret = rt.nextToken())!= 0 && rt.sval != null){
if(rt.sval.equals(string)){
System.out.println("Found Text :" + rt.sval );
counter++;
}
}
System.out.println("The String Found :" + counter + " " + "times");
System.out.println(file[i] + " " + "Complete");
}
} catch (Exception e ){
System.err.println("Exception :" + e);
}
}
}
Write a program to find the frequency of words in a sentence in java programing?
//program to find occurence of a word in a sentence
import java.io.*;
public class cnt2
{
public static void main(String args[])throws IOException
{
int times=0,count=0,x=0,no=0;
InputStreamReader ir=new InputStreamReader(System.in);
BufferedReader br=new BufferedReader(ir);
String s,w;
System.out.println("Enter the sentence:");
s=br.readLine();
System.out.println("Enter the word:");
w=br.readLine();
try{
for(int i=0;i { if(w.charAt(0)==s.charAt(i)) { for(int j=0;j { if(s.charAt(i)==w.charAt(j)) { count=count+1;} if(count==w.length()) {no=no+1;count=0;}; } } } catch(Exception e){} if(no==0) { System.out.println("word is not present"); } else { System.out.println("word is present "+no+" times"); } } }
What is significance attached to the main function in C programming?
The main function in C++ is no different to any other function, other than it is the only required function; it defines the entry point of the application. The minimal main function (and therefore the minimal C++ program) is:
#include <stdio.h>
int main()
{
return(0);
}
The main function must always return an integer to the caller (even if not required by the caller). A return value of zero is usually used to indicate the program terminated successfully, however it is up to the programmer to decide what the return value actually means to the caller. It is common to return (-1) upon an unrecoverable error.
When should a switch statement be used?
switch is a loop which is used for checking various conditions and print corresponding matter.
switch(a)//where a is that whose condition you have to check.
#include
main()
{
char a;
printf("enter a char.");
scanf("%c",&a);
switch(a)
{
case 'a':printf("vowel");break;
case 'e':printf("vowel");break;
case 'i':printf("vowel");break;
case 'o':printf("vowel");break;
case 'u':printf("vowel");break;
default:printf("consonent");
}
}
What are the characteristic of Object Oriented programming?
the features of oop are:
Functions that operate on the data of an object are tied together in the data structure.
Data is Hidden and cannot be accessed by external functions.
others are :
· Robust
· Multi threaded
· Architecture Neutral
· High Performance
· Distributed
· Dynamic
A formal perimeter refers to an identifier that is used in a method to stand for the value that is passed into the method by a caller. An actual perimeter on the other hand refers to the actual value that is passed into the method by a caller.
Remarks in any computing language are so programmers can make comments in the code. The comments only help programmers, and do nothing for the program or the end users. Comments are not code and don't do anything to the program. They are just a way for programmers to make little reminders about what the code does.
How do you prepare for Dot net certification?
Dot net is most popular programming language for Microsoft .NET Framework. You can go through from the book . Just see professional book by Wrox. The best way is also for industrial training and more you should go through practical often. Now a day online classes are also available.
How should you Swap 2 numbers in a single line?
Swapping two values in a single statement is made possible through a series of three XOR/assign operations, alternating the operands.
Consider the following declarations:
int x = 0;
int y = 1;
The following statement will swap the values of x and y:
x ^= y ^= x ^= y; // swap
The same statement implemented as a function:
void swap(int &x, int &y){ x ^= y ^= x ^= y; }
How do you make a pop-up messagebox by pressing a button in visual basic?
Example:
MsgBox("This is an example!", MsgBoxStyle.Information, "Example")
or:
MsgBox("This is an example!", MsgBoxStyle.Exclamation, "Example")
or:
MsgBox("This is an example!", MsgBoxStyle.Critical, "Example")
you can choose between one of these three styles.
just add one of these in the line where you want it to be displayed like:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
MsgBox("This is an example!", MsgBoxStyle.Information, "Example")
End Sub
What is advantages and disadvantages of re transister model and hybrid model?
Re-model is made of only resistor.
It gives real time operation i.e you can calculate all the values.
SAP is a ERP package which stands for Systems, Applications and Products in data processing. It is a software catering to the business needs of an enterprise beginning with finance, HR, supply chain, production, sales, quality, maintenance, etc. It is written in SAP's proprietary language ABAP(Advanced business application program). There are other meaning for SAP on lighter note. 'Sab aadmi paagal or parishaan'. This is because once SAP is implemented it streamlines the business and those who are using the software feels the heat initially.
How do you make a save button for a txt file in visual basic?
Go to your button and double click it to go to the code then add this
Dim NameOfFile as String
NameOfFile = InputBox("Enter the Name of The File", "")
Dim objWriter As New System.IO.StreamWriter("C:/" & NameOfFile.ToString & ".txt")
Msgbox("COMPLEATE")
How do you make a button click another button?
This is not possible, but you can make it appear that way, for example, get a video component, set the visible to false, get a button, make the video play an animation of a clicked button, and once another button is clicked the orignal button dissapears and the video player appears and plays a short animation of a clicked button.
What is advantage of overloading main method?
Practically speaking, there is no advantage in overloading the main method because, eitherways the main method of the current class only gets executed and not any of the parent classes, the current class might extend.
Where can you get a Jetbrains ReSharper discount?
The best place to check for Jetbrains discount is the Jetbrains website. The company often offers discounts and specials, especially for the those starting a software business.
What is the first rule in a structured loop?
First rule - you never talk about first rule of a structured loop.
Haha i kid. It's to ensure that it will end cleanly and not run infinitely.
How to display the text box value in another form using VB.NET?
You can display a textbox value in another form using Vb.NET. Simply by inputing this line of code:
'You can put this code anywhere under a Private Sub or Sub'
'I Will use an example of a textbox named "testabc" and "othertextacbc
TestAbc.Text = frmMain.OtherTextAbc.Text
'You can replace the "frmMain with the form you are trying to access.
Print 1-10 numbers using while loop?
public static void main(String args){
int counter = 0; //initialize the counter variable to 0
while (counter < 10){ //while the counter variable is less than 10...
counter ++; //increase the counter variable by 1
System.out.println(counter); //print the counter variable
}
}
Why are home row key important?
It is the line of keys that you place your fingers on when typing. This is a way that most people type fastly.