Identifying the tokens

Assignment Help Software Engineering
Reference no: EM1379008

Question1. Identify the tokens in each of the following statements.

a. if (a == b1) a = x + y;
b. delta = epilson + 1.23 - sqrt(zz);
c. print(Q);

Question2. Suppose that we are looking in a programming language that allows underscore (_) in variable names. When a scanner sees a character string such as AB_CD, is it more likely to identify this string as the single 5-character token AB_CD or as three separate tokens: AB, _, CD? Describe your answer.

 

Reference no: EM1379008

Questions Cloud

Importance of udp and the relationship to tcp : Discuss and explain what the UDP does and its relationship to TCP in what ways is it similar and different, and why would we use UDP, and why can not a user program access IP directly?
Hazards existing prior to or during the incident : Discuss briefly the assertion that ‘investment by a company in safety procedures and training reduces the risk and probability of accidents and is good for business'.
Define the terms variable and constant : Discuss and define the terms "variable" and "constant" as used in computer programming. Estimate the many types of data that can be used in developing a solution.
Concept of object orientation & universal modeling language : Describe the concept of object orientation and Universal Modeling Language as used in computer programming.
Identifying the tokens : Suppose that we are looking in a programming language that allows underscore in variable names. When a scanner sees a character string such as AB_CD.
Language without exception handling facilities : In a language without exception-handling facilities, we could send an error-handling process as a parameter to each process that can detect errors that must be handled.
Classification of symbols : In few programming languages a comment can be enclosed either in braces {} or in the symbols (* *). Discuss how do you think a scanner would group the four symbols {, }, (*, *) for purposes of classification.
Java examples to validate input : Create an algorithm that prompts the user to enter a secret word. The secret word should be at least eight characters long. Validate the input.
Role of it management in organizations : Write a statement of what you perceive the role of IT management in organizations and address the IT management challenges that e-business brings.

Reviews

Write a Review

Software Engineering Questions & Answers

  Explain basic tools used by project manager

Explain the basic tools used by a project manager. Relate these tools to applications like Excel, MS project, and other packages which are used to automate project management processes.

  Software development practices

Agile Development is a blanket term that covers a wide variety of software development practices many of which have been codified and documented.

  Context level dfd to level 0 dfd to illustrate sub-systems

Explode Context level DFD to Level 0 DFD to illustrate sub-systems (processes). Level 0 DFD illustrates internal data stores and how data flows through processes.

  Create the crow-s foot erd segment for employment

FRC keeps a history of the employment of all mechanics. The history includes the date hired, date promoted, date terminated and so on. Given those requirements, create the Crow's Foot ERD Segment.

  Defining competitive advantage of a business

Discuss the key concepts related to defining competitive advantage of a business? Choose one and describe how you would use information systems to aid in obtaining competitive advantage with your selected key idea.

  Draw a flowchart to determine fare

Write an algorithm to find the bus fare based on distance travelled as per the following rates:a. Rs.5.00 for first 2 kms.

  What is the standard error

If you have five critical errors, two main faults, and five minor errors, what is the standard error

  Does programmer need to understand needs of user

Does the programmer need to understand the needs of the user? Does the programmer need to know the end results of the system?

  Draw erd to show attributes of student

Draw and ERD for this situation. What attribute or attributes did you designate as the identifier for the STUDENT entity? Why?

  Create class diagram for company has number of employees

Create a class diagram for following problem. A company has a number of employees. Attributes of employee include employeeID (primary key), name, address, and birthdate.

  Information flow complexity

Cyclomatic complexity, monitoring devices, wireless dial-out device with controller, Request for Proposals (RFPs), Weighted IFC

  Solving linear equations and linear inequalities

Discuss briefly and explain software testing as a career path, what skills would be desirable for a software tester.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd