Wednesday, February 16, 2011

VBScript Advanced Questions

1)      Write a program to read data from a text file
2)      Write a program to write data into a text file
3)      Write a program to print all lines that contains a word either “testing” or “qtp”
4)      Write a program to display all files containing “demo” in their name
5)      Write a program to print all lines in a file that ends with “world”
6)      Write a program to check whether string starts with “Error”
7)      Write a program to Replace all words that contains “demo” in a file with the word “QTP”
8)      Write a program to check whether a string contains only alpha numeric’s
9)      Write a program to check whether given string is in date format
10)  Write a program to print all the lines ending with '$'
11)  Check whether middle three characters in a word contains alphanumeric
12)  Write a program to print the current folder name
13)  Write a program to print files in a given folder
14)  Write a program to print subfolders in a given folder
15)  Write a program to display files of a specific type
16)  Write a program to Retrieve all the rows in a table
17)  Write a program to find the name of columns in a table
18)  Write a program to find number of rows in each column
19)  Write a program to connect and print data from SQL Server database
20)  Write a program to retrieve specific field from the database table
21)  Write a program to open the two record sets
22)  Write a program to update the specific field in the database table
23)  Write a program to find number of rows in a table
24)  Write a program to send an email using outlook
     25)Write a program to print data present in all sheets of an excel files

No comments:

Post a Comment