In programming what name is given to the data type which represents decimal numbers? String Integer Character Float A variable is needed to record a student's surname. Which of the following would be the most meaningful variable name? None of the above Student_Surname StudentName Name What is a variable? A Variable is a location in memory that we use to store Data None of these Variable is a number A variable is a message input by the user A B C D A B C D A B C D D A B C C A B D D B C A A B C D Integer Boolean Real(same as float) Character A B C D A B C D A B C D B A C D A B C D A B C D A B C D A B C D A C B D D C A B A D B C A B C D D B C A C D A B A B C D A B C D B A D C A B C D D A B C A B C D A B C D B C D A FLOAT BOOLEAN INTEGER Hint: Please write your answer in capital B D A C A B C D A B C D C D B A B C D A what is selection? Incorrect option The order in which instructions are carried out Repeating a number of steps A decision point in a program what does the statement print do? output a hard copy to printer create a flow chart Output a message on the screen None What is the correct code to print out the words 'Hello World' to the screen? print ("Hello World") print {'Hello World'} print (Hello World) print ['Hello World'] What does this code output?
a+b 4 "A+B" None What does this code output?
4 "4" a+b Nothing invalid code What does this code output?
Hello Nothing the code is commented out "Hello" There is an error in the code What does this code output?
14 8 9 13 An error because the value was not converted to a number 0 The value the user entered 10 What does this code output?
Which statement will check if a is less than b? a<b a>b a==b if a<b: Which statement will check if a is less b and less than c? If a<b,<c if a<b&c if a<b and a<c: if a<b and a<c What will this code print?
B A C B C What will this code print?
A C B D A D What does this code print?
The word Hello 3 times It will print nothing The word Hello 4 times The word hello forever What does this code print?
The numbers 1 to 4 The numbers 0 to 3 The letter y 4 times The numbers 0 to 4
012 *** "***" None of the above Which of the following statements implement a count-controlled iteration? Repeat until Repeat while For Next while end while |