Free Essay

Researching Variable Naming Rules

In:

Submitted By azncarsgln
Words 702
Pages 3
PT 1420 Unit 2 Research Assignment 1
12/28/2013
Unit 2 Research Assignment 1: Researching Variable Naming Rules
Variable Naming Rules of Visual Basic * The first character must be a letter. * The usage of spaces, period (.), comma (,), Exclamation mark (!), or the characters @, &, $, # in the variable name are not allowed, but the underscore (_) is a valid character. * The name must be less than 256 characters in length. * You cannot use any names that are the identical as the functions, statements, and methods in Visual Basic.
Variable Naming Rules of Python * The first character of the variable name must begin with a letter (a – z, A – Z), or an underscore (_). * The name can only consist of letters, numbers, and underscores (no special characters). * Variable names are case sensitive. * The variable name cannot be identical as a reserved name in Python due to the fact that Python uses them for other things.

Variable Naming Rules of Java * Variable names are case sensitive. * A variable name can be any length as long as it is within the Unicode letter and digit standard, also you should use a letter as the first character of the variable word. You are allowed to use the dollar sign or underscore ($, _ ) as a first character but it isn’t recommended. * The only characters other than letters and number that can be used is the dollar sign and underscore (“$”, “_”), and no other special characters may be allowed. * If you are only using one word for the variable name it is advised to use all lower case. In the case of the variable name being more than one word you should capitalize the first letter of the following word or words. * You cannot use a reserved word or keyword for the variable name.
Similarities and Differences of Visual Basic, Python, and Java Similarities | Differences | 1. You are not allowed to use a reserved word or keyword as the variable name. | 1. The only language that requires the first character of the variable name to be a letter is VB. In both Python and Java you can use the underscore (_) as the first character of the variable word, but it is not recommended. | 2. The underscore character (_) is allowed in all three languages. | 2. The dollar sign ($) is only allowed in the Java language, but in VB and Python it is not allowed. | 3. You are not allowed to use white space in the variable name. | 3. In all three languages, there are different restrictions to the variable words. For instance, in VB you can only use up to 255 characters in the variable word, and on the other hand you can use a lot more in Python and in Java it is unlimited. Another example differences is the case sensitivity, in which both Python and Java are case sensitive in the variable names as VB isn’t case sensitive. |

Citations 1. Visual Basic Naming Rules. (n.d.). Â [Visual Basic for Applications Language Reference Help for Office 2007]. Retrieved December 28, 2013, from http://msdn.microsoft.com/en-us/library/office/ee440536(v=office.12).aspx 2. Rules for Naming Variables in Visual Basic. (n.d.). <i> Invalid & Valid Variable Names</i>. Retrieved December 28, 2013, from http://virtual.parkland.edu/kcouch/CIS122/Week2/Exercises/goodname%20badname%20answers.htm 3. Python Variable Naming Rules | Programmr. (n.d.). <i>Python Variable Naming Rules | Programmr</i>. Retrieved December 28, 2013, from http://www.programmr.com/index.php?q=python-variable-naming-rules 4. Python Variable. (n.d.). <i>w3resource</i>. Retrieved December 28, 2013, from http://www.w3resource.com/python/python-variable.php 5. Severance, C. (n.d.). Variables, Expressions, and Statements. Python Learn. Retrieved December 28, 2013, from http://www.py4inf.com/lectures/Py4Inf-02-Expressions.pdf 6. Variables. (n.d.). (The Java™ Tutorials > Learning the Java Language > Language Basics). Retrieved December 31, 2013, from http://docs.oracle.com/javase/tutorial/java/nutsandbolts/variables.html 7. Java variable naming rules. (n.d.). Learn Programming Language Step By Step. Retrieved December 31, 2013, from http://www.c4learn.com/java/java-variable-naming-rules/

Similar Documents

Premium Essay

Pt1420 Researching Variable Naming Rules

...Just like any spoken language, rules must be followed in order to create effective communication between two people. For programming languages, it is necessary to follow all naming rules in order to build the program. Visual Basic’s variable name rules are as follows: Up to 255 characters, names must begin with a letter, no embedded spaces or special characters are to be used besides the underscore “__”, there cannot be a reserved word, uppercase and lowercase should be used with a purpose, and names cannot be repeated with the same level of scope (Visual Basic Naming Rules). If a developer does not follow these rules when using Visual Basic, there will be errors that may occur even before the program can be tested. Python Python is another common programming language, and was influenced by the design of ABC (Lukaszewski). In the 1996, Guido van Rossum created his very own version of ABCs, which we all know now as Python (Lukaszewski). Python is a basic syntax used for statement grouping, a list, strings, and numbers (Lukaszewski). Because it is another programming language, it also has its very own rules. Some rules are slightly different from Visual Basic, but all rules for Python are as follows: All names must begin with a letter or underscore, other characters can be letters, numbers or “__”, can be any (reasonable) length, it is case sensitive, and some reserved words cannot be used. Just like Visual Basic, not following these naming rules will result...

Words: 653 - Pages: 3

Premium Essay

Unit 2 Research Assignment

...1, 2014 Researching Variable Naming Rules The variable naming rules for Visual Basic, Python, and Java have many different facets to them. These are the most common and most used programming languages in use today. Over the years these languages have become more user-friendly and easier to comprehend to write programs. Visual Basic is most used in introductory program writing and common for students’ first learning of programming. Some of the naming rules for Visual Basic are: the first character of the name must be a letter, you can’t use a space, period, exclamation point, or these special characters - &, @, $, or # in the name, the name cant’ exceed 255 characters in length, and Visual Basic isn't case-sensitive, but it preserves the capitalization in the statement where the name is declared. (Microsoft, 2014) Python provides a special process called the PEP process, short for Python Enhancement Process for changes proposed to Python. (University, 2014) Some of the naming rules for Python are as follows : indentation should be done using four spaces per indentation level, lines should be less than 80 characters as compared to Visual Basic and its use of a maximum of 255 characters, and lines that get too long should be aligned in a “reasonable” fashion, for example aligned with an open delimiter and at a different indentation level than any following indented suites. These are just some of the parameters to consider when naming in Python as...

Words: 625 - Pages: 3

Premium Essay

Variable Naming Rules

...PT 1420 U2R1: Researching Variable Rules The following rules should be observed when naming procedures, constants, variables, and arguments in a Visual Basic module: * A letter must be used as the first character. * A space, Period (.), exclamation mark (!), and the characters, @, &, #, cannot be used in the name. * 255 characters is the maximum amount of characters a name can contain. * Names should not generally be the same as functions, statements or methods. Keywords from the language end up being shadowed. To use an intrinsic (natural, or essential) language, function, statement that happens to conflict with an assigned name, it must be explicitly identified; one must precede the intrinsic command with the name of the associated type library. For example, if a variable is named, “function,” one must use “VBA.function,” to invoke the function used in a name. * Visual Basic isn't case-sensitive, but it preserves the capitalization in the statement where the name is declared. When using Python the variable naming rules apply as such: * Must begin with a letter (a - z, A - B) or underscore (_) * Any other characters can be letters, numbers or _ * Case Sensitive. * Can be any (reasonable) length. There are some reserved words which you cannot use as a variable name because Python uses them. These words consist of: and, del, from, not, while, as, elif, global, or, with, assert, else, if, pass, yield, break, except...

Words: 616 - Pages: 3

Premium Essay

Programming

...to define a program’s structure. Formulate solution algorithms for calculations by properly following the order of operations. Assignment Requirements Answer: * Short Answer 1, 2, 3, and 4 on page 71 * Algorithm Workbench Review Questions 1 and 2 on page 71 * Programming Exercises Questions 1 and 4, starting on page 72 Required Resources Textbook Submission Requirements Submit your written answers to your instructor at the beginning of Unit 3. Unit 2 Research Assignment 1: Researching Variable Naming Rules Learning Objectives and Outcomes Determine program input, processing, and output stages. Create the necessary flowcharts to describe a program’s structure. Use pseudocode to define a program’s structure. Formulate solution algorithms for calculations by properly following the order of operations. Assignment Requirements Use the Internet and the ITT Tech Virtual Library to research the following questions: What are the variable naming rules of Visual Basic, Python, and Java? List three similarities and differences in between the three programming languages. Required Resources Textbook ITT Tech Virtual Library: http://library.itt-tech.edu Submission Requirements Submit your written answers to your instructor at the beginning of Unit 3. Labs Unit 2 Lab 2.1: Pseudocode Learning Objectives and Outcomes * Use pseudocode to define a program’s structure. * Formulate solution algorithms for calculations by properly following...

Words: 450 - Pages: 2

Premium Essay

Its Making Put Something Here

...PT1420 Introduction to Programming Week-2 Lesson Plan TUE 6:00 PM to 10:30 PM Instructor: Tushar Patel (tspatel02@yahoo.com, tpatel@itt-tech.edu) CLASS: Topic: Unit 2: Software Program Design I Course Objectives Covered by This Unit CO2: Design programs by using flowcharts and pseudo code. CO3: Write programs that perform input, processing, and output. Unit Learning Outcomes LO8: Determine program input, processing, and output stages. LO9: Create the necessary flowcharts to describe a program’s structure. LO10: Use pseudocode to define a program’s structure. LO11: Formulate solution algorithms for calculations by properly following the order of operations. Key Concepts ▪ Determining input, process, and output ▪ Creating flowcharts and pseudocode ▪ Formulating algorithms Reading ▪ Gaddis, Chapter 2: “Introduction to Computers and Programming,” pages 29-55 Resources: • Data Projector • ITT Virtual Library • Text Books • Visual Studio • Lab Computers • Student Removable Hard Drive • VM Ware Player Methods: • Lecture • Group Discussion • Lab Work • Review exercise / Research Papers • Quiz Brief Lesson Overview: Today’s lecture we would be discussing the following topics. • Discuss how all programs basically consist of a three-step process: input, process, and output. Use the payroll calculation program...

Words: 895 - Pages: 4

Premium Essay

Research Paper

...Researching Variable Naming Rules Visual Basic You must use a letter as the first character. You can't use a space, period (.), exclamation mark (!), or the characters @, &, $, # in the name. Name can't exceed 255 characters in length. Generally, you shouldn't use any names that are the same as the functions, statements, and methods in Visual Basic. You end up shadowing the same keywords in the language. To use an intrinsic language function, statement, or method that conflicts with an assigned name, you must explicitly identify it. Precede the intrinsic function, statement, or method name with the name of the associated type library. For example, if you have a variable called Left, you can only invoke the Left function using VBA.Left. You can't repeat names within the same level of scope. For example, you can't declare two variables named age within the same procedure. However, you can declare a private variable named age and a procedure-level variable named age within the same module. Python  Must begin with a letter (a - z, A - B) or underscore (_)  Other characters can be letters, numbers or _  Case Sensitive  Can be any (reasonable) length  There are some reserved words which you cannot use as a variable name because Python uses them for other things.- See more at: http://www.w3resource.com/python/python-variable.php#sthash.5AXuVlWN.dpuf Java Variable names are case-sensitive. A variable's name can be any legal identifier — an unlimited-length...

Words: 724 - Pages: 3

Premium Essay

Network Infrastructure

...Table of Contents INTRODUCTION 2 DESIGNING AND IMPLEMENTING AN AUTOMATIC IP-ADDRESSING MECHANISM 3 AUTOMATIC IP-ADDRESSING SCHEME FOR THE UWS NETWORK 3 INSTALLING AND AUTHORIZING A DHCP SERVER 4 CREATING AND CONFIGURATION OF DHCP SCOPES 8 CREATING AND TESTING DHCP CLIENT RESERVATIONS 10 IMPLEMENTING DHCP RELAY AGENTS 12 DOMAIN NAMING STRATEGY 16 DOMAIN NAME SERVICE INSTALLATION 17 DOMAIN NAME SERVICE LOOK UP ZONES 18 ZONE AUTHORITY DELEGATION 23 DNS DYNAMIC UPDATES 25 DNS RESOURCE RECORDS 25 NETBIOS NAME RESOLUTION 27 INSTALLATION OF WINS 27 STATIC WINS RECORD 28 CONFIGURING REPLICATION PARTNERS 30 ALTERNATIVE IP ADDRESSING STRATEGY 31 ALTERNATE NAME RESOLUTION TECHNIQUES 32 NETWORK PLAN FOR THE UWS GLASGOW SITE 32 NETWORK PLAN FOR THE UWS CLYDE SITE 33 NETWORK PLAN FOR THE UWS HEAD OFFICE SITE 33 OVERVIEW OF THE UWS NETWORK INFRASTRUCTURE AS A WHOLE 34 TROUBLESHOOTING STRATEGY FOR UWS NETWORK 34 BACK UP AND FAULT TOLERANCE STRATEGY FOR NETWORK SERVICES 38 NETWORK HEALTH MONITORING AND ANALYSES 38 CONNECTIVITY SOLUTIONS FOR MULTI-VENDOR -ENVIRONMENT 40 REMOTE CONNECTIVITY TO UWS NETWORK USING VPN 41 CONFIGURING INBOUND VPN CONNECTION 41 CONFIGURING REMOTE ACCESS POLICIES 45 CONFIGURING OUTBOUND VPN CONNECTION 48 NETWORK COUNTERACTIVE APPROACHES WITH REGARDS TO SECURITY THREATS 50 IMPLEMENTATION OF CERTIFICATE SERVICES 51 IPSEC IMPLEMENTATION 56 References 62 INTRODUCTION This is a case study about a company...

Words: 5792 - Pages: 24

Premium Essay

Doc, Docx, Pdf, Wps

...Week 1 Chapter 1: The selection of a research design Three types of design: Quantitative, qualitative and mixed methods. Although it is difficult to separate the first two, often a research study tends to be more quantitative than qualitative or vice versa. Mixed methods is somewhere in the middle, a combination of both qualitative and quantitative methods. In detail: Qualitative research is about exploring and understanding the meaning individuals or groups ascribe to a social or human problem. Quantitative research is a means for testing objective theories, deriving hypotheses from these theories, and examining the relationship among variables. Mixed methods research associates both research design. Often, in qualitative research, the researcher needs to interpret the data (evidence) collected during the research process. The final report may have a flexible structure. With quantitative research, the final report is more or less structured; introduction, literature survey and theory, data description, methods, results and discussion (for future research). These models pretty much cover the available areas to researchers in selecting the type of research design. In each research design, it helps to identify, list and associate the three components of the research design. The first component is the way the research views the problem of interest. This is called under different names, research paradigm, epistemologies (the origin) and ontologies (how you know what you know), etc...

Words: 6507 - Pages: 27

Premium Essay

Consumer Behavior in the Asian Market

...If Saab becomes Chinese should it rename? • Vladimir Djurovic, president at Labbrand, suggests the name might not work well in China. “We have already found in previous research projects on car brand names, that names with this term were not a favourite choice in China because they are a little too spiritual”. • Given both Labbrand’s expertise and MG’s experience, the acquisition might be the perfect opportunity for repositioning the Saab brand, especially if the product line were to change. However this move is not risk-free. • Saab’s name “萨博” is widely recognized by the Chinese audience, so renaming might mean losing loyal customers. To solve this Vladimir Djurovic, president of Labbrand, believes that “instead of renaming, Saab could consider developing a better tagline to fit the Chinese market and make the brand more vivid in the imagination of Chinese consumers”. Chivas Regal Trademark Case • Chivas Brothers failed to establish that the spirits brand was “well-known” in China before the registration of Chivas Regal clothing in 2003, which would have been grounds to deny the application.Before the 2003 registration by the Wenzhou squatter, Chivas Brothers (the brand owner) had registered the marks in a number of Classes, including 33, which includes alcoholic beverages. However, just because a brand owner registers the mark in one Class this does not automatically protect against other registrants for different goods/services or for products in other Classes...

Words: 7595 - Pages: 31

Free Essay

Mexican-Austrian Business Communication

...|Mexican-Austrian Business Communication | |VSE | |3MA638 | |Managerial Communication | |Richard Brunet-Thornton | |June 2012 | |Written by: Nikolas JONAS | Introduction This paper aims to explain and illustrate the cultural relations between two countries, Mexico and Austria. To be more precise, the topic is a business negotiation between two companies, a Mexican car parts producer and an Austrian car parts designer. This paper will highlight all the differences and similarities in culture and conduct of business. Description of Industry In order to provide a credible and realistic scenario I have chosen to work with the automotive industry. In Mexico for example this sector is one of the most important of the economy, representing 3% of the Gross Domestic Product in the year 2011, 17,3% of all manufacturing,...

Words: 4460 - Pages: 18

Free Essay

Research Paper Guide

...Writing Assistance.............................. Academic Center's Three-Submission Process for MGT 6351 Academic Integrity ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... Plagiarism Defined ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... Importance of Avoiding Plagiarism in Western Scholarship......... Tips to Avoid Plagiarism................................................ ... Section 1: Getting Started ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... Developing a Topic Seeking Topic Approval from Your Instructor ... ... ... ... ... ... ... ... ... ... ... ... ..... Writing Proposals Common Problems with Topics Researching Your Topic ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ....... Introducing the VC/UHV Library ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...... Developing a Search Strategy ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... .... Considering Your Audience and Joining the Scholarly Conversation Formulating a Thesis Statement Section 2: Writing Your First Draft Developing an Introduction ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... U sing Your Outline to Develop Topic Sentences and Your Paper. .. ... ... ... ... ... ... U sing and Incorporating...

Words: 12792 - Pages: 52

Premium Essay

Capstone Manual

...Running head: CAPSTONE GUIDEBOOK 1 Note: On the cover page you actually use the words “running head:” You do not on all the rest of the pages Note page number position The Capstone Guidebook: A Step-by-Step Guide to Capstone Design and Writing By Douglas L. Blakemore, Ph.D. Full Professor Accounting, Finance, and Information Systems Department Ferris State University CAPSTONE GUIDEBOOK 2 Copyright: 2012, Douglas L. Blakemore, Ph.D. All Rights Reserved CAPSTONE GUIDEBOOK Table of Contents Note, page numbers are right aligned 3 Page Chapter 1: Getting Started ............................................................................................…4 Chapter 2: The Five-Chapter Approach to the Capstone................................................10 Chapter 3: Organizing the Presentation of Your Study/Project......................................17 Chapter 4: A Few Basics for Writing the Capstone.........................................................24 Reference.........….……………………………………………………………………....29 Appendices……………………………………………………………………………...30 CAPSTONE GUIDEBOOK Note, running head Chapter 1: Getting Started For this class you will be conducting a research study or completing a project which demonstrates the skills and knowledge you have obtained in your field. The 4 See Ch 3 for required format for headings. APA has a required format to follow. Do not accept Word formatting without reviewing even if it says it is APA...

Words: 8710 - Pages: 35

Premium Essay

Researching and Writing

.... ReseaRching and WRiting a disseRtation a guidebook foR business students Colin Fisher second edition . Researching and Writing a Dissertation: A Guidebook for Business Students . We work with leading authors to develop the strongest educational materials in management, bringing cutting-edge thinking and best learning practice to a global market. Under a range of well-known imprints, including Financial Times Prentice Hall, we craft high-quality print and electronic publications which help readers to understand and apply their content, whether studying or at work. To find out more about the complete range of our publishing, please visit us on the World Wide Web at: www.pearsoned.co.uk . Researching and Writing a Dissertation: A Guidebook for Business Students Second edition Colin Fisher with John Buglear Diannah Lowry Alistair Mutch Carole Tansley . Pearson Education Limited Edinburgh Gate Harlow Essex CM20 2JE England and Associated Companies throughout the world Visit us on the World Wide Web at: www.pearsoned.co.uk First published 2004 Second edition 2007 © Pearson Education Limited 2004 © Pearson Education Limited 2007 The right of Colin Fisher to be identified as author of this work has been asserted by him in accordance with the Copyright, Designs and Patents Act 1988. All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, electronic, mechanical...

Words: 142971 - Pages: 572

Premium Essay

Validity Reliability

...Y METHODS IN EDUCATIONAL RESEARCH From Theory to Practice Marguerite G. Lodico, Dean T. Spaulding, Katherine H. Voegtle METHODS IN EDUCATIONAL RESEARCH Y METHODS IN EDUCATIONAL RESEARCH From Theory to Practice Marguerite G. Lodico, Dean T. Spaulding, Katherine H. Voegtle Copyright © 2006 by John Wiley & Sons, Inc. All rights reserved. Published by Jossey-Bass A Wiley Imprint 989 Market Street, San Francisco, CA 94103-1741 www.josseybass.com No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning, or otherwise, except as permitted under Section 107 or 108 of the 1976 United States Copyright Act, without either the prior written permission of the publisher, or authorization through payment of the appropriate per-copy fee to the Copyright Clearance Center, Inc., 222 Rosewood Drive, Danvers, MA 01923, 978-750-8400, fax 978-646-8600, or on the Web at www.copyright.com. Requests to the publisher for permission should be addressed to the Permissions Department, John Wiley & Sons, Inc., 111 River Street, Hoboken, NJ 07030, 201-748-6011, fax 201-748-6008, or online at http://www.wiley.com/go/permissions. Limit of Liability/Disclaimer of Warranty: While the publisher and author have used their best efforts in preparing this book, they make no representations or warranties with respect to the accuracy or completeness of the contents of this...

Words: 153398 - Pages: 614

Premium Essay

Top Down Cisco

...Top-Down Network Design Third Edition Priscilla Oppenheimer Priscilla Oppenheimer Cisco Press 800 East 96th Street Indianapolis, IN 46240 ii Top-Down Network Design Top-Down Network Design, Third Edition Priscilla Oppenheimer Copyright© 2011 Cisco Systems, Inc. Published by: Cisco Press 800 East 96th Street Indianapolis, IN 46240 USA All rights reserved. No part of this book may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying, recording, or by any information storage and retrieval system, without written permission from the publisher, except for the inclusion of brief quotations in a review. Printed in the United States of America First Printing August 2010 Library of Congress Cataloging-in-Publication data is on file. ISBN-13: 978-1-58720-283-4 ISBN-10: 1-58720-283-2 Warning and Disclaimer This book is designed to provide information about top-down network design. Every effort has been made to make this book as complete and as accurate as possible, but no warranty or fitness is implied. The information is provided on an “as is” basis. The author, Cisco Press, and Cisco Systems, Inc. shall have neither liability nor responsibility to any person or entity with respect to any loss or damages arising from the information contained in this book or from the use of the discs or programs that may accompany it. The opinions expressed in this book belong to the author and are not necessarily those of Cisco...

Words: 79785 - Pages: 320