What does the following statement do?
return 0;
Terminates the program/ Stops the program
What is missing?
#include <stdio.h>
int main()
{
char letter = 'B';
int number = 100;
printf("letter");
printf("-----");
printf("%c\n",letter);
printf("number");
printf("-----");
printf("%d",number);
printf("-----\n");
return 0;
The closing bracket
}
System software that converts source code to ones and zeros.
Compiler
What is a commonly used AI assistant
Siri , Alexa
What language does Arduino IDE use
C or C++
What does the following statement do?
printf("x")
Print what is in the parentheses
This is an example of ?
int I = 0;
while (i < 10) {
if ( i == 4 ) {
break;
} printf("%d\n", i );
i++;
}
While Loop
An identifier is given a storage area that holds a value in which the value can change. The programmer must provide it with a meaningful name.
Variable
What the name of the world's most advanced human-shaped robot representing the forefront of human-robotics technology
Ameca Robot
How do you power an Arduino IDE board
USB connection to a computer
What does the following symbol denote ?
}
End of the block of code
List the Data Types.
Character,Float/Double, Intger
Operator that computes the remainder.
Modulo Operator
What is Artificial Intelligence
A combination of human intelligence and machines that incorporate sensors and problem-solving
What is a resistor
A resistor is a basic electronic part that slows down the flow of electricity, helping to control the voltage and current in a circuit.
What is the following called?
#include<stdio.h>
Library/header files
What is the output?
#include <stdio.h>
int main ( )
{
int count = 0;
while (count < 3)
{
printf("%d\n", count);
count = count + 1;
}
return 0;
}
2
This statement is used to specify a block of code to execute if the condition is false
Else statement
How does an AI device learn and think?
It accepts data trains itself, and then creates a model.
Whats the command to control the LED light with Arduino
digitalWrite()
What is the following called?
int main()
Main function
What is the syntax to call a Function?
void myFunction() {
//code//
}
This statement reads in a value from the keyboard and writes the results into the given variables.
Scanf statement
What are four components that make AI
- Language processing
-Problem-solving
-Reasoning and Decision making
-Perceptions
What are the collections of pre-written code that provide additional functionality, like controlling sensors, displays, and other devices?
Libraries