
Programming Lab Quiz
Authored by Yash Sinha
Computers
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
1 min • 1 pt
Which is valid C expression?
int my_num = 100,000;
int my_num = 100000;
int my num = 1000;
int $my_num = 10000;
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the result of logical or relational expression in C?
True or False
0 or 1
0 if an expression is false and any positive number if an expression is true
None of the mentioned
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is an example of iteration in C?
for
while
do-while
all of the mentioned
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following C code?
#include
Compile time error
Hello World! 34
Hello World! 1000
Hello World! followed by a junk value
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will happen if the following C code is executed?
#include
It will cause a compile-time error
It will cause a run-time error
It will run without any error and prints 3
It will experience infinite looping
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following C code?
#include
Nothing
Run time error
Hello
Varies
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following C code? (Assuming that we have entered the value 1 in the standard input)
#include
1
2
1 2
Run time error
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
15 questions
Komponen Jaringan & Pengkabelan
Quiz
•
University
15 questions
Chapter 6: TRUYỀN THÔNG VÀ MẠNG MÁY TÍNH
Quiz
•
University
18 questions
Hardware/Software
Quiz
•
9th Grade - University
16 questions
Ôn Tập Tin GK II 9
Quiz
•
9th Grade - University
20 questions
Hashing
Quiz
•
University
20 questions
C - Structures
Quiz
•
University
20 questions
The Firm and Its Environment
Quiz
•
University
16 questions
Computer (Set A)
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
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
7 questions
Fragments, Run-ons, and Complete Sentences
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
10 questions
DNA Structure and Replication: Crash Course Biology
Interactive video
•
11th Grade - University
5 questions
Inherited and Acquired Traits of Animals
Interactive video
•
4th Grade - University
5 questions
Examining Theme
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University