Page 125 - Open Soource Technologies 304.indd
P. 125

Unit 5: VB String and Operators



               Fixed length strings: Fixed length strings are automatically filled with spaces to pad them to their
               fixed-length.

               Logical operators: It compares Boolean expressions and return a Boolean result.
               Path compact path ex: It is the converse of the size string. It is used to shorten a string to a
               specified length. It is intended to trim fully qualified filenames to a specified number of
               characters, etc.


                              1. How can I find the strings after compilation?
                              2. How do I search for files and replace strings within them?




               5.7  Self Assessment Questions

                  1. Strings are automatically filled with spaces to pad them to their fixed length
                     (a) Constant _ length        (b) Fixed-length
                     (c) Variable-length          (d) None of the above
                  2. The API Function will put a __________ character at the end of the actual dath in the string
                    variable.
                     (a) Null                     (b) Zero

                     (c) Two                      (d) All of the above
                  3. Integer division divides one number into another, and then velirns the inliger portion of
                    the result.
                     (a) True                     (b) False
                  4. Function is used to sent keys to the programme that curreatly has the windows focuss.

                     (a) AppActive ()             (b) Sendkeys ()
                     (c) Choose ()                (d) Switch ()
                  5. Not operator performs logical negation on a Boolean expression.
                     (a) True                     (b) False

               5.8 Review Questions

                  1. Define the logical operator.

                  2. How many positions does a string of eight characters have?
                  3. What is the highest numbered position for a string of eight characters?
                  4. What is the difference between a database and data structure?
                  5. Can I send keystrokes to a DOS application?
                  6. How to create a form with resizing borders and no title bar?




                                      LOVELY PROFESSIONAL UNIVERSITY                        119
   120   121   122   123   124   125   126   127   128   129   130