
Fundamentals of C and Python

Quiz
•
English
•
University
•
Medium
Anil N
Used 1+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
3.3 Block bad input

Quiz
•
7th Grade - University
15 questions
Understanding Conditional Statements

Quiz
•
11th Grade - University
20 questions
Vocabulary for IELTS U12 Information Technology (Cambridge)

Quiz
•
University
15 questions
Coding Variables

Quiz
•
University
15 questions
Tildes

Quiz
•
4th Grade - University
15 questions
Girls Can Code

Quiz
•
8th Grade - University
20 questions
How much/many - Teacher Busta

Quiz
•
University
21 questions
IH - BA08 - TECHNOLOGY - USEFUL PHRASES

Quiz
•
University
Popular Resources on Wayground
55 questions
CHS Student Handbook 25-26

Quiz
•
9th Grade
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
10 questions
Chaffey

Quiz
•
9th - 12th Grade
15 questions
PRIDE

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
22 questions
6-8 Digital Citizenship Review

Quiz
•
6th - 8th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade