
Fundamentals of C and Python
Authored by Anil N
English
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax to output 'Hello, World!' in C?
#include
print('Hello, World!');
echo 'Hello, World!';
System.out.println('Hello, World!');
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare a variable in Python?
You declare a variable in Python by using the syntax: variable_name = value.
variable_name : value
value = variable_name
declare variable_name as value
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the 'main' function in C?
The 'main' function is the entry point of a C program.
The 'main' function is where all functions are declared.
The 'main' function is responsible for memory management.
The 'main' function is used for defining global variables.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create a list in Python?
You create a list in Python using curly braces, e.g., my_list = {item1, item2, item3}.
You create a list in Python using square brackets, e.g., my_list = [item1, item2, item3].
You create a list in Python using parentheses, e.g., my_list = (item1, item2, item3).
You create a list in Python by using the list() function, e.g., my_list = list(item1, item2, item3).
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between '==' and '===' in JavaScript?
'==' checks for object identity while '===' checks for value equality
'==' is faster than '==='
'==' is used for strict comparisons while '===' is for loose comparisons
The difference is that '==' allows type coercion while '===' does not.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you write a comment in C?
Use '/*' for single-line comments
Use '//' for multi-line comments
Use '#' for comments
Use '//' for single-line comments and '/* comment */' for multi-line comments.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code: print(2 ** 3) in Python?
8
9
4
6
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
19 questions
Verbs - Regular and Irregular
Quiz
•
4th Grade - Professio...
16 questions
SpeakOut UI.UNIT 1.P.8
Quiz
•
University
20 questions
Grammar Quiz
Quiz
•
10th Grade - University
15 questions
comparatives
Quiz
•
University
20 questions
REFLECT LS 3 - UNIT 5 EXPLORERS
Quiz
•
University
15 questions
Capitalization
Quiz
•
University
15 questions
Grammar Practice 1 (15Qs)
Quiz
•
7th Grade - University
20 questions
مسابقة درب-لغوية
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade