
Programming Lab Quiz

Quiz
•
Computers
•
University
•
Hard
Yash Sinha
Used 1+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Coding and Debugging

Quiz
•
University
20 questions
BS TEST2

Quiz
•
University
15 questions
BASIC C QUIZ

Quiz
•
University
25 questions
C Programing

Quiz
•
University
15 questions
Java Quiz based on array

Quiz
•
University
15 questions
module3

Quiz
•
University
20 questions
Test Final

Quiz
•
University
22 questions
EXCEPTION HANDLING IN PYTHON

Quiz
•
University
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
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University