Learn C

Quiz
•
Computers
•
6th - 8th Grade
•
Medium
Kavita Eshwar
Used 2+ times
FREE Resource
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of the C code?
Hello World! x;
Hello World! followed by a junk value
Compile time error
Hello World!
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements is true about using comment lines in C language?
A) Comment lines are executed by the compiler.
B) Single-line comments start with "/" and end with "/".
C) Multi-line comments start with "//" and continue until the end of the line.
D) Comment lines are useful for providing information about the code and making it easier to understand.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Who is known as the father of C language?
A) Steve Jobs
B) Dennis Ritchie
C) Linus Torvalds
D) Bill Gates
Answer explanation
Dennis Ritchie is known as the father of C language. He was an American computer scientist who developed the C language at Bell Labs in the early 1970s. Steve Jobs was a co-founder of Apple Inc., Bill Gates was a co-founder of Microsoft Corporation, and Linus Torvalds is known for creating the Linux kernel. Therefore, option D is the correct answer.
4.
OPEN ENDED QUESTION
3 mins • 2 pts
Create two variables number1 with value 50 and number2 with value 780.32.
Print number1 and number2 with a space in between.
Evaluate responses using AI:
OFF
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an example of a variable in programming?
A) printf("Hello, World!");
B) 3.14159
C) "apple"
D) x = 5;
Answer explanation
In this example, "x" is a variable that is assigned the value of 5. A variable is a named storage location in computer memory used to hold a value, such as a number, a character, or a string. Option A is incorrect because printf("Hello, World!"); is a statement that prints the text "Hello, World!" to the console. Option B is incorrect because 3.14159 is a numerical constant, not a variable. Option C is incorrect because "apple" is a string constant, not a variable. Therefore, option D is the correct answer.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a variable in computer programming?
A) A type of computer hardware
B) A programming language
C) A named storage location in computer memory used to hold a value
D) A type of computer virus
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a type of variable in programming?
A) Integer
B) Floating-point
C) Character
D) Boolean
E) All of the above are types of variables
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Basic Coding Terminology

Quiz
•
6th - 8th Grade
10 questions
Algorithm

Quiz
•
3rd - 6th Grade
17 questions
Computer Science

Quiz
•
6th - 8th Grade
14 questions
Python Turtle - MCA Year 7

Quiz
•
7th Grade
12 questions
Robots and Embedded Systems

Quiz
•
6th Grade
18 questions
MTA HTML CSS Session 1

Quiz
•
7th - 9th Grade
19 questions
Coding Vocabulary

Quiz
•
7th - 8th Grade
10 questions
Python Basics

Quiz
•
8th - 10th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
8 questions
Time Management

Quiz
•
6th Grade
18 questions
Digital Footprint

Quiz
•
6th Grade
20 questions
typing

Quiz
•
6th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade
25 questions
How to Email a Teacher- https://youtu.be/NioeNhfpVfI

Quiz
•
6th - 8th Grade