Code Snippets Interview Questions
Questions Answers Views Company eMail

How we print the table of 3 using for loop in c programing?

7 11540

what is the use of using for loop as "for(;;)"?

Satyam,

5 7725

How to count a sum, when the numbers are read from stdin and stored into a structure?

1 4181

how many processes will gate created execution of -------- fork(); fork(); fork(); -------- Please Explain... Thanks in advance..!

GATE,

8 23613

What is an XML? Difference between HTML & XML?

LG Soft,

2 4806

how the value of label is printed through a button in asp.net web application

3 5490

how to print 1 2 3 4 5 6 7 8 9 10 9 8 7 6 5 4 3 2 1 using any loop(for or while) only once(only 1 loop) and maximum 2 variables using C.

Cap Gemini, Infosys,

19 43801

Assume in University Every student in university as entity, prepare a class for student that store the roll no, name, dob of student, and make funtion of deletion, manipulation, addition of student record.

2501

What is data _null_? ,Explain with code when u need to use it in data step programming ?

Abbott,

3008

why do you use macros? Explain a situation where you had to incorporate macros in your proc report? use a simple instream data example with code ?

2492

What is the difference between proc means and proc tabulate ? explain with a simple example when you have to use means or tabulate?

1 4037

What is the match merge ? compare data step match merge with proc sql merge - how many types are there ? data step vs proc sql

2621

can you use proc sql to manpulate a data set or would u prefer to use proc report ? if so why ? make up an example and explain in detail

TCS,

2559

can any one give me code to keyed a flat file and used chain in RPGLE to search any item

1824

#include #include void main() { char str[10]; int,a,x,sw=0; clrscr(); printf("Enter a string:"); gets(str); for(x=0;x<=a;a++); for(x=0;x<=a;x++) { if(str[x]==str[a-1-x]) { sw=1; } else sw=0; } if(sw==10 printf("The entered string is palindrome:"); else printf("The entered string is not a palindrome:); } getch(); } wht would be the explanation with this written code???

2 9186


Un-Answered Questions { Code Snippets }

Write a Program to find the number of words in a sentence.

676


How to find No of classes,Packages,No of Methods per Classes and Depth of Inheritance for selecting source code in windows form application using c# .net? (Source code is input Program. It may be Java or .net) Please help me..) Thanks..)

2425


What is the functionality of SendMessage?

734


write a program that reads a series of strings and prints only those strings begging with letter "b"

2864


plzzzzzzzzz xplain this code import java.awt.*; import java.awt.event.*; public class Link extends Frame implements ActionListener { Label l1; Button b1; public static void main(String sr[]) { new Link().setVisible(true); } public Link() { super("Warning"); setSize(500,500); setBackground(Color.lightGray); setLayout(null); l1=new Label("There is no Link"); l1.setBounds(0,0,500,460); l1.setFont(new Font("TimesRoman",Font.BOLD,35)); l1.setAlignment(Label.CENTER); add(l1); b1=new Button("QUIT"); b1.setBackground(Color.orange); b1.setBounds(0,460,500,40); b1.addActionListener(this); add(b1); } public void actionPerformed(ActionEvent e) { this.dispose(); } }

1705






Code for Easily Using Hash Table?

2622


Write a function to efficiently convert a floating point number to a rational number. For example, given 0.125 return "1/8"

1306


How to store the iterations value in some variable/ in excel? Dim objExcel, ObjFolder, objPath, objWorkbook, objSheet, ObjFSo, ObjFolderName, strExcelPath Const xlExcel7 = 39 ObjFolderName = "Testing" & Hour(time()) & Minute(time()) &Second(time()) objPath = "D:\" strExcelPath = objPath & ObjFolderName & "\testing.xls" Set ObjFSo = CreateObject("Scripting.FileSystemObject") Set objFolder = objFSO.CreateFolder(objPath & ObjFolderName) On Error Resume Next Set objExcel = CreateObject("Excel.Application") If (Err.Number <> 0) Then On Error GoTo 0 Wscript.Echo "Excel application not found." Wscript.Quit End If On Error GoTo 0 Set objWorkbook = objExcel.Workbooks.Add() Set objSheet = objExcel.ActiveWorkbook.Worksheets(1) Dim arr1, arr2, arr3 Set outputLines = CreateObject ("System.Collections.ArrayList") arr1 = 123arr2 = 99 arr3 = 10 outputLines.Add arr1 outputLines.Add arr2 outputLines.Add arr3 outputLines.Sort() For Each outputLine in outputLines WScript.Echo outputLine ' how to store this value in excel/ variable? Next objExcel.ActiveWorkbook.SaveAs strExcelPath, xlExcel7 objExcel.ActiveWorkbook.Close objExcel.Application.Quit This above code is working fine but the qs is is there any way to store the sort data in variables / in the excel and how?

2586


What is XSNL?

435


What is used of serialize and unserialize in php?

2719


For printing a message we use System.out.println in normal programs. We use String msg="text....."; Can't we use String msg=" " in normal programs and System.out.println("........") in applets. Please answer this question?

2382


Teta-Omeg-Big-Oh Show that f(n) = n2 + 3n3 is ;(n3).

3366


Which tag is used to find the version of XML and the syntax?

454


how to write a program that opens a file and display in reverse order?

2760


code to get the coordinates of a Click Event

1933