Programming Basics (Part 2)

Description

Become familiar with basic string handling operations. Distinguish between variables and constants.
Daniel Smillie
Flashcards by Daniel Smillie, updated more than 1 year ago
Daniel Smillie
Created by Daniel Smillie about 6 years ago
4
0

Resource summary

Question Answer
Variable An item of data whose value could change while the program is being run.
Declaration The process of defining variables and constants in terms of their name and data type.
Assignment The process of giving a value to a variable or constant.
Constant The value of a constant is fixed for the duration of a program and cannot be changed.
len(string) Returns the length of a string.
String.substring(index1, index2) Returns a portion of a string inclusive of the characters at each index position.
string.find(str) Determines if str occurs in a string. Returns index if found and -1 otherwise.
ord(“a”) Returns the integer value of a character.
chr(97) Returns the character represented by an integer.
Show full summary Hide full summary

Similar

A level Computing Quiz
Zacchaeus Snape
Types and Components of Computer Systems
Jess Peason
Input Devices
Jess Peason
Output Devices
Jess Peason
Computing
Kwame Oteng-Adusei
Pack of playing cards answer
Karl Taylor
Code Challenge Flow Chart
Charlotte Hilton
Computer science quiz
Ryan Barton
Input, output and storage devices
Mr A Esch
GCSE Computing - 4 - Representation of data in computer systems
lilymate
GCSE Computing: Hardware
Yasmin F