Académique Documents
Professionnel Documents
Culture Documents
FOXPRO
I. FILL IN THE BLANKS:
1. To add more record at the end of any database file use the command .
Append
2. In FoxPro the field name must begin with a ..
3. The ..command is used to exit from FoxPro to DOS.
4. The list command list ..records on screen.
5. ? MOD (1965,100) returns ..
Character
Quit
All
65
Close
7. You can move the command window to any where on the screen press the key ..
Ctrl+F7
8. The .command can be used to search for data in a database file.
Locate
9. To modify the structure of a database file ..command is used.
structure
Modify
10. To define the page length for a report ,select page layout from .menu
11. The command to modify a report file is .
Report
Modify Report
STR()
clear
14. The ? command displays data in the next row whereas ?? display it in the
..row.
Current or same
15. ? Round (1234.6, -2) returns .
1200
mm/dd/yy
Year()
FOXPRO
24. If VALUE contains 10,500,STR (VALUE, 3) returns
25. command to assign CREATE to F9
CREATE:
Asterisks
SET FUNCTION F9 TO
26. Name of the file that holds the default macro set is .
27. command create empty character variable
28. command create memory variable.
Space()
DEFAULT.fky
?DATE()-1
3
190
32. The default file extension name used with program file is .
33. A comment line in a program beings with .or
.PRG
* or NOTE
TRIM()
25,43
USED()
SAVE
RECNO()
Character
.F.
Round()
ZAP
50. The function checks if value of an expression lies between values of two
specified expression.
Between()
FOXPRO
51. command allow you to execute any DOS command without quitting
FoxPro.
RUN
52. DATE () returns ..
System date
Browse
PACK
Ctrl+T
Ctrl+F8
10
DELETE
SET RELATION
APPEND FROM
True
False
True
True
False
True
False
False
11. ? PROPER (NEW DELHI is a nice city) displays New Delhi Is A Nice City.
True
12. Normally, the size of the sort file is the same as the original database file. However, it
can be less in some cases.
True
13. One can index a database file in the descending order in all cases.
False
14. If a database file contains 4 fields, its structural compound index file can have up to 4
tags.
False
15. Structural compound index fields do not face the problem of corrupted index.
True
16. When you open a database file that has a structural compound index file, the first index
tags becomes the controlling index tag.
False
17. Compact.idx files cannot be used with FoxPro version 1.0.
True
18. The independent compound index file of a database is opened automatically by FoxPro
whenever required.
False
19. One can create an index tag while defining the structure, but not while modifying the
structure of a database file.
False
20. The report window is divided into three parts.
21. To preview a report while designing it, Press ^P.
True
False
FOXPRO
22. REPORT FROM SAMPLE SCREEN displays the report on the screen.
23. The RECORD () function returns the current record number.
False
False
False
False
26. FoxPro for DOS cannot show bold letters while previewing a report.
True
27. One can enclose the report title within a box, but not a field in the detail line.
28. A field from the database cannot be included in pageheader.
False
False
False
False
False
32. REPORT FROM SALES DOUBLE displays the report in double spacing.
33. A one-dimensional array cannot be resized.
False
False
False
35. Only one array variable can be created with one DECLARE command.
False
False
False
False
False
False
False
42. Only numeric and character expression can be used with MIN()
43. The SUM command sums up the specified numeric variables.
False
False
44. If one enters COUNT after opening a database file, FoxPro displays the number of
records in the database file.
True
45. FLOOR(189.89) returns 190.
46. CEILING (189.89) returns 190.
47. MOD (1200,100) returns 12.
False
True
False
False
False
True
True
False
False
False
FOXPRO
57. A macro variable begins with &&
False
False
False
60. The key pressed in response to WAIT WINDOW is stored in a special variable.
III. SHORT NOTES:
1. Explain what is a database File, Record & Filed?
2. Browse can prohibits deletion of records
3. Writes a program to check number of words in a sentence?
4. FoxPro menu system has no option to delete records.
5. Explain the difference between the following
a) EDIT and CHANGE
b) DELETE and PACK
6. What is the procedure to edit the third record in a database file?
7. Explain sorting?
8. Write a program to display Floyd triangle.
9. Explain Indexing.
10. Explain the difference between the following
a) LIST and DISPLAY ALL
b) EDIT and PACK
11. Explain the use of SEARCH and LOCATE commands in FoxPro.
12. Explain COPY FILE command RENAME command?
13. Explain the features of FoxPro report?
14. Explain the difference between SORTING and INDEXING
15. Write a program to receive a word and display it in reverse order.
16. How will you join two tables? Write the steps?
17. Differentiate data processing and data management.
18. What are the advantages of relational database?
19. Writes a program to check whether the number is palindrome or not?
20. Explain the difference between the following
a) APPEND and APPEND BLANK
b) DOW() and CDOW()
21. Explain any five BROWSE options.
22. Write a program in FoxPro to print N fibonacci numbers.
23. Explain the difference between ACCEPT and INPUT.
24. Explain IF-ENDIF and DO CASE END CASE.
25. Writes a program to check whether the data starts with alphabet or digit?
False
FOXPRO
26. Write the advantages and drawbacks of DBMS.
27. How to create Index file on multiple fields.
28. Writes a program to display the multiplication table of 7.
29. How to create compound index file with the index dialogbox.
30. Explain how to create it and how entering data in memo field.
31. How to display and print labels in FoxPro.
32. Writes a program to check whether the number is Armstrong or not?
33. How to create Array Memory Variables.
34. Explain SCATTER and GATHER command.
35. Explain COPY TO ARRAY and APPEND FROM ARRAY.
36. Explain Macro?
37. How we record and Editing Macros.
38. Explain DBMS?
39. Explain what is a program file? How we are creating a program file?
40. Explain RTRIM (), LTRIM () and ALLTRIM () with suitable example?
41. Explain advanced features of @SAY command.
42. How to create a check box in FoxPro.
43. How to create a push button in FoxPro.
44. Explain different file manipulation functions in FoxPro
45. Explain the difference between LOCATE and SEEK
46. Writes a program to check whether the number is Prime or not?
47. Explain different types of fields in FoxPro.
48. Write a program to sort N names in alphabetical order.
49. Writes a program to check whether the number is odd or even.
50. Explain how to set a function in a key.