
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
20 questions
Mini-Test 3 English for Communication
Quiz
•
University
20 questions
IB1 - Unit 4 Review
Quiz
•
University
16 questions
test unit 10
Quiz
•
University
20 questions
CAE - Lesson 5
Quiz
•
University
15 questions
Camp vocabularies: meeting 10
Quiz
•
University
17 questions
Yes/No Questions Quiz
Quiz
•
11th Grade - University
17 questions
English Language Quiz
Quiz
•
9th Grade - University
18 questions
Intermediate Work Vocab Quiz
Quiz
•
University
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
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
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for English
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
10 questions
THEME
Quiz
•
KG - University
13 questions
Jobs in the Theater
Quiz
•
6th Grade - University
12 questions
Charlie and the Chocolate Factory Chapters 21-30
Quiz
•
2nd Grade - University
20 questions
Context Clues
Quiz
•
KG - University